File tree Expand file tree Collapse file tree
src/supervisor/agents/claude Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments