This commit is contained in:
ANIRUDDHA ADAK 2026-04-21 04:29:09 +00:00 committed by GitHub
commit 0e0dc67df2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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.