diff --git a/packages/core/src/services/shellExecutionService.ts b/packages/core/src/services/shellExecutionService.ts index c21eeb1136..81403bd760 100644 --- a/packages/core/src/services/shellExecutionService.ts +++ b/packages/core/src/services/shellExecutionService.ts @@ -313,10 +313,11 @@ export class ShellExecutionService { shell: false, detached: !isWindows, env: { + TERM: 'xterm-256color', + COLORTERM: 'truecolor', ...sanitizeEnvironment(process.env, sanitizationConfig), [GEMINI_CLI_IDENTIFICATION_ENV_VAR]: GEMINI_CLI_IDENTIFICATION_ENV_VAR_VALUE, - TERM: 'xterm-256color', PAGER: 'cat', GIT_PAGER: 'cat', }, @@ -575,12 +576,13 @@ export class ShellExecutionService { cols, rows, env: { + TERM: 'xterm-256color', + COLORTERM: 'truecolor', ...sanitizeEnvironment( process.env, shellExecutionConfig.sanitizationConfig, ), GEMINI_CLI: '1', - TERM: 'xterm-256color', PAGER: shellExecutionConfig.pager ?? 'cat', GIT_PAGER: shellExecutionConfig.pager ?? 'cat', },