From 50ce2b9a5e25de5ebc4b25297c473d7201391828 Mon Sep 17 00:00:00 2001 From: Sri Pasumarthi Date: Tue, 3 Mar 2026 22:08:19 -0800 Subject: [PATCH] fix(core): ensure true fallbacks for TERM and COLORTERM variables --- packages/core/src/services/shellExecutionService.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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', },