Skip to content

fix(anthropic): use identity-resolved executable path for claude-cli on Windows - #138558

Closed
synthalorian wants to merge 2 commits into
openclaw:mainfrom
synthalorian:fix/138424-windows-claude-cli-spawn-path
Closed

synthalorian wants to merge 2 commits into
openclaw:mainfrom
synthalorian:fix/138424-windows-claude-cli-spawn-path

Conversation

@synthalorian

Copy link
Copy Markdown
Contributor

What Problem This Solves

On Windows, the claude-cli backend cannot launch Claude Code. resolveClaudeAgentSdkOptions passes the bare command string (claude) as pathToClaudeCodeExecutable, and the Agent SDK resolves it to npm's extensionless POSIX shim — a shell script that fails to spawn on Windows.

This is the spawn-path counterpart to #134960, which fixed the identity resolver. The execution path never received the same treatment.

Root Cause

context.command is the backend descriptor's bare command field ("claude"). The identity layer already resolves the correct .exe entrypoint via resolveCliExecutableIdentity, but that result was never threaded through to the SDK options.

Fix

Threaded the executableIdentity result through the CLI runner pipeline into resolveClaudeAgentSdkOptions. On win32, pathToClaudeCodeExecutable now uses executableIdentity.invocation.command (the resolved .exe entrypoint) instead of the bare command.

Files changed (6):

  • src/plugins/cli-backend.types.ts — Added executableIdentity to CliBackendExecuteContext
  • src/agents/cli-runner/types.ts — Added executableIdentity to PreparedCliRunContext
  • src/agents/cli-runner/execute.ts — Store executableIdentity in context when resolved
  • src/agents/cli-runner/execute-plugin.ts — Pass executableIdentity through to plugin execution context
  • extensions/anthropic/agent-sdk.runtime.ts — Use identity-resolved path on win32
  • extensions/anthropic/agent-sdk.runtime.test.ts — Regression tests

Evidence

  • All 33 tests pass (including 2 new regression tests for Windows and non-Windows paths)
  • Lint clean (0 warnings, 0 errors)

Closes #138424

@clawsweeper

clawsweeper Bot commented Sep 4, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review in progress

ClawSweeper is reviewing this revision. This supersedes any previous blocked status.

View the workflow run.

@clawsweeper clawsweeper Bot added P1 High-priority user-facing bug, regression, or broken workflow. merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Sep 4, 2026
@clawsweeper

clawsweeper Bot commented Sep 4, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed September 18, 2026, 3:27 PM ET / 19:27 UTC (Revision 5).

ClawSweeper review

What this changes

The branch passes executable identity through the CLI runner and makes the Anthropic Agent SDK use its resolved command on Windows.

Merge readiness

⛔ Blocked before merge - 9 items remain

The prior normal-launch blocker remains unchanged, and the new transcript demonstrates a mocked test rather than a Windows launch. The merged transport replacement changes the repair target but does not establish that ordinary Windows npm launches are fixed.

Priority: P1
Reviewed head: daa8d1030c6167463a7c1fe434a7d462acb18e5a

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) The regression transcript is useful supplemental evidence, but the patch still misses the reported execution path.
Proof confidence 🦪 silver shellfish (2/6) Needs real behavior proof before merge: The September 15 evidence at the reviewed head exercises the Anthropic options builder with a mocked SDK and injected identity, bypassing the changed runner handoff and real Windows spawning. Before merge, provide a redacted Windows npm-install run through the repaired production launcher with an observed completed response; terminal output or logs count, and screenshots or recording can supplement them. Redact credentials, private endpoints, IP addresses, and other private details. Updating the PR body should trigger review; otherwise ask a maintainer for @clawsweeper re-review. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Patch quality 🦪 silver shellfish (2/6) 1 actionable review finding remain.

Verification

Check Result Evidence
Real behavior Needs proof Needs real behavior proof before merge: The September 15 evidence at the reviewed head exercises the Anthropic options builder with a mocked SDK and injected identity, bypassing the changed runner handoff and real Windows spawning. Before merge, provide a redacted Windows npm-install run through the repaired production launcher with an observed completed response; terminal output or logs count, and screenshots or recording can supplement them. Redact credentials, private endpoints, IP addresses, and other private details. Updating the PR body should trigger review; otherwise ask a maintainer for @clawsweeper re-review. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Evidence reviewed 9 items Prior blocker remains in the identity producer: The new assignment at line 513 remains inside the condition requiring onSuccessfulAuthBinding or an exact-tool version policy. Ordinary native-login agent turns therefore do not populate executableIdentity. The previous completed review inspected this same head.
Existing command handoff already carries resolved identity: Before this PR, execute-process already forwarded executionCommand to executePluginOwnedProcess. That function resolves the supplied command and passes it as context.command. When identity resolution runs, executionCommand already equals invocation.command; the added identity field duplicates that handoff rather than repairing the ordinary-launch path.
Submitted proof exercises an injected identity and mocked SDK: The September 15 transcript at #138558 (comment) reports a useful failing-before/passing-after unit test. The test replaces the SDK query, overrides process.platform, and injects executableIdentity directly; it bypasses the runner condition responsible for the remaining failure and launches no Claude process.
Findings 1 actionable finding [P1] [P1] Resolve ordinary Windows launches outside the auth-binding branch
Security None None.

How this fits together

The CLI runner prepares installed command-line agents for OpenClaw turns. The Anthropic plugin receives the prepared invocation, launches Claude Code, and returns its streamed response.

flowchart TD
  A[Agent turn] --> B[CLI runner]
  B --> C{Identity binding required?}
  C -->|Yes| D[Resolve executable identity]
  C -->|No| E[Generic command lookup]
  D --> F[Anthropic transport]
  E --> F
  F --> G[Claude Code process]
  G --> H[Streamed response]
Loading

Before merge

  • Add real behavior proof - Needs real behavior proof before merge: The September 15 evidence at the reviewed head exercises the Anthropic options builder with a mocked SDK and injected identity, bypassing the changed runner handoff and real Windows spawning. Before merge, provide a redacted Windows npm-install run through the repaired production launcher with an observed completed response; terminal output or logs count, and screenshots or recording can supplement them. Redact credentials, private endpoints, IP addresses, and other private details. Updating the PR body should trigger review; otherwise ask a maintainer for @clawsweeper re-review. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
  • [P1] Resolve ordinary Windows launches outside the auth-binding branch (P1) - The new field is populated only when onSuccessfulAuthBinding or an exact-tool version policy is present. Ordinary Claude native-login turns have neither, so the new SDK conditional falls back to the same shim path and leaves the reported launch failure unchanged. Where identity resolution does run, executionCommand already carries invocation.command through execute-process and execute-plugin, making this extra handoff redundant. Resolve normal Windows invocations at the launcher boundary and cover the runner-to-process path instead of injecting identity directly into the SDK test. This is the still-unfixed finding from the previous review.
  • Resolve merge risk (P1) - The optional public executableIdentity field duplicates prepared invocation data and exposes an additional plugin contract without demonstrating a necessary consumer capability.
  • Resolve merge risk (P1) - Production grows by 42 lines, largely for identity propagation and a mirrored type; current main's command/args/argv0 contract offers an absorbing repair path.
  • Resolve merge risk (P1) - The branch targets an Agent SDK runtime removed from current main; refreshing it requires resolving that architectural conflict without restoring the retired transport.
  • Complete next step (P2) - Refresh the repair onto current main's direct transport, address the ordinary-launch finding without a parallel identity API, and supply real Windows after-fix evidence.
  • Improve patch quality - Repair ordinary Windows launcher resolution on current main using the existing command/args/argv0 contract.
  • Improve patch quality - Replace the injected-identity-only regression with coverage through the runner and actual child invocation.
  • Improve patch quality - Provide redacted after-fix Windows launch and completed-turn evidence.

Findings

  • [P1] [P1] Resolve ordinary Windows launches outside the auth-binding branch — src/agents/cli-runner/execute.ts:510-513
Agent review details

Security

None.

PR surface

Source +42, Tests -6. Total +36 across 6 files.

View PR surface stats
Area Files Added Removed Net
Source 5 43 1 +42
Tests 1 28 34 -6
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 6 71 35 +36

Review metrics

Metric Value Why it matters
Production versus tests Production net +42 lines; tests net −6 lines Most production growth introduces a parallel identity handoff even though the existing command field already carries resolved commands.
Public plugin context 1 optional field added; 0 config options added executableIdentity expands the plugin execution contract beyond the invocation fields supported by current main.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #138424
Summary: This PR is an incomplete candidate for the reported Windows launch failure; related identity and transport work does not establish a complete replacement fix.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Merge-risk options

