[GH-ISSUE #6711] [Issue]: Claude Subscription cannot use models newer than its bundled Claude Code runtime (Opus 5.5) #3759

Closed
opened 2026-10-21 06:06:55 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @SonaGat3 on GitHub (Sep 26, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6711

Originally assigned to: @SonaGat3 on GitHub.

Summary

A Claude Subscription connection cannot generate with claude-opus-5-5, even though that model is in the Engine's own subscription model list. The provider runs the Claude Code binary that ships inside @anthropic-ai/claude-agent-sdk, and the lockfile pins a version of that package whose runtime the API no longer accepts for recent models.

Expected behavior

Selecting Claude Opus 5.5 on a Claude Subscription connection generates a reply, like the other models on that connection.

Actual behavior

The request fails and the provider surfaces the API error:

API Error: 400 Claude Code 2.1.273 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.

Before that, the runtime reports the model as outside its catalog, so it assumes a 200k context window for auto-compaction:

"claude-opus-5-5" isn't described by this version's model catalog; update Claude Code, or map it with behavesAs on a modelPicker row [...] Until then auto-compact keeps this session within 200k tokens (the context window it assumes)
[claude-code:unrecognized_model] {"model":"claude-opus-5-5","query_source":"sdk"}

The advice in the error cannot be followed by the user. claude update updates a claude install on the host, and the Engine never runs it: @anthropic-ai/claude-agent-sdk ships its own platform binary (node_modules/@anthropic-ai/claude-agent-sdk-<platform>/claude), and no call site passes pathToClaudeCodeExecutable. The version the API checks is therefore the one in pnpm-lock.yaml, and only a dependency update changes it.

Measured here:

Version
Binary the Engine runs (claude-agent-sdk-win32-x64/claude.exe --version) 2.1.273
Claude Code installed on the host (claude --version) 2.1.283
@anthropic-ai/claude-agent-sdk in pnpm-lock.yaml 0.3.273
Latest on npm 0.3.283

Updating the host install changes nothing, which is what made this hard to place at first.

claude-opus-5-5 is already listed in CLAUDE_SUBSCRIPTION_MODELS (packages/shared/src/constants/model-lists.ts), so the Engine offers a model its bundled runtime cannot reach.

Steps to reproduce

  1. Set up a Claude Subscription connection (claude login done once on the host).
  2. Choose Claude Opus 5.5 as the model.
  3. Generate anything.

Or, without the Engine, straight against the binary it spawns:

node_modules/@anthropic-ai/claude-agent-sdk-win32-x64/claude.exe -p "say ok" --model claude-opus-5-5

Environment

  • Marinara Engine version: 2.4.6 (staging at 613721b22)
  • Install type: source
  • OS + version: Windows 10 Pro 19045, Node 24.15.0
  • Browser or app shell: not relevant, the failure is server-side

Logs, screenshots, or video

The two blocks under Actual behavior are the complete output of the reproduction command above.

Additional context

  • Any @anthropic-ai/claude-agent-sdk release from 0.3.280 on carries a runtime the API accepts. Verified locally with 0.3.282, which bundles Claude Code 2.1.282: the same request replies, and the unrecognized-model warning disappears.
  • Note for whoever picks the version: pnpm-workspace.yaml sets minimumReleaseAge: 1440, so a release published less than 24 hours ago is refused by pnpm install on purpose. The newest version is not always installable on the day it lands.
  • The pin was last moved on 2026-09-17 in abe61d30a (build: refresh compatible dependencies and CI actions, #6286), from ^0.3.235 to ^0.3.273. The 2026-09-24 sweep (075894554, #6602) did touch packages/server/package.json — it moved @fastify/static and tsx — and left this package at 0.3.273, at a point when 0.3.280 was already published and past the release-age window. So this dependency is not tracking on its own, and it gates which models the subscription provider can reach.
  • Separately, and more minor: when the SDK module itself fails to load, claude-subscription.provider.ts advises npm i -g @anthropic-ai/claude-code. That install is not what the provider runs either, and it is what sent me looking at the host version first.

I have the dependency update ready and will open a PR against staging.

Template check

  • I DID NOT read this template and provide the requested details.
Originally created by @SonaGat3 on GitHub (Sep 26, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6711 Originally assigned to: @SonaGat3 on GitHub. ## Summary A Claude Subscription connection cannot generate with `claude-opus-5-5`, even though that model is in the Engine's own subscription model list. The provider runs the Claude Code binary that ships inside `@anthropic-ai/claude-agent-sdk`, and the lockfile pins a version of that package whose runtime the API no longer accepts for recent models. ## Expected behavior Selecting **Claude Opus 5.5** on a Claude Subscription connection generates a reply, like the other models on that connection. ## Actual behavior The request fails and the provider surfaces the API error: ``` API Error: 400 Claude Code 2.1.273 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. ``` Before that, the runtime reports the model as outside its catalog, so it assumes a 200k context window for auto-compaction: ``` "claude-opus-5-5" isn't described by this version's model catalog; update Claude Code, or map it with behavesAs on a modelPicker row [...] Until then auto-compact keeps this session within 200k tokens (the context window it assumes) [claude-code:unrecognized_model] {"model":"claude-opus-5-5","query_source":"sdk"} ``` The advice in the error cannot be followed by the user. `claude update` updates a `claude` install on the host, and the Engine never runs it: `@anthropic-ai/claude-agent-sdk` ships its own platform binary (`node_modules/@anthropic-ai/claude-agent-sdk-<platform>/claude`), and no call site passes `pathToClaudeCodeExecutable`. The version the API checks is therefore the one in `pnpm-lock.yaml`, and only a dependency update changes it. Measured here: | | Version | | --- | --- | | Binary the Engine runs (`claude-agent-sdk-win32-x64/claude.exe --version`) | 2.1.273 | | Claude Code installed on the host (`claude --version`) | 2.1.283 | | `@anthropic-ai/claude-agent-sdk` in `pnpm-lock.yaml` | 0.3.273 | | Latest on npm | 0.3.283 | Updating the host install changes nothing, which is what made this hard to place at first. `claude-opus-5-5` is already listed in `CLAUDE_SUBSCRIPTION_MODELS` (`packages/shared/src/constants/model-lists.ts`), so the Engine offers a model its bundled runtime cannot reach. ## Steps to reproduce 1. Set up a **Claude Subscription** connection (`claude login` done once on the host). 2. Choose **Claude Opus 5.5** as the model. 3. Generate anything. Or, without the Engine, straight against the binary it spawns: ``` node_modules/@anthropic-ai/claude-agent-sdk-win32-x64/claude.exe -p "say ok" --model claude-opus-5-5 ``` ## Environment - Marinara Engine version: 2.4.6 (`staging` at `613721b22`) - Install type: source - OS + version: Windows 10 Pro 19045, Node 24.15.0 - Browser or app shell: not relevant, the failure is server-side ## Logs, screenshots, or video The two blocks under **Actual behavior** are the complete output of the reproduction command above. ## Additional context - Any `@anthropic-ai/claude-agent-sdk` release from `0.3.280` on carries a runtime the API accepts. Verified locally with `0.3.282`, which bundles Claude Code 2.1.282: the same request replies, and the unrecognized-model warning disappears. - Note for whoever picks the version: `pnpm-workspace.yaml` sets `minimumReleaseAge: 1440`, so a release published less than 24 hours ago is refused by `pnpm install` on purpose. The newest version is not always installable on the day it lands. - The pin was last moved on 2026-09-17 in `abe61d30a` (`build: refresh compatible dependencies and CI actions`, #6286), from `^0.3.235` to `^0.3.273`. The 2026-09-24 sweep (`075894554`, #6602) did touch `packages/server/package.json` — it moved `@fastify/static` and `tsx` — and left this package at `0.3.273`, at a point when `0.3.280` was already published and past the release-age window. So this dependency is not tracking on its own, and it gates which models the subscription provider can reach. - Separately, and more minor: when the SDK module itself fails to load, `claude-subscription.provider.ts` advises `npm i -g @anthropic-ai/claude-code`. That install is not what the provider runs either, and it is what sent me looking at the host version first. I have the dependency update ready and will open a PR against `staging`. ## Template check - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 06:06:55 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@SonaGat3 commented on GitHub (Sep 27, 2026):

Closing this, to be adressed on #6693

<!-- gh-comment-id:5852065990 --> @SonaGat3 commented on GitHub (Sep 27, 2026): Closing this, to be adressed on #6693
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#3759
No description provided.