Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions scripts/start.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,21 @@ const env = {
DEV: 'true',
};

const keepCiEnv =
process.env.GEMINI_KEEP_CI_ENV === '1' ||
process.env.GEMINI_KEEP_CI_ENV === 'true';
if (!keepCiEnv) {
const ciKeys = ['CI', 'CONTINUOUS_INTEGRATION', 'GITHUB_ACTIONS'].filter(
(k) => k in env,
);
if (ciKeys.length > 0) {
ciKeys.forEach((k) => delete env[k]);
process.stderr.write(
`[gemini] Removed CI env vars to keep interactive mode working in dev: ${ciKeys.join(', ')}. Set GEMINI_KEEP_CI_ENV=1 to disable.\n`,
);
}
}

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.
Expand Down
Loading