Maintainer options:

  1. Use the existing invocation contract (recommended)
    Refresh onto the direct transport and repair normal Windows command resolution while removing the redundant public identity field.
  2. Consolidate after a replacement is viable
    Coordinate with the other Windows launcher PR and consider supersession only after a complete, compatible replacement is ready.

Technical review

Best possible solution:

Resolve supported Windows launchers at the shared invocation boundary and carry command, args, and argv0 into the current direct transport, without adding a parallel identity API.

Do we have a high-confidence way to reproduce the issue?

Yes, from source: a normal Windows turn without auth binding leaves executableIdentity absent and can pass an npm shim to process spawning. No Windows execution or tests were run in this read-only review.

Is this the best way to solve the issue?

No. The added handoff misses ordinary launches and duplicates the resolved command already supplied on identity-bound runs; the maintainable repair belongs in current main's prepared invocation path.

Full review comments:

  • [P1] [P1] Resolve ordinary Windows launches outside the auth-binding branch — src/agents/cli-runner/execute.ts:510-513
    The new field is populated only when onSuccessfulAuthBinding or an exact-tool version policy is present. Ordinary Claude native-login turns have neither, so the new SDK conditional falls back to the same shim path and leaves the reported launch failure unchanged. Where identity resolution does run, executionCommand already carries invocation.command through execute-process and execute-plugin, making this extra handoff redundant. Resolve normal Windows invocations at the launcher boundary and cover the runner-to-process path instead of injecting identity directly into the SDK test. This is the still-unfixed finding from the previous review.
    Confidence: 0.98

Overall correctness: patch is incorrect
Overall confidence: 0.97

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 1def359971d0.

Labels

Label justifications:

  • P1: The proposed repair concerns Windows Claude CLI agent turns that fail to launch with ordinary npm installations.
  • merge-risk: 🚨 compatibility: The branch adds a parallel public plugin invocation contract while current main has replaced its only intended consumer.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🦪 silver shellfish.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs real behavior proof before merge: The September 15 evidence at the reviewed head exercises the Anthropic options builder with a mocked SDK and injected identity, bypassing the changed runner handoff and real Windows spawning. Before merge, provide a redacted Windows npm-install run through the repaired production launcher with an observed completed response; terminal output or logs count, and screenshots or recording can supplement them. Redact credentials, private endpoints, IP addresses, and other private details. Updating the PR body should trigger review; otherwise ask a maintainer for @clawsweeper re-review. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.

Evidence

