Skip to content

Commit 77324ec

Browse files
committed
Merge branch 'master' of github.com-sdsleon:SDSLeon/lightcode
2 parents a7e9e59 + da0661a commit 77324ec

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

src/supervisor/agents/claude/sdkSession.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -628,8 +628,16 @@ export class ClaudeSdkSession implements StructuredSessionHandle {
628628
break;
629629
}
630630
case "wsl":
631-
// WSL spawns through wsl.exe (see spawnClaudeInWsl); the SDK path
632-
// is resolved inside the distro.
631+
// WSL spawns through wsl.exe (see spawnClaudeInWsl), but the SDK
632+
// still resolves `pathToClaudeCodeExecutable` eagerly — if unset,
633+
// it tries to load its bundled win32-x64 SEA binary and throws
634+
// "Native CLI binary for win32-x64 not found" even though our
635+
// custom `spawnClaudeCodeProcess` will override the actual spawn.
636+
// Pass the in-distro path as a placeholder; fall back to `claude`
637+
// so the SDK's truthy check passes when detection hasn't primed
638+
// the binary cache yet.
639+
claudeExecutablePath =
640+
resolveAgentBinaryPath(this.input.projectLocation, "claude") ?? "claude";
633641
break;
634642
default: {
635643
const _exhaustive: never = this.input.projectLocation;

0 commit comments

Comments
 (0)