243
}
244
: { ...process.env, ELECTRON_RUN_AS_NODE: '1', NODE_OPTIONS: undefined };
245
>
// Replace semantics mean the sparse (proxied) env would otherwise drop the
claudeSdkOptions.ts
246
>
// agent host's own marker, so set it in both modes. See `AiAgentEnvVar`.
247
>
env[AiAgentEnvVar] = AiAgentEnvValue;
248
>
for (const key of Object.keys(process.env)) {
249
>
if (key === 'ELECTRON_RUN_AS_NODE') { continue; }
250
>
if (key.startsWith('VSCODE_') || key.startsWith('ELECTRON_')) {
251
env[key] = undefined;
252
}
254
>
return env;
255
>
}