diff --git a/packages/types/src/vscode.ts b/packages/types/src/vscode.ts index fd28f2e994..4bae1f9aa7 100644 --- a/packages/types/src/vscode.ts +++ b/packages/types/src/vscode.ts @@ -39,6 +39,7 @@ export const commandIds = [ "openInNewTab", "newTask", + "newTaskWithoutPrompt", "setCustomStoragePath", "importSettings", diff --git a/src/activate/registerCommands.ts b/src/activate/registerCommands.ts index f02ee8309a..6778e5095d 100644 --- a/src/activate/registerCommands.ts +++ b/src/activate/registerCommands.ts @@ -135,6 +135,22 @@ const getCommandsMap = ({ context, outputChannel, provider }: RegisterCommandOpt visibleProvider.postMessageToWebview({ type: "action", action: "marketplaceButtonClicked" }) }, 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 51249cc09a..059daf8f86 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 2781ed169c..665dc174ab 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 a77a253ef0..b5f23d57df 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 a1c729080e..0b1adb2903 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 2d009c0038..186a314384 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 c51f3ee95e..02e4e8321f 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 2a7607f3e7..c75f974890 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 c94471355d..161cb21098 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 ff6040d773..635ed74fba 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 177b392f77..a9f9bc142b 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 f0912835b8..f11297a03d 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 fef3ca7219..643c97f0a1 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 8c1f66450d..8a708bb1cd 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 84cbf42c09..12f955f676 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 be8df04032..80a88e2fc3 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 a815188e8a..7a91b8c659 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 6052080dfa..adefb53f23 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 9254d494d9..c04cb89b0a 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 a8030d6914..a7b8b63313 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": "改進程式碼",