Commit c8ccc28
committed
fix: strip CLAUDECODE env vars to allow running inside Claude Code session
When the Electron app is launched from inside another Claude Code session
(e.g. Conductor), CLAUDECODE=1 is inherited into process.env and forwarded
to the spawned Claude binary, which detects the parent marker and exits
with the nested-session guard. Strip CLAUDECODE and CLAUDE_CODE_SSE_PORT
from both the captured shell env and the merged final env.1 parent 86067f7 commit c8ccc28
1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
27 | 32 | | |
28 | 33 | | |
29 | 34 | | |
| |||
0 commit comments