Skip to content

Commit 19ef52b

Browse files
authored
More command execution improvements (#3124)
1 parent 369e3a6 commit 19ef52b

File tree

19 files changed

+53
-54
lines changed

19 files changed

+53
-54
lines changed

src/core/tools/executeCommandTool.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ export async function executeCommandTool(
7979
} catch (error: unknown) {
8080
const status: CommandExecutionStatus = { executionId, status: "fallback" }
8181
clineProvider?.postMessageToWebview({ type: "commandExecutionStatus", text: JSON.stringify(status) })
82-
clineProvider?.setValue("terminalShellIntegrationDisabled", true)
8382
await cline.say("shell_integration_warning")
8483

8584
if (error instanceof ShellIntegrationError) {

webview-ui/src/components/chat/CommandExecution.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export const CommandExecution = ({ executionId, text }: CommandExecutionProps) =
8787
}, [status, text])
8888

8989
return (
90-
<div className="w-full p-2 rounded-xs bg-vscode-editor-background">
90+
<div className="w-full bg-vscode-editor-background border border-vscode-border rounded-xs p-2">
9191
<div className="flex flex-row items-center justify-between gap-2 px-1">
9292
<Line className="text-sm whitespace-nowrap overflow-hidden text-ellipsis">{command}</Line>
9393
<div className="flex flex-row items-center gap-1">

webview-ui/src/components/chat/CommandExecutionError.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export const CommandExecutionError = () => {
1111
}, [])
1212

1313
return (
14-
<div className="text-sm rounded-xs p-2 border border-vscode-editorWarning-foreground">
14+
<div className="text-sm bg-vscode-editor-background border border-vscode-border rounded-xs p-2">
1515
<div className="flex flex-col gap-2">
1616
<div className="flex items-center">
1717
<i className="codicon codicon-warning mr-1 text-vscode-editorWarning-foreground" />

webview-ui/src/i18n/locales/ca/chat.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@
9090
}
9191
},
9292
"selectMode": "Selecciona el mode d'interacció",
93+
"selectApiConfig": "Seleccioneu la configuració de l'API",
9394
"enhancePrompt": "Millora la sol·licitud amb context addicional",
9495
"addImages": "Afegeix imatges al missatge",
9596
"sendMessage": "Envia el missatge",
@@ -233,10 +234,9 @@
233234
}
234235
},
235236
"systemPromptWarning": "ADVERTÈNCIA: S'ha activat una substitució personalitzada d'instruccions del sistema. Això pot trencar greument la funcionalitat i causar un comportament impredictible.",
236-
"selectApiConfig": "Seleccioneu la configuració de l'API",
237237
"shellIntegration": {
238-
"title": "Integració de Shell no disponible",
239-
"description": "La teva ordre s'està executant sense la integració de shell de VSCode. Pots tornar a activar la integració de shell a la secció <strong>Terminal</strong> de la <settingsLink>configuració de Roo Code</settingsLink>.",
238+
"title": "Advertència d'execució d'ordres",
239+
"description": "La teva ordre s'està executant sense la integració de shell del terminal VSCode. Per suprimir aquest advertiment, pots desactivar la integració de shell a la secció <strong>Terminal</strong> de la <settingsLink>configuració de Roo Code</settingsLink> o solucionar problemes d'integració del terminal VSCode utilitzant l'enllaç a continuació.",
240240
"troubleshooting": "Fes clic aquí per a la documentació d'integració de shell."
241241
}
242242
}

webview-ui/src/i18n/locales/de/chat.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@
9090
}
9191
},
9292
"selectMode": "Interaktionsmodus auswählen",
93+
"selectApiConfig": "API-Konfiguration auswählen",
9394
"enhancePrompt": "Prompt mit zusätzlichem Kontext verbessern",
9495
"addImages": "Bilder zur Nachricht hinzufügen",
9596
"sendMessage": "Nachricht senden",
@@ -233,10 +234,9 @@
233234
}
234235
},
235236
"systemPromptWarning": "WARNUNG: Benutzerdefinierte Systemaufforderung aktiv. Dies kann die Funktionalität erheblich beeinträchtigen und zu unvorhersehbarem Verhalten führen.",
236-
"selectApiConfig": "API-Konfiguration auswählen",
237237
"shellIntegration": {
238-
"title": "Shell-Integration nicht verfügbar",
239-
"description": "Dein Befehl wird ohne VSCode-Shell-Integration ausgeführt. Du kannst die Shell-Integration im Bereich <strong>Terminal</strong> in den <settingsLink>Roo Code Einstellungen</settingsLink> wieder aktivieren.",
240-
"troubleshooting": "Klicke hier für die Shell-Integrations-Dokumentation."
238+
"title": "Befehlsausführungswarnung",
239+
"description": "Dein Befehl wird ohne VSCode Terminal-Shell-Integration ausgeführt. Um diese Warnung zu unterdrücken, kannst du die Shell-Integration im Abschnitt <strong>Terminal</strong> der <settingsLink>Roo Code Einstellungen</settingsLink> deaktivieren oder die VSCode Terminal-Integration mit dem Link unten beheben.",
240+
"troubleshooting": "Klicke hier für die Shell-Integrationsdokumentation."
241241
}
242242
}

webview-ui/src/i18n/locales/en/chat.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,8 +235,8 @@
235235
},
236236
"systemPromptWarning": "WARNING: Custom system prompt override active. This can severely break functionality and cause unpredictable behavior.",
237237
"shellIntegration": {
238-
"title": "Shell Integration Unavailable",
239-
"description": "Your command is being executed without VSCode shell integration. You can re-enable shell integration in the <strong>Terminal</strong> section of the <settingsLink>Roo Code settings</settingsLink>.",
238+
"title": "Command Execution Warning",
239+
"description": "Your command is being executed without VSCode terminal shell integration. To suppress this warning you can disable shell integration in the <strong>Terminal</strong> section of the <settingsLink>Roo Code settings</settingsLink> or troubleshoot VSCode terminal integration using the link below.",
240240
"troubleshooting": "Click here for shell integration documentation."
241241
}
242242
}

webview-ui/src/i18n/locales/es/chat.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@
9090
}
9191
},
9292
"selectMode": "Seleccionar modo de interacción",
93+
"selectApiConfig": "Seleccionar configuración de API",
9394
"enhancePrompt": "Mejorar el mensaje con contexto adicional",
9495
"addImages": "Agregar imágenes al mensaje",
9596
"sendMessage": "Enviar mensaje",
@@ -233,10 +234,9 @@
233234
}
234235
},
235236
"systemPromptWarning": "ADVERTENCIA: Anulación de instrucciones del sistema personalizada activa. Esto puede romper gravemente la funcionalidad y causar un comportamiento impredecible.",
236-
"selectApiConfig": "Seleccionar configuración de API",
237237
"shellIntegration": {
238-
"title": "Integración de Shell no disponible",
239-
"description": "Tu comando se está ejecutando sin la integración de shell de VSCode. Puedes reactivar la integración de shell en la sección <strong>Terminal</strong> de la <settingsLink>configuración de Roo Code</settingsLink>.",
238+
"title": "Advertencia de ejecución de comandos",
239+
"description": "Tu comando se está ejecutando sin la integración de shell de terminal de VSCode. Para suprimir esta advertencia, puedes desactivar la integración de shell en la sección <strong>Terminal</strong> de la <settingsLink>configuración de Roo Code</settingsLink> o solucionar problemas de integración de terminal de VSCode usando el enlace de abajo.",
240240
"troubleshooting": "Haz clic aquí para ver la documentación de integración de shell."
241241
}
242242
}

webview-ui/src/i18n/locales/fr/chat.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@
9090
}
9191
},
9292
"selectMode": "Sélectionner le mode d'interaction",
93+
"selectApiConfig": "Sélectionner la configuration de l'API",
9394
"enhancePrompt": "Améliorer la requête avec un contexte supplémentaire",
9495
"addImages": "Ajouter des images au message",
9596
"sendMessage": "Envoyer le message",
@@ -233,10 +234,9 @@
233234
}
234235
},
235236
"systemPromptWarning": "AVERTISSEMENT : Remplacement d'instructions système personnalisées actif. Cela peut gravement perturber la fonctionnalité et provoquer un comportement imprévisible.",
236-
"selectApiConfig": "Sélectionner la configuration de l'API",
237237
"shellIntegration": {
238-
"title": "Intégration Shell non disponible",
239-
"description": "Votre commande est exécutée sans l'intégration shell de VSCode. Vous pouvez réactiver l'intégration shell dans la section <strong>Terminal</strong> des <settingsLink>paramètres de Roo Code</settingsLink>.",
238+
"title": "Avertissement d'exécution de commande",
239+
"description": "Votre commande est exécutée sans l'intégration shell du terminal VSCode. Pour supprimer cet avertissement, vous pouvez désactiver l'intégration shell dans la section <strong>Terminal</strong> des <settingsLink>paramètres de Roo Code</settingsLink> ou résoudre les problèmes d'intégration du terminal VSCode en utilisant le lien ci-dessous.",
240240
"troubleshooting": "Cliquez ici pour la documentation d'intégration shell."
241241
}
242242
}

webview-ui/src/i18n/locales/hi/chat.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@
9090
}
9191
},
9292
"selectMode": "इंटरैक्शन मोड चुनें",
93+
"selectApiConfig": "एपीआई कॉन्फ़िगरेशन का चयन करें",
9394
"enhancePrompt": "अतिरिक्त संदर्भ के साथ प्रॉम्प्ट बढ़ाएँ",
9495
"addImages": "संदेश में चित्र जोड़ें",
9596
"sendMessage": "संदेश भेजें",
@@ -233,10 +234,9 @@
233234
}
234235
},
235236
"systemPromptWarning": "चेतावनी: कस्टम सिस्टम प्रॉम्प्ट ओवरराइड सक्रिय है। यह कार्यक्षमता को गंभीर रूप से बाधित कर सकता है और अनियमित व्यवहार का कारण बन सकता है.",
236-
"selectApiConfig": "एपीआई कॉन्फ़िगरेशन का चयन करें",
237237
"shellIntegration": {
238-
"title": "शेल इंटीग्रेशन अनुपलब्ध",
239-
"description": "आपका कमांड VSCode शेल इंटीग्रेशन के बिना निष्पादित हो रहा है। आप <settingsLink>Roo Code सेटिंग्स</settingsLink> के <strong>टर्मिनल</strong> अनुभाग में शेल इंटीग्रेशन को पुनः सक्षम कर सकते हैं।",
238+
"title": "कमांड निष्पादन चेतावनी",
239+
"description": "आपका कमांड VSCode टर्मिनल शेल इंटीग्रेशन के बिना निष्पादित हो रहा है। इस चेतावनी को दबाने के लिए आप <settingsLink>Roo Code सेटिंग्स</settingsLink> के <strong>Terminal</strong> अनुभाग में शेल इंटीग्रेशन को अक्षम कर सकते हैं या नीचे दिए गए लिंक का उपयोग करके VSCode टर्मिनल इंटीग्रेशन की समस्या का समाधान कर सकते हैं।",
240240
"troubleshooting": "शेल इंटीग्रेशन दस्तावेज़ के लिए यहां क्लिक करें।"
241241
}
242242
}

webview-ui/src/i18n/locales/it/chat.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@
9090
}
9191
},
9292
"selectMode": "Seleziona modalità di interazione",
93+
"selectApiConfig": "Seleziona la configurazione API",
9394
"enhancePrompt": "Migliora prompt con contesto aggiuntivo",
9495
"addImages": "Aggiungi immagini al messaggio",
9596
"sendMessage": "Invia messaggio",
@@ -233,10 +234,9 @@
233234
}
234235
},
235236
"systemPromptWarning": "ATTENZIONE: Sovrascrittura personalizzata delle istruzioni di sistema attiva. Questo può compromettere gravemente le funzionalità e causare comportamenti imprevedibili.",
236-
"selectApiConfig": "Seleziona la configurazione API",
237237
"shellIntegration": {
238-
"title": "Integrazione Shell non disponibile",
239-
"description": "Il tuo comando viene eseguito senza l'integrazione shell di VSCode. Puoi riattivare l'integrazione shell nella sezione <strong>Terminal</strong> delle <settingsLink>impostazioni di Roo Code</settingsLink>.",
238+
"title": "Avviso di esecuzione comando",
239+
"description": "Il tuo comando viene eseguito senza l'integrazione shell del terminale VSCode. Per sopprimere questo avviso puoi disattivare l'integrazione shell nella sezione <strong>Terminal</strong> delle <settingsLink>impostazioni di Roo Code</settingsLink> o risolvere i problemi di integrazione del terminale VSCode utilizzando il link qui sotto.",
240240
"troubleshooting": "Clicca qui per la documentazione sull'integrazione shell."
241241
}
242242
}

0 commit comments

Comments
 (0)