mirror of
https://github.com/google-gemini/gemini-cli
synced 2026-04-21 13:37:17 +00:00
Merge e356b6f6d1 into a38e2f0048
This commit is contained in:
commit
0e0dc67df2
1 changed files with 23 additions and 0 deletions
|
|
@ -66,6 +66,29 @@ const env = {
|
|||
DEV: 'true',
|
||||
};
|
||||
|
||||
if (!process.argv.includes('--no-interactive-check')) {
|
||||
const scrubbedVars = [];
|
||||
for (const key of Object.keys(env)) {
|
||||
if (
|
||||
key === 'CI' ||
|
||||
key === 'CONTINUOUS_INTEGRATION' ||
|
||||
key.startsWith('CI_')
|
||||
) {
|
||||
delete env[key];
|
||||
scrubbedVars.push(key);
|
||||
}
|
||||
}
|
||||
|
||||
if (scrubbedVars.length > 0) {
|
||||
console.error(
|
||||
`[gemini] Removed CI-related env vars to ensure interactive mode: ${scrubbedVars.join(', ')}`,
|
||||
);
|
||||
console.error(
|
||||
`[gemini] These variables are still available in processes spawned by shell tools. Pass --no-interactive-check to suppress this.`,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
if (isInDebugMode) {
|
||||
// If this is not set, the debugger will pause on the outer process rather
|
||||
// than the relaunched process making it harder to debug.
|
||||
|
|
|
|||
Loading…
Reference in a new issue