diff --git a/packages/types/src/vscode.ts b/packages/types/src/vscode.ts index 98a633671c4..2042cf70b71 100644 --- a/packages/types/src/vscode.ts +++ b/packages/types/src/vscode.ts @@ -44,6 +44,7 @@ export const commandIds = [ "handleHumanRelayResponse", "newTask", + "newTaskWithoutPrompt", "setCustomStoragePath", "importSettings", diff --git a/src/activate/registerCommands.ts b/src/activate/registerCommands.ts index ad75642406c..2b3227ffe9c 100644 --- a/src/activate/registerCommands.ts +++ b/src/activate/registerCommands.ts @@ -151,6 +151,22 @@ const getCommandsMap = ({ context, outputChannel, provider }: RegisterCommandOpt unregisterHumanRelayCallback: unregisterHumanRelayCallback, handleHumanRelayResponse: handleHumanRelayResponse, newTask: handleNewTask, + newTaskWithoutPrompt: async () => { + const provider = await ClineProvider.getInstance() + if (!provider) { + + return + } + + TelemetryService.instance.captureTitleButtonClicked("plus") + + await provider.removeClineFromStack() + await provider.refreshWorkspace() + await provider.postMessageToWebview({ type: "action", action: "chatButtonClicked" }) + // Send focusInput action immediately after chatButtonClicked + // This ensures the focus happens after the view has switched + await provider.postMessageToWebview({ type: "action", action: "focusInput" }) + }, setCustomStoragePath: async () => { const { promptForCustomStoragePath } = await import("../utils/storage") await promptForCustomStoragePath() diff --git a/src/package.json b/src/package.json index df1a6954064..600add67ad1 100644 --- a/src/package.json +++ b/src/package.json @@ -169,7 +169,12 @@ "command": "roo-cline.toggleAutoApprove", "title": "%command.toggleAutoApprove.title%", "category": "%configuration.title%" - } + }, + { + "command": "roo-cline.newTaskWithoutPrompt", + "title": "%command.newTaskWithoutPrompt.title%", + "category": "%configuration.title%" + } ], "menus": { "editor/context": [ @@ -292,6 +297,12 @@ "mac": "cmd+alt+a", "win": "ctrl+alt+a", "linux": "ctrl+alt+a" + }, + { + "command": "roo-cline.newTaskWithoutPrompt", + "key": "ctrl+m, ctrl+n", + "mac": "cmd+m, cmd+n", + "when": "roo-cline.sidebar.visible" } ], "submenus": [ diff --git a/src/package.nls.ca.json b/src/package.nls.ca.json index de3bb987ccb..f5aeda4ee95 100644 --- a/src/package.nls.ca.json +++ b/src/package.nls.ca.json @@ -2,6 +2,7 @@ "extension.displayName": "Roo Code", "extension.description": "Un equip complet de desenvolupament d'agents d'IA al teu editor.", "command.newTask.title": "Nova Tasca", + "command.newTaskWithoutPrompt.title": "Nova Tasca (Sense Prompt)", "command.explainCode.title": "Explicar Codi", "command.fixCode.title": "Corregir Codi", "command.improveCode.title": "Millorar Codi", diff --git a/src/package.nls.de.json b/src/package.nls.de.json index d0f9184937e..67656c04e84 100644 --- a/src/package.nls.de.json +++ b/src/package.nls.de.json @@ -2,6 +2,7 @@ "extension.displayName": "Roo Code", "extension.description": "Ein komplettes KI-Agenten-Entwicklungsteam in deinem Editor.", "command.newTask.title": "Neue Aufgabe", + "command.newTaskWithoutPrompt.title": "Neue Aufgabe (ohne Prompt)", "command.explainCode.title": "Code Erklären", "command.fixCode.title": "Code Reparieren", "command.improveCode.title": "Code Verbessern", diff --git a/src/package.nls.es.json b/src/package.nls.es.json index e2ab5a95c8b..4465ba7eb5a 100644 --- a/src/package.nls.es.json +++ b/src/package.nls.es.json @@ -2,6 +2,7 @@ "extension.displayName": "Roo Code", "extension.description": "Un equipo completo de desarrollo de agentes de IA en tu editor.", "command.newTask.title": "Nueva Tarea", + "command.newTaskWithoutPrompt.title": "Nueva Tarea (Sin Prompt)", "command.explainCode.title": "Explicar Código", "command.fixCode.title": "Corregir Código", "command.improveCode.title": "Mejorar Código", diff --git a/src/package.nls.fr.json b/src/package.nls.fr.json index c725dbc2986..6e178712450 100644 --- a/src/package.nls.fr.json +++ b/src/package.nls.fr.json @@ -2,6 +2,7 @@ "extension.displayName": "Roo Code", "extension.description": "Une équipe complète de développement d'agents IA dans votre éditeur.", "command.newTask.title": "Nouvelle Tâche", + "command.newTaskWithoutPrompt.title": "Nouvelle Tâche (Sans Prompt)", "command.explainCode.title": "Expliquer le Code", "command.fixCode.title": "Corriger le Code", "command.improveCode.title": "Améliorer le Code", diff --git a/src/package.nls.hi.json b/src/package.nls.hi.json index 08ae5be0ea1..581cb75eb52 100644 --- a/src/package.nls.hi.json +++ b/src/package.nls.hi.json @@ -2,6 +2,7 @@ "extension.displayName": "Roo Code", "extension.description": "आपके एडिटर में एआई एजेंट्स की पूरी डेवलपमेंट टीम।", "command.newTask.title": "नया कार्य", + "command.newTaskWithoutPrompt.title": "नया कार्य (बिना Prompt)", "command.explainCode.title": "कोड समझाएं", "command.fixCode.title": "कोड ठीक करें", "command.improveCode.title": "कोड सुधारें", diff --git a/src/package.nls.id.json b/src/package.nls.id.json index 83410391cf4..dedc2a3210f 100644 --- a/src/package.nls.id.json +++ b/src/package.nls.id.json @@ -6,6 +6,7 @@ "views.activitybar.title": "Roo Code", "views.sidebar.name": "Roo Code", "command.newTask.title": "Tugas Baru", + "command.newTaskWithoutPrompt.title": "Tugas Baru (Tanpa Prompt)", "command.history.title": "Riwayat Tugas", "command.marketplace.title": "Marketplace", "command.openInEditor.title": "Buka di Editor", diff --git a/src/package.nls.it.json b/src/package.nls.it.json index 1ddeb596cf1..b14d0fde5d8 100644 --- a/src/package.nls.it.json +++ b/src/package.nls.it.json @@ -2,6 +2,7 @@ "extension.displayName": "Roo Code", "extension.description": "Un intero team di sviluppo di agenti IA nel tuo editor.", "command.newTask.title": "Nuovo Task", + "command.newTaskWithoutPrompt.title": "Nuovo Task (Senza Prompt)", "command.explainCode.title": "Spiega Codice", "command.fixCode.title": "Correggi Codice", "command.improveCode.title": "Migliora Codice", diff --git a/src/package.nls.ja.json b/src/package.nls.ja.json index 7fe1adac66d..0d9f24168f5 100644 --- a/src/package.nls.ja.json +++ b/src/package.nls.ja.json @@ -6,6 +6,7 @@ "views.activitybar.title": "Roo Code", "views.sidebar.name": "Roo Code", "command.newTask.title": "新しいタスク", + "command.newTaskWithoutPrompt.title": "新しいタスク(Prompt なし)", "command.history.title": "タスク履歴", "command.marketplace.title": "マーケットプレイス", "command.openInEditor.title": "エディタで開く", diff --git a/src/package.nls.json b/src/package.nls.json index 0030d1ce7b2..008ae2e7171 100644 --- a/src/package.nls.json +++ b/src/package.nls.json @@ -6,6 +6,7 @@ "views.activitybar.title": "Roo Code", "views.sidebar.name": "Roo Code", "command.newTask.title": "New Task", + "command.newTaskWithoutPrompt.title": "New Task (No Prompt)", "command.history.title": "Task History", "command.marketplace.title": "Marketplace", "command.openInEditor.title": "Open in Editor", diff --git a/src/package.nls.ko.json b/src/package.nls.ko.json index ce471aa937e..0339bed718c 100644 --- a/src/package.nls.ko.json +++ b/src/package.nls.ko.json @@ -2,6 +2,7 @@ "extension.displayName": "Roo Code", "extension.description": "에디터에서 작동하는 AI 에이전트 개발팀.", "command.newTask.title": "새 작업", + "command.newTaskWithoutPrompt.title": "새 작업(Prompt 없음)", "command.explainCode.title": "코드 설명", "command.fixCode.title": "코드 수정", "command.improveCode.title": "코드 개선", diff --git a/src/package.nls.nl.json b/src/package.nls.nl.json index 0d2d58b62a5..c3806c8f327 100644 --- a/src/package.nls.nl.json +++ b/src/package.nls.nl.json @@ -6,6 +6,7 @@ "views.activitybar.title": "Roo Code", "views.sidebar.name": "Roo Code", "command.newTask.title": "Nieuwe Taak", + "command.newTaskWithoutPrompt.title": "Nieuwe Taak (Zonder Prompt)", "command.history.title": "Taakgeschiedenis", "command.marketplace.title": "Marktplaats", "command.openInEditor.title": "Openen in Editor", diff --git a/src/package.nls.pl.json b/src/package.nls.pl.json index a3314e3886a..936bf43b8ac 100644 --- a/src/package.nls.pl.json +++ b/src/package.nls.pl.json @@ -2,6 +2,7 @@ "extension.displayName": "Roo Code", "extension.description": "Pełny zespół programistów AI w twoim edytorze.", "command.newTask.title": "Nowe Zadanie", + "command.newTaskWithoutPrompt.title": "Nowe Zadanie (Bez Prompt)", "command.explainCode.title": "Wyjaśnij Kod", "command.fixCode.title": "Napraw Kod", "command.improveCode.title": "Ulepsz Kod", diff --git a/src/package.nls.pt-BR.json b/src/package.nls.pt-BR.json index 648fc0fa470..5c8b023bd5c 100644 --- a/src/package.nls.pt-BR.json +++ b/src/package.nls.pt-BR.json @@ -2,6 +2,7 @@ "extension.displayName": "Roo Code", "extension.description": "Uma equipe completa de desenvolvimento de agentes de IA no seu editor.", "command.newTask.title": "Nova Tarefa", + "command.newTaskWithoutPrompt.title": "Nova Tarefa (Sem Prompt)", "command.explainCode.title": "Explicar Código", "command.fixCode.title": "Corrigir Código", "command.improveCode.title": "Melhorar Código", diff --git a/src/package.nls.ru.json b/src/package.nls.ru.json index 00d39e1cf36..a210ce8af71 100644 --- a/src/package.nls.ru.json +++ b/src/package.nls.ru.json @@ -6,6 +6,7 @@ "views.activitybar.title": "Roo Code", "views.sidebar.name": "Roo Code", "command.newTask.title": "Новая задача", + "command.newTaskWithoutPrompt.title": "Новая задача (без Prompt)", "command.history.title": "История задач", "command.marketplace.title": "Маркетплейс", "command.openInEditor.title": "Открыть в редакторе", diff --git a/src/package.nls.tr.json b/src/package.nls.tr.json index da05051f6d2..0a736b39182 100644 --- a/src/package.nls.tr.json +++ b/src/package.nls.tr.json @@ -2,6 +2,7 @@ "extension.displayName": "Roo Code", "extension.description": "Düzenleyicinde tam bir AI ajanları geliştirme ekibi.", "command.newTask.title": "Yeni Görev", + "command.newTaskWithoutPrompt.title": "Yeni Görev (Prompt olmadan)", "command.explainCode.title": "Kodu Açıkla", "command.fixCode.title": "Kodu Düzelt", "command.improveCode.title": "Kodu İyileştir", diff --git a/src/package.nls.vi.json b/src/package.nls.vi.json index 984b009e98a..caa3fb87f31 100644 --- a/src/package.nls.vi.json +++ b/src/package.nls.vi.json @@ -2,6 +2,7 @@ "extension.displayName": "Roo Code", "extension.description": "Một đội ngũ phát triển các tác nhân AI hoàn chỉnh trong trình soạn thảo của bạn.", "command.newTask.title": "Tác Vụ Mới", + "command.newTaskWithoutPrompt.title": "Tác Vụ Mới (Không Prompt)", "command.explainCode.title": "Giải Thích Mã", "command.fixCode.title": "Sửa Mã", "command.improveCode.title": "Cải Thiện Mã", diff --git a/src/package.nls.zh-CN.json b/src/package.nls.zh-CN.json index e6619a94917..1d676146d53 100644 --- a/src/package.nls.zh-CN.json +++ b/src/package.nls.zh-CN.json @@ -2,6 +2,7 @@ "extension.displayName": "Roo Code", "extension.description": "在你的编辑器中提供完整的 AI 代理开发团队。", "command.newTask.title": "新建任务", + "command.newTaskWithoutPrompt.title": "新建任务(无 Prompt)", "command.explainCode.title": "解释代码", "command.fixCode.title": "修复代码", "command.improveCode.title": "改进代码", diff --git a/src/package.nls.zh-TW.json b/src/package.nls.zh-TW.json index 38a9807126b..8067c3b8bf7 100644 --- a/src/package.nls.zh-TW.json +++ b/src/package.nls.zh-TW.json @@ -2,6 +2,7 @@ "extension.displayName": "Roo Code", "extension.description": "在你的編輯器中提供完整的 AI 代理開發團隊。", "command.newTask.title": "新建任務", + "command.newTaskWithoutPrompt.title": "新建任務(無 Prompt)", "command.explainCode.title": "解釋程式碼", "command.fixCode.title": "修復程式碼", "command.improveCode.title": "改進程式碼",