From c3f23c5eac6a7a43e9dd1c31068d6ec7680b2ca3 Mon Sep 17 00:00:00 2001 From: Roo Code Date: Wed, 28 Jan 2026 17:28:09 +0000 Subject: [PATCH] fix: show correct status for execute_command UI (Running vs Executed) EXT-672: The execute_command UI now accurately shows the terminal state: - Shows "Running" when a command is actively executing - Shows "Executed" when the command has completed Added "executed" translation key to all 18 locale files. --- webview-ui/src/components/chat/ChatRow.tsx | 2 +- webview-ui/src/i18n/locales/ca/chat.json | 1 + webview-ui/src/i18n/locales/de/chat.json | 1 + webview-ui/src/i18n/locales/en/chat.json | 1 + webview-ui/src/i18n/locales/es/chat.json | 1 + webview-ui/src/i18n/locales/fr/chat.json | 1 + webview-ui/src/i18n/locales/hi/chat.json | 1 + webview-ui/src/i18n/locales/id/chat.json | 1 + webview-ui/src/i18n/locales/it/chat.json | 1 + webview-ui/src/i18n/locales/ja/chat.json | 1 + webview-ui/src/i18n/locales/ko/chat.json | 1 + webview-ui/src/i18n/locales/nl/chat.json | 1 + webview-ui/src/i18n/locales/pl/chat.json | 1 + webview-ui/src/i18n/locales/pt-BR/chat.json | 1 + webview-ui/src/i18n/locales/ru/chat.json | 1 + webview-ui/src/i18n/locales/tr/chat.json | 1 + webview-ui/src/i18n/locales/vi/chat.json | 1 + webview-ui/src/i18n/locales/zh-CN/chat.json | 1 + webview-ui/src/i18n/locales/zh-TW/chat.json | 1 + 19 files changed, 19 insertions(+), 1 deletion(-) diff --git a/webview-ui/src/components/chat/ChatRow.tsx b/webview-ui/src/components/chat/ChatRow.tsx index 6a6d5c3f6df..c3cb9b3491f 100644 --- a/webview-ui/src/components/chat/ChatRow.tsx +++ b/webview-ui/src/components/chat/ChatRow.tsx @@ -282,7 +282,7 @@ export const ChatRowContent = ({ ), - {t("chat:commandExecution.running")} + {isCommandExecuting ? t("chat:commandExecution.running") : t("chat:commandExecution.executed")} , ] case "use_mcp_server": diff --git a/webview-ui/src/i18n/locales/ca/chat.json b/webview-ui/src/i18n/locales/ca/chat.json index c44a8724335..b8b61c543d7 100644 --- a/webview-ui/src/i18n/locales/ca/chat.json +++ b/webview-ui/src/i18n/locales/ca/chat.json @@ -224,6 +224,7 @@ "commandExecution": { "abort": "Avortar", "running": "En execució", + "executed": "Executat", "pid": "PID: {{pid}}", "exitStatus": "S'ha sortit amb l'estat {{exitCode}}", "manageCommands": "Comandes aprovades automàticament", diff --git a/webview-ui/src/i18n/locales/de/chat.json b/webview-ui/src/i18n/locales/de/chat.json index 1f3f11bc81c..ae9532ea1fc 100644 --- a/webview-ui/src/i18n/locales/de/chat.json +++ b/webview-ui/src/i18n/locales/de/chat.json @@ -224,6 +224,7 @@ "commandExecution": { "abort": "Abbrechen", "running": "Wird ausgeführt", + "executed": "Ausgeführt", "pid": "PID: {{pid}}", "exitStatus": "Beendet mit Status {{exitCode}}", "manageCommands": "Automatisch genehmigte Befehle", diff --git a/webview-ui/src/i18n/locales/en/chat.json b/webview-ui/src/i18n/locales/en/chat.json index d167a19ff3e..a4d5de13870 100644 --- a/webview-ui/src/i18n/locales/en/chat.json +++ b/webview-ui/src/i18n/locales/en/chat.json @@ -250,6 +250,7 @@ "commandExecution": { "abort": "Abort", "running": "Running", + "executed": "Executed", "pid": "PID: {{pid}}", "exitStatus": "Exited with status {{exitCode}}", "manageCommands": "Auto-approved commands", diff --git a/webview-ui/src/i18n/locales/es/chat.json b/webview-ui/src/i18n/locales/es/chat.json index 2c9418cfa7e..0917cea916d 100644 --- a/webview-ui/src/i18n/locales/es/chat.json +++ b/webview-ui/src/i18n/locales/es/chat.json @@ -224,6 +224,7 @@ "commandExecution": { "abort": "Abortar", "running": "Ejecutando", + "executed": "Ejecutado", "pid": "PID: {{pid}}", "exitStatus": "Salió con el estado {{exitCode}}", "manageCommands": "Comandos aprobados automáticamente", diff --git a/webview-ui/src/i18n/locales/fr/chat.json b/webview-ui/src/i18n/locales/fr/chat.json index 8aa09075dc3..77d81f48e3e 100644 --- a/webview-ui/src/i18n/locales/fr/chat.json +++ b/webview-ui/src/i18n/locales/fr/chat.json @@ -224,6 +224,7 @@ "commandExecution": { "abort": "Abandonner", "running": "En cours d'exécution", + "executed": "Exécuté", "pid": "PID : {{pid}}", "exitStatus": "Terminé avec le statut {{exitCode}}", "manageCommands": "Commandes approuvées automatiquement", diff --git a/webview-ui/src/i18n/locales/hi/chat.json b/webview-ui/src/i18n/locales/hi/chat.json index 9c155e62ec4..6905afc2231 100644 --- a/webview-ui/src/i18n/locales/hi/chat.json +++ b/webview-ui/src/i18n/locales/hi/chat.json @@ -224,6 +224,7 @@ "commandExecution": { "abort": "रद्द करें", "running": "चल रहा है", + "executed": "निष्पादित", "pid": "पीआईडी: {{pid}}", "exitStatus": "{{exitCode}} स्थिति के साथ बाहर निकल गया", "manageCommands": "स्वतः-अनुमोदित कमांड", diff --git a/webview-ui/src/i18n/locales/id/chat.json b/webview-ui/src/i18n/locales/id/chat.json index c8569f36460..56175bb72de 100644 --- a/webview-ui/src/i18n/locales/id/chat.json +++ b/webview-ui/src/i18n/locales/id/chat.json @@ -255,6 +255,7 @@ "commandExecution": { "abort": "Batalkan", "running": "Menjalankan", + "executed": "Dijalankan", "pid": "PID: {{pid}}", "exitStatus": "Keluar dengan status {{exitCode}}", "manageCommands": "Perintah yang disetujui secara otomatis", diff --git a/webview-ui/src/i18n/locales/it/chat.json b/webview-ui/src/i18n/locales/it/chat.json index ac00a6dea09..39a82d1ce1b 100644 --- a/webview-ui/src/i18n/locales/it/chat.json +++ b/webview-ui/src/i18n/locales/it/chat.json @@ -224,6 +224,7 @@ "commandExecution": { "abort": "Interrompi", "running": "In esecuzione", + "executed": "Eseguito", "pid": "PID: {{pid}}", "exitStatus": "Uscito con stato {{exitCode}}", "manageCommands": "Comandi approvati automaticamente", diff --git a/webview-ui/src/i18n/locales/ja/chat.json b/webview-ui/src/i18n/locales/ja/chat.json index 34a494ba23a..710a57bc2e1 100644 --- a/webview-ui/src/i18n/locales/ja/chat.json +++ b/webview-ui/src/i18n/locales/ja/chat.json @@ -224,6 +224,7 @@ "commandExecution": { "abort": "中止", "running": "実行中", + "executed": "実行済み", "pid": "PID: {{pid}}", "exitStatus": "ステータス {{exitCode}} で終了しました", "manageCommands": "自動承認されたコマンド", diff --git a/webview-ui/src/i18n/locales/ko/chat.json b/webview-ui/src/i18n/locales/ko/chat.json index 18d0089e340..60951b5b00d 100644 --- a/webview-ui/src/i18n/locales/ko/chat.json +++ b/webview-ui/src/i18n/locales/ko/chat.json @@ -224,6 +224,7 @@ "commandExecution": { "abort": "중단", "running": "실행 중", + "executed": "실행됨", "pid": "PID: {{pid}}", "exitStatus": "상태 {{exitCode}}(으)로 종료됨", "manageCommands": "자동 승인된 명령", diff --git a/webview-ui/src/i18n/locales/nl/chat.json b/webview-ui/src/i18n/locales/nl/chat.json index 5f0f6936194..e8413c091f3 100644 --- a/webview-ui/src/i18n/locales/nl/chat.json +++ b/webview-ui/src/i18n/locales/nl/chat.json @@ -218,6 +218,7 @@ "commandOutput": "Commando-uitvoer", "commandExecution": { "running": "Lopend", + "executed": "Uitgevoerd", "abort": "Afbreken", "pid": "PID: {{pid}}", "exitStatus": "Afgesloten met status {{exitCode}}", diff --git a/webview-ui/src/i18n/locales/pl/chat.json b/webview-ui/src/i18n/locales/pl/chat.json index fd90a260034..e85f2c5826a 100644 --- a/webview-ui/src/i18n/locales/pl/chat.json +++ b/webview-ui/src/i18n/locales/pl/chat.json @@ -223,6 +223,7 @@ "commandOutput": "Wyjście polecenia", "commandExecution": { "running": "Wykonywanie", + "executed": "Wykonano", "abort": "Przerwij", "pid": "PID: {{pid}}", "exitStatus": "Zakończono ze statusem {{exitCode}}", diff --git a/webview-ui/src/i18n/locales/pt-BR/chat.json b/webview-ui/src/i18n/locales/pt-BR/chat.json index c6fdc35e824..a0531ad0930 100644 --- a/webview-ui/src/i18n/locales/pt-BR/chat.json +++ b/webview-ui/src/i18n/locales/pt-BR/chat.json @@ -223,6 +223,7 @@ "commandOutput": "Saída do comando", "commandExecution": { "running": "Executando", + "executed": "Executado", "abort": "Interromper", "pid": "PID: {{pid}}", "exitStatus": "Saiu com o status {{exitCode}}", diff --git a/webview-ui/src/i18n/locales/ru/chat.json b/webview-ui/src/i18n/locales/ru/chat.json index dffbc64e8d4..03bf1b82846 100644 --- a/webview-ui/src/i18n/locales/ru/chat.json +++ b/webview-ui/src/i18n/locales/ru/chat.json @@ -218,6 +218,7 @@ "commandOutput": "Вывод команды", "commandExecution": { "running": "Выполняется", + "executed": "Выполнено", "abort": "Прервать", "pid": "PID: {{pid}}", "exitStatus": "Завершено со статусом {{exitCode}}", diff --git a/webview-ui/src/i18n/locales/tr/chat.json b/webview-ui/src/i18n/locales/tr/chat.json index 5d5d93893e3..34f3cb63a2a 100644 --- a/webview-ui/src/i18n/locales/tr/chat.json +++ b/webview-ui/src/i18n/locales/tr/chat.json @@ -223,6 +223,7 @@ "commandOutput": "Komut Çıktısı", "commandExecution": { "running": "Çalışıyor", + "executed": "Yürütüldü", "abort": "İptal Et", "pid": "PID: {{pid}}", "exitStatus": "{{exitCode}} durumuyla çıkıldı", diff --git a/webview-ui/src/i18n/locales/vi/chat.json b/webview-ui/src/i18n/locales/vi/chat.json index 76191a03cf1..fa10601e85a 100644 --- a/webview-ui/src/i18n/locales/vi/chat.json +++ b/webview-ui/src/i18n/locales/vi/chat.json @@ -223,6 +223,7 @@ "commandOutput": "Kết quả lệnh", "commandExecution": { "running": "Đang chạy", + "executed": "Đã thực thi", "abort": "Hủy bỏ", "pid": "PID: {{pid}}", "exitStatus": "Đã thoát với trạng thái {{exitCode}}", diff --git a/webview-ui/src/i18n/locales/zh-CN/chat.json b/webview-ui/src/i18n/locales/zh-CN/chat.json index e63cc5dd08e..995e2573429 100644 --- a/webview-ui/src/i18n/locales/zh-CN/chat.json +++ b/webview-ui/src/i18n/locales/zh-CN/chat.json @@ -223,6 +223,7 @@ "commandOutput": "命令输出", "commandExecution": { "running": "正在运行", + "executed": "已执行", "abort": "中止", "pid": "PID: {{pid}}", "exitStatus": "已退出,状态码 {{exitCode}}", diff --git a/webview-ui/src/i18n/locales/zh-TW/chat.json b/webview-ui/src/i18n/locales/zh-TW/chat.json index 95a96503baf..6b36cc5d4b7 100644 --- a/webview-ui/src/i18n/locales/zh-TW/chat.json +++ b/webview-ui/src/i18n/locales/zh-TW/chat.json @@ -250,6 +250,7 @@ "commandExecution": { "abort": "中止", "running": "執行中", + "executed": "已執行", "pid": "PID: {{pid}}", "exitStatus": "已結束,狀態碼 {{exitCode}}", "manageCommands": "自動核准的命令",