paseo icon indicating copy to clipboard operation
paseo copied to clipboard

bug: daemon-spawned agents use bundled Claude Code 2.1.258 (not the 2.1.284 system CLI), so claude-opus-5-5 fails with a 400 version gate

Open lstroud opened this issue 2 months ago • 5 comments

Summary

Agents created through the daemon (e.g. via create_agent / the MCP orchestration path) fail immediately on claude-opus-5-5 with:

API Error: 400 Claude Code 2.1.258 does not support this model; version 2.1.280 or newer is required. Run 'claude update', or update the Claude desktop app, then try again.

The machine's system Claude Code CLI is 2.1.284 and works with claude-opus-5-5 without issue. The 2.1.258 in the error is Paseo's SDK-bundled Claude Code (the one @anthropic-ai/claude-agent-sdk carries/extracts), not the installed CLI — so newly-spawned agents are running an older, bundled binary that predates Opus 5.5 support.

This looks like a regression of (or a re-opened path around) #4193, which fixed the same class of failure by preferring an external Claude Code executable over the bundled one.

Reproduction

  1. System Claude Code CLI at 2.1.284 (supports claude-opus-5-5).
  2. Create a fresh agent with provider claude, model claude-opus-5-5, any prompt (e.g. "Reply with exactly: OK").
  3. First turn errors immediately with the 400 above. No tokens are consumed.

Expected vs actual

  • Expected: spawned agents use the resolved system CLI (2.1.284) like interactive sessions do, so claude-opus-5-5 works.
  • Actual: spawned agents report Claude Code 2.1.258 and are rejected by the API for any model that requires ≥ 2.1.280 (Opus 5.5).

Evidence

  • /Users/les/.local/bin/claude --version → 2.1.284 (Claude Code); versions dir contains only 2.1.280–2.1.284. No 2.1.258 is installed on the machine.
  • An interactive Claude Code session launched from the system CLI on this same daemon runs on claude-opus-5-5 fine (full turns generated).
  • A freshly created agent (claude/claude-opus-5-5) fails on turn 1 with the 2.1.258 400. Same daemon, same model — the only difference is which Claude Code binary is spawned.
  • The 2.1.258 binary is not present as a standalone file under the app bundle's app.asar.unpacked/.../claude-agent-sdk-darwin-arm64/ (asar marks it unpacked but the file is absent) nor in the usual caches; the SDK carries it via extractFromBunfs.js + manifest.zst.json and extracts at runtime. So the version reported in the error is the bundled SDK CLI, confirming the spawn path is not using the system install.

Mechanism (inference)

The daemon's agent-spawn path is falling back to the SDK's bundled Claude Code (~2.1.258) instead of the resolved global/system CLI (2.1.284). Because the bundled binary predates Opus 5.5, the API rejects the request. Interactive sessions launched from the external CLI are unaffected. This is the same failure mode #4193 addressed by preferring an external executable (pathToClaudeCodeExecutable), so either that resolution regressed or it isn't applied on this spawn path.

Environment

  • Paseo desktop-managed daemon (config "desktopManaged": true), listen 127.0.0.1:6767.
  • macOS (darwin arm64), Darwin 25.6.0.
  • System Claude Code: 2.1.284.
  • Model: claude-opus-5-5 (current default claude model per list_models).

Related

  • #4193 — same class (bundled Claude Code too old for a new model), fixed via external executable. Likely regression.
  • #5192 — claude-opus-5-5 label handling.
  • #5559 — Opus 5.5 429s.

lstroud avatar Sep 29 '26 18:09 lstroud

Thanks for the report. Paseo starts Claude agents with the claude it finds on the daemon's PATH, or the command set for the Claude provider, rather than a copy bundled with the app. What decides where this goes is which claude the daemon resolves.

Can you open Settings → Providers → Claude Code → Diagnostic while agents are failing, and paste the copied diagnostic (the Resolved path and Version lines are the ones that matter)?

The earlier report of this error, #4193, turned out to be an agent that started before claude update and kept the old version. Creating a new agent or restarting Paseo cleared it there.

paseo-bot[bot] avatar Sep 29 '26 19:09 paseo-bot[bot]

Thanks for the report. I'm closing this because the diagnostic asked for on September 29 hasn't come in.

If agents still fail with this error, reply with the copied diagnostic from Settings → Providers → Claude Code → Diagnostic (the Resolved path and Version lines), and the issue will be reopened.

paseo-bot[bot] avatar Oct 13 '26 20:10 paseo-bot[bot]

Here's the diagnostic requested. The version on my path is not the same as the version in the error report. I suspect it is claude sdk related.

Here's the diagnostic requested. The version on my path is not the same as the version in the error report. I suspect it is claude sdk related.

Claude Code Command source: default Configured command: claude Daemon PATH: /Users/myuser/.local/bin:/Users/myuser/.local/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/Users/myuser/.nvm/versions/node/v24.12.0/bin:/Users/myuser/.local/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/... Daemon shell: /bin/zsh PATH matches: /Users/myuser/.local/bin/claude which -a claude: /Users/myuser/.local/bin/claude /Users/myuser/.local/bin/claude /Users/myuser/.local/bin/claude zsh -lc type -a claude: claude is /Users/myuser/.local/bin/claude claude is /Users/myuser/.local/bin/claude Binary: claude Resolved path: /Users/myuser/.local/bin/claude Version: 2.1.301 (Claude Code) Auth: { "loggedIn": true, "authMethod": "oauth_token", "apiProvider": "firstParty", "analyticsDisabled": false, "projectsDirectory": "/Users/myuser/.claude/projects", "configDirectory": "/Users/myuser/.claude" } Models: 19 Status: Ready

lstroud avatar Oct 21 '26 16:10 lstroud

Thanks for the diagnostic, @lstroud. I've reopened this.

Does a Claude agent you create now, on v0.12.0, still fail with the Claude Code 2.1.258 does not support this model error? If it does, please paste the exact error and the daemon log lines from that moment, from ~/.paseo/daemon.log (remove keys and tokens first).

paseo-bot[bot] avatar Oct 23 '26 07:10 paseo-bot[bot]

Resolved after updating my CLIProxyAPI deployment from v7.3.9 to v8.0.40. My original explanation about an SDK-bundled Claude binary was incorrect.

Paseo was using the installed system Claude CLI, but my provider's ANTHROPIC_BASE_URL routed requests through CLIProxyAPI. The proxy's older Claude compatibility layer used a 2.1.258 client fingerprint, below Opus 5.5's required 2.1.280, and did not recognize the Agent SDK's sdk-ts entrypoint as native Claude Code.

An isolated request using Claude Code 2.1.306 succeeded directly against Anthropic and failed through the configured proxy with the same Claude Code 2.1.258 does not support this model error. The active proxy configuration had no explicit Claude header overrides.

Relevant upstream fixes:

After deploying v8.0.40, Opus 5.5 works in my setup. No Paseo code or provider environment changes were needed. Closing this as an external proxy compatibility issue. Thanks for following up on the diagnostic.

lstroud avatar Oct 23 '26 22:10 lstroud