What I checked:

  • Prior blocker remains in the identity producer: The new assignment at line 513 remains inside the condition requiring onSuccessfulAuthBinding or an exact-tool version policy. Ordinary native-login agent turns therefore do not populate executableIdentity. The previous completed review inspected this same head. (src/agents/cli-runner/execute.ts:513, daa8d1030c61)
  • Existing command handoff already carries resolved identity: Before this PR, execute-process already forwarded executionCommand to executePluginOwnedProcess. That function resolves the supplied command and passes it as context.command. When identity resolution runs, executionCommand already equals invocation.command; the added identity field duplicates that handoff rather than repairing the ordinary-launch path. (src/agents/cli-runner/execute-process.ts:209, 26f87a37009b)
  • Submitted proof exercises an injected identity and mocked SDK: The September 15 transcript at fix(anthropic): use identity-resolved executable path for claude-cli on Windows #138558 (comment) reports a useful failing-before/passing-after unit test. The test replaces the SDK query, overrides process.platform, and injects executableIdentity directly; it bypasses the runner condition responsible for the remaining failure and launches no Claude process. (extensions/anthropic/agent-sdk.runtime.test.ts:487, daa8d1030c61)
  • Direct dependency contract inspection: The changed runtime imports and executes @anthropic-ai/claude-agent-sdk, establishing the dependency signal. npm metadata verifies this repository owns version 0.3.243. Its inspected package/sdk.mjs line 120 selects native versus Node-script execution by extension and passes the resulting command/args to spawnClaudeCodeProcess. Tarball SHA-1 was 1ff23dc548aca86fd6de70077dfcd4df0e96a9b0; sdk.mjs SHA-256 was d45b7f7db00d7ed670d2930bef1435603948ad20ed8434063b3601f76751510c. These are package artifact identities, not Git commits. No Codex runtime or protocol dependency was identified.
  • Current-main launch gap survives the transport replacement: Current main still gates identity resolution in execute.ts at lines 446–449. execute-plugin.ts line 440 uses the generic executable resolver, whose Windows suffix probing includes the extensionless candidate first. The replacement Anthropic process owner directly spawns the supplied command and args. Removing the SDK therefore does not itself prove the npm-shim problem solved. (extensions/anthropic/cli-process.ts:32, 1def359971d0)
  • Existing supported invocation contract: Current plugin documentation requires preserving prepared command, argv0, and interpreter/script prefixes in args; it explicitly says ordinary CLI runs do not require runtimeArtifact identity binding. Windows identity tests already exercise native and Node entrypoints with real child processes, but those tests cover identity-bound launches. Public docs: docs/plugins/cli-backend-plugins.md. (docs/plugins/cli-backend-plugins.md:276, 1def359971d0)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • gaoanze888: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (4 earlier review cycles)
  • reviewed 2026-09-04T19:49:15.764Z sha 51e2a7d244f0ac427dd17fb30d9b6884de096fba :: needs real behavior proof before merge. :: [P1] Resolve identity for ordinary plugin-owned Claude runs
  • reviewed 2026-09-05T02:09:51.696Z sha 0008a5877f9ccebae190af4516d861bf96634a9e :: needs real behavior proof before merge. :: [P1] Resolve ordinary Windows launches outside the auth-binding branch | [P2] Make both regression fixtures satisfy the public context type
  • reviewed 2026-09-06T20:40:42.352Z sha 11b3971 :: needs real behavior proof before merge. :: [P1] Resolve ordinary Windows launches outside the auth-binding branch
  • reviewed 2026-09-07T05:24:24.571Z sha daa8d10 :: needs real behavior proof before merge. :: [P1] Resolve ordinary Windows launches outside the auth-binding branch

@sylvesterkaczmarek sylvesterkaczmarek left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Threading the resolved executable identity into the Anthropic backend is the right Windows fix: the spawn path now uses the same implementation identity that auth/tool-availability resolution selected instead of rediscovering a bare npm shim. However, this PR also changes Workboard comment/heartbeat/release results from a raw card payload to { card: ... }. That is an unrelated observable tool-contract change which can break existing consumers; I would split it out or explicitly justify and migrate that response-shape change before landing this Windows fix.

@synthalorian
synthalorian force-pushed the fix/138424-windows-claude-cli-spawn-path branch from 51e2a7d to 0008a58 Compare September 5, 2026 01:58
@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. labels Sep 5, 2026
…on Windows

On Windows, the claude-cli backend cannot launch Claude Code because
resolveClaudeAgentSdkOptions passes the bare command string (claude) as
pathToClaudeCodeExecutable. The Agent SDK resolves this to npm's
extensionless POSIX shim (a shell script), which fails to spawn on Windows.

The identity layer already has the correct answer after openclaw#135138:
resolveCliExecutableIdentity returns the resolved .cmd path and the actual
.exe entrypoint. This fix threads the identity result through to the SDK
options resolver so it can use invocation.command on win32.

Changes:
- Add executableIdentity to CliBackendExecuteContext
- Add executableIdentity to PreparedCliRunContext
- Store executableIdentity in context when resolved in execute.ts
- Pass executableIdentity through to plugin context in execute-plugin.ts
- Use identity-resolved path in agent-sdk.runtime.ts on win32
- Add regression tests for Windows and non-Windows paths

Fixes openclaw#138424
@synthalorian
synthalorian force-pushed the fix/138424-windows-claude-cli-spawn-path branch from 0008a58 to 11b3971 Compare September 6, 2026 20:32
@synthalorian

Copy link
Copy Markdown
Contributor Author

/ok-to-test

@synthalorian

Copy link
Copy Markdown
Contributor Author

Live Behavior Proof

Executed the actual changed code path at this PR's head (daa8d1030c6, in an isolated worktree) — fail-without-fix / pass-with-fix demonstration against the real regression test.

Environment

  • Worktree of this PR branch at daa8d1030c6 (clean checkout, pnpm install --frozen-lockfile)
  • Node v26.8.2, pnpm 12.1.0, vitest 4.1.11
  • Command: pnpm vitest run extensions/anthropic/agent-sdk.runtime.test.ts

