Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/types/src/vscode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ export const commandIds = [
"handleHumanRelayResponse",

"newTask",
"newTask.noPrompt",

"setCustomStoragePath",
"importSettings",
Expand Down
16 changes: 16 additions & 0 deletions src/activate/registerCommands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,22 @@ const getCommandsMap = ({ context, outputChannel, provider }: RegisterCommandOpt
unregisterHumanRelayCallback: unregisterHumanRelayCallback,
handleHumanRelayResponse: handleHumanRelayResponse,
newTask: handleNewTask,
"newTask.noPrompt": async () => {
const visibleProvider = getVisibleProviderOrLog(outputChannel)

if (!visibleProvider) {
return
}

TelemetryService.instance.captureTitleButtonClicked("plus")

await visibleProvider.removeClineFromStack()
await visibleProvider.refreshWorkspace()
await visibleProvider.postMessageToWebview({ type: "action", action: "chatButtonClicked" })
// Send focusInput action immediately after chatButtonClicked
// This ensures the focus happens after the view has switched
await visibleProvider.postMessageToWebview({ type: "action", action: "focusInput" })
},
Comment on lines +154 to +169
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This implementation is identical to plusButtonClicked (lines 88-103). Consider extracting the shared logic into a helper function to avoid duplication and simplify future maintenance. For example:

const handlePlusAction = async () => {
	const visibleProvider = getVisibleProviderOrLog(outputChannel)
	if (!visibleProvider) return
	TelemetryService.instance.captureTitleButtonClicked("plus")
	await visibleProvider.removeClineFromStack()
	await visibleProvider.refreshWorkspace()
	await visibleProvider.postMessageToWebview({ type: "action", action: "chatButtonClicked" })
	await visibleProvider.postMessageToWebview({ type: "action", action: "focusInput" })
}

Then both commands could use: plusButtonClicked: handlePlusAction, "newTask.noPrompt": handlePlusAction

Fix it with Roo Code or mention @roomote and request a fix.

setCustomStoragePath: async () => {
const { promptForCustomStoragePath } = await import("../utils/storage")
await promptForCustomStoragePath()
Expand Down
15 changes: 13 additions & 2 deletions src/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,12 @@
"command": "roo-cline.toggleAutoApprove",
"title": "%command.toggleAutoApprove.title%",
"category": "%configuration.title%"
}
},
{
"command": "roo-cline.newTask.noPrompt",
"title": "%command.newTask.noPrompt.title%",
"category": "%configuration.title%"
}
Comment on lines +173 to +177
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor formatting issue: these lines use 4 spaces for indentation while the rest of the file uses tabs. This inconsistency also appears in the new keybinding entry (lines 301-306). Consider reformatting to use tabs for consistency.

Fix it with Roo Code or mention @roomote and request a fix.

],
"menus": {
"editor/context": [
Expand Down Expand Up @@ -292,7 +297,13 @@
"mac": "cmd+alt+a",
"win": "ctrl+alt+a",
"linux": "ctrl+alt+a"
}
},
{
"command": "roo-cline.newTask.noPrompt",
"key": "ctrl+m ctrl+n",
"mac": "cmd+m cmd+n",
"when": "roo-cline.sidebar.visible"
}
],
"submenus": [
{
Expand Down
1 change: 1 addition & 0 deletions src/package.nls.ca.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/package.nls.de.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/package.nls.es.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/package.nls.fr.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/package.nls.hi.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/package.nls.id.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/package.nls.it.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/package.nls.ja.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/package.nls.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"views.activitybar.title": "Roo Code",
"views.sidebar.name": "Roo Code",
"command.newTask.title": "New Task",
"command.newTask.noPrompt.title": "New Task (No Prompt)",
"command.history.title": "Task History",
"command.marketplace.title": "Marketplace",
"command.openInEditor.title": "Open in Editor",
Expand Down
1 change: 1 addition & 0 deletions src/package.nls.ko.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/package.nls.nl.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/package.nls.pl.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/package.nls.pt-BR.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/package.nls.ru.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/package.nls.tr.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/package.nls.vi.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/package.nls.zh-CN.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/package.nls.zh-TW.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading