From 2aa9ff6d894ac9915dda2f487e02feb88452ead2 Mon Sep 17 00:00:00 2001 From: Hannes Rudolph Date: Thu, 30 Oct 2025 13:20:11 -0600 Subject: [PATCH] feat(terminal): enable Inline Terminal by default and clarify advanced settings Set terminalShellIntegrationDisabled default to true to use Inline Terminal by default. Update Terminal settings UI to default to Inline Terminal and only show "Inherit environment variables" when using the VS Code terminal. Refresh English settings copy for clarity and reliability. --- apps/vscode-e2e/src/types/global.d.ts | 1 - apps/web-evals/next-env.d.ts | 1 + src/core/tools/executeCommandTool.ts | 4 +- .../components/settings/TerminalSettings.tsx | 58 +++++++++---------- webview-ui/src/i18n/locales/en/settings.json | 26 ++++----- 5 files changed, 45 insertions(+), 45 deletions(-) diff --git a/apps/vscode-e2e/src/types/global.d.ts b/apps/vscode-e2e/src/types/global.d.ts index c2b11bf335..5c7fb164ad 100644 --- a/apps/vscode-e2e/src/types/global.d.ts +++ b/apps/vscode-e2e/src/types/global.d.ts @@ -1,7 +1,6 @@ import type { RooCodeAPI } from "@roo-code/types" declare global { - // eslint-disable-next-line no-var var api: RooCodeAPI } diff --git a/apps/web-evals/next-env.d.ts b/apps/web-evals/next-env.d.ts index 1b3be0840f..830fb594ca 100644 --- a/apps/web-evals/next-env.d.ts +++ b/apps/web-evals/next-env.d.ts @@ -1,5 +1,6 @@ /// /// +/// // NOTE: This file should not be edited // see https://nextjs.org/docs/app/api-reference/config/typescript for more information. diff --git a/src/core/tools/executeCommandTool.ts b/src/core/tools/executeCommandTool.ts index 2c7ce0d023..b0ae07bf86 100644 --- a/src/core/tools/executeCommandTool.ts +++ b/src/core/tools/executeCommandTool.ts @@ -67,7 +67,7 @@ export async function executeCommandTool( const { terminalOutputLineLimit = 500, terminalOutputCharacterLimit = DEFAULT_TERMINAL_OUTPUT_CHARACTER_LIMIT, - terminalShellIntegrationDisabled = false, + terminalShellIntegrationDisabled = true, } = providerState ?? {} // Get command execution timeout from VSCode configuration (in seconds) @@ -149,7 +149,7 @@ export async function executeCommand( executionId, command, customCwd, - terminalShellIntegrationDisabled = false, + terminalShellIntegrationDisabled = true, terminalOutputLineLimit = 500, terminalOutputCharacterLimit = DEFAULT_TERMINAL_OUTPUT_CHARACTER_LIMIT, commandExecutionTimeout = 0, diff --git a/webview-ui/src/components/settings/TerminalSettings.tsx b/webview-ui/src/components/settings/TerminalSettings.tsx index 833fe93dde..4baed55fba 100644 --- a/webview-ui/src/components/settings/TerminalSettings.tsx +++ b/webview-ui/src/components/settings/TerminalSettings.tsx @@ -201,35 +201,7 @@ export const TerminalSettings = ({
{ - setInheritEnv(e.target.checked) - vscode.postMessage({ - type: "updateVSCodeSetting", - setting: "terminal.integrated.inheritEnv", - value: e.target.checked, - }) - }} - data-testid="terminal-inherit-env-checkbox"> - {t("settings:terminal.inheritEnv.label")} - -
- - - {" "} - - -
-
- -
- setCachedStateField("terminalShellIntegrationDisabled", e.target.checked) }> @@ -253,6 +225,34 @@ export const TerminalSettings = ({ {!terminalShellIntegrationDisabled && ( <> +
+ { + setInheritEnv(e.target.checked) + vscode.postMessage({ + type: "updateVSCodeSetting", + setting: "terminal.integrated.inheritEnv", + value: e.target.checked, + }) + }} + data-testid="terminal-inherit-env-checkbox"> + {t("settings:terminal.inheritEnv.label")} + +
+ + + {" "} + + +
+
+