// reach the subprocess (replace semantics wipe anything not present here).
const env: Record<string, string | undefined> = proxied
ELECTRON_RUN_AS_NODE: '1',
NODE_OPTIONS: undefined,
ANTHROPIC_API_KEY: undefined,
HOME: process.env['HOME'],
USERPROFILE: process.env['USERPROFILE'],
}
: { ...process.env, ELECTRON_RUN_AS_NODE: '1', NODE_OPTIONS: undefined };
// Replace semantics mean the sparse (proxied) env would otherwise drop the