Commit 12685fb
fix: use system claude binary instead of SDK-bundled cli.js
The claude-agent-sdk bundles its own cli.js inside node_modules. In the
packaged Electron app this file lives inside the asar archive, where
child_process.spawn cannot execute it — causing the Claude Code process
to exit with code 1 immediately after session start.
Default pathToClaudeCodeExecutable to "claude" (resolved via PATH) so
the adapter uses the system-installed binary, matching how the Codex
adapter already defaults to "codex".
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent a75a9b4 commit 12685fb
1 file changed
Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2237 | 2237 | | |
2238 | 2238 | | |
2239 | 2239 | | |
2240 | | - | |
2241 | | - | |
2242 | | - | |
| 2240 | + | |
2243 | 2241 | | |
2244 | 2242 | | |
2245 | 2243 | | |
| |||
0 commit comments