fix(core): ensure true fallbacks for TERM and COLORTERM variables

This commit is contained in:
Sri Pasumarthi
2026-03-03 22:08:19 -08:00
parent 3ebc7d7c1a
commit 50ce2b9a5e

View File

@@ -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',
},