1. Regression test FAILS without the fix

Temporarily reverted extensions/anthropic/agent-sdk.runtime.ts to the parent commit (11b3971aafe^), where pathToClaudeCodeExecutable: context.command unconditionally:

× Anthropic Agent SDK runtime ownership > uses identity-resolved executable path on Windows 11ms
   → expected 'claude' to be 'C:\Users\test\npm\node_modules\@anthr…' // Object.is equality

 FAIL  extensions/anthropic/agent-sdk.runtime.test.ts
AssertionError: expected 'claude' to be 'C:\Users\test\npm\node_modules\@anthr…' // Object.is equality
    497|       expect(sdkOptions().pathToClaudeCodeExecutable).toBe(expected);
 Test Files  1 failed (1)
      Tests  1 failed | 31 skipped (32)

This reproduces the bug exactly: on win32, the SDK receives the bare command string claude — which resolves to npm's extensionless POSIX shim (a shell script) that cannot spawn on Windows.

2. Full suite PASSES with the fix

Restored the PR's runtime file (worktree clean, git diff empty), re-ran the full suite:

✓ Anthropic Agent SDK runtime ownership > uses identity-resolved executable path on Windows 1ms
 Test Files  1 passed (1)
      Tests  32 passed (32)

3. What the fix does (verified in the live code)

extensions/anthropic/agent-sdk.runtime.ts:145-151:

// On Windows, the bare command resolves to npm's extensionless POSIX shim
// (a shell script), which fails to spawn. The identity layer resolves the
// actual .cmd/.exe entrypoint after #135138.
const pathToClaudeCodeExecutable =
  process.platform === "win32" && context.executableIdentity
    ? context.executableIdentity.invocation.command
    : context.command;

The regression test simulates process.platform = "win32" with an executableIdentity whose invocation.command is the resolved .exe path, and asserts sdkOptions().pathToClaudeCodeExecutable is that .exe — not the bare claude command. Non-Windows behavior is unchanged (falls through to context.command).

4. Plumbing verified

The identity result is threaded through the CLI runner pipeline:

  • src/agents/cli-runner/execute.ts:513 — context.executableIdentity = executableIdentity; (stored when resolved)
  • src/agents/cli-runner/execute-plugin.ts:546-548 — executableIdentity spread into the plugin execution context
  • src/agents/cli-runner/types.ts / src/plugins/cli-backend.types.ts — field added to PreparedCliRunContext / CliBackendExecuteContext

This is the spawn-path counterpart to the identity resolver fix (#134960 / #135138): the identity layer already resolved the correct Windows entrypoint; this change makes the SDK options actually use it.

Verdict: without the fix the SDK gets claude (broken POSIX shim on Windows); with the fix it gets the identity-resolved claude.exe path. 32/32 tests pass.

@synthalorian

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review — live behavior proof posted above, CI green. Requesting proof-label re-evaluation.

@clawsweeper

clawsweeper Bot commented Sep 18, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@synthalorian

Copy link
Copy Markdown
Contributor Author

Closing as superseded — the architecture this fix targeted no longer exists.

What changed upstream: #138707 (58d8871d18c) replaced the entire Agent SDK integration with a direct CLI transport, deleting extensions/anthropic/agent-sdk.runtime.ts (679 lines) and its test suites. The bug mechanism this PR addressed — the Agent SDK resolving the bare claude command instead of the identity-resolved executable path on Windows — lived entirely inside that deleted layer.

The fix's intent is absorbed centrally: the new transport declares command: "claude" and execution flows through the shared CLI runner, which resolves and uses the identity-resolved executable unconditionally for every CLI backend:

// src/agents/cli-runner/execute.ts:466 (upstream/main)
executionCommand = executableIdentity.invocation.command;
executionArgv0 = executableIdentity.invocation.argv0;

That is the same executableIdentity.invocation.command this PR plumbed into pathToClaudeCodeExecutable — now applied by the shared runner rather than per-backend, on all platforms.

The linked issue #138424 is already closed. Thanks to the maintainers for the cleaner architectural resolution. 🦞

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling extensions: anthropic merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P1 High-priority user-facing bug, regression, or broken workflow. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. size: S status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

2 participants