[PR #6545] [MERGED] Add Claude Opus 5.5 model and request compatibility #7220

Closed
opened 2026-10-23 04:17:38 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/6545
Author: @SpicyMarinara
Created: 9/22/2026
Status: ✅ Merged
Merged: 9/22/2026
Merged by: @SpicyMarinara

Base: staging ← Head: codex/sept22-claude-opus-5-5


📝 Commits (3)

  • f088635 docs: record Claude Opus 5.5 support scope
  • 9c041a9 feat: add Claude Opus 5.5 connection support
  • 73a7b3d fix: filter saved Opus 5.5 samplers on compatible gateways

📊 Changes

9 files changed (+541 additions, -17 deletions)

View changed files

📝 CHANGELOG.md (+2 -0)
➕ e2e/claude-opus55.e2e.ts (+76 -0)
📝 packages/client/src/components/ui/GenerationParametersEditor.tsx (+4 -2)
📝 packages/server/src/services/llm/base-provider.ts (+4 -0)
📝 packages/server/src/services/llm/providers/anthropic.provider.ts (+57 -8)
📝 packages/server/src/services/llm/providers/claude-subscription.provider.ts (+19 -4)
📝 packages/server/src/services/llm/providers/openai.provider.ts (+40 -2)
📝 packages/shared/src/constants/model-lists.ts (+10 -1)
➕ scripts/regressions/claude-opus55.regression.ts (+329 -0)

📄 Description

Linked issue

Closes #6544

Why this change

Selecting Claude Opus 5.5 must not inherit Opus 5's optional-thinking and forced-tool settings: the new model rejects both. The model also needs to appear in the existing selectors with its documented limits.

What changed

  • Added claude-opus-5-5 to Anthropic and Claude subscription catalogs (1M context, 128k output). Compatible gateways also recognize OpenRouter's anthropic/claude-opus-5.5 ID and variants.
  • Reused existing request builders for adaptive thinking, effort, streaming, caching, and tools. Unspecified native/subscription effort uses medium; an old Off setting uses low. The parameter editor offers only supported effort choices for this model.
  • Removed rejected sampling/manual-thinking settings, used automatic tool selection, and preserved continuation requests without sending rejected assistant prefills. Native requests retain the connection's output cap after adding reasoning headroom.
  • Added focused request/SDK regressions and browser coverage for selection, limits, persistence, and older-model behavior. No dependency or storage changes.

Ground truth: Anthropic migration guide, model changes, and OpenRouter’s public model catalog retrieved on 2026-09-22.

Validation

  • pnpm check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

Automated results:

  • pnpm check: passed, including localization, formatting, types, lint, and production build.
  • node scripts/run-regressions.mjs --filter claude-opus55: seven cases passed. Covers buffered/streamed plain/tool requests, all native effort levels, disabled parameter switches, legacy custom settings, continuation, gateway IDs, SDK defaults, and connection output caps.
  • Existing provider-compat, provider-caching, Claude subscription caching, prompt, prompt attachment, and context-fit regressions passed.
  • Playwright: model selection/settings and subscription cache suites passed on desktop Chromium, mobile Chromium, and iPhone-sized WebKit. Light and dark layouts inspected.
  • Negative proof: the output-cap assertion reproduced 1536 tokens sent for a configured 512-token cap before the fix. Restoring the old parameter editor reproduced the unsupported Off option and failed the new UI assertion. A gateway regression also reproduced a saved custom temperature leaking into an Opus 5.5 request before the shared sampler filter was corrected.

Manual verification notes

Browser automation selected Opus 5.5, checked the 1M/128k metadata, saved medium reasoning, reloaded the editor, and switched back to Opus 5 to confirm Off remains available there. Screenshots were visually inspected. Synthetic fixtures only; existing user data was not touched.

Manually verify a real generation on an account with Opus 5.5 access. Provider transport tests use local HTTP fixtures and a stubbed SDK; no billed model request was made. No physical-phone test. Local Docker build/run was not repeated with less than 3 GiB free on the host; GitHub runs the container checks separately.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Translated docs on the docs-i18n branch updated to match, or a [docs-i18n] follow-up issue opened
  • Version/release files updated (only if this PR includes a version bump)

Changelog entry included. Existing provider documentation remains accurate; no docs pages, release versions, dependencies, or storage format changed. Human checklist boxes intentionally remain unchecked.

UI evidence (if applicable)

Before/after screenshots and browser proof (self-contained HTML with original screenshots; download and open locally).

Local CodeRabbit reviews completed with zero remaining findings, including the follow-up for GitHub review. Earlier findings about mandatory-thinking effort, SDK default effort, the browser locator, and reusing the continuation instruction were addressed. GitHub’s saved-custom-sampler finding was reproduced and fixed in the existing shared filter, with buffered and streaming regressions. Custom overrides for other models retain their existing behavior, verified by the provider compatibility suite.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/6545 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 9/22/2026 **Status:** ✅ Merged **Merged:** 9/22/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `codex/sept22-claude-opus-5-5` --- ### 📝 Commits (3) - [`f088635`](https://github.com/Pasta-Devs/Marinara-Engine/commit/f0886356c9fc892656c478035a8d47770b4ce429) docs: record Claude Opus 5.5 support scope - [`9c041a9`](https://github.com/Pasta-Devs/Marinara-Engine/commit/9c041a9d2815e1cf08ff2442a920f15ab61bcd11) feat: add Claude Opus 5.5 connection support - [`73a7b3d`](https://github.com/Pasta-Devs/Marinara-Engine/commit/73a7b3d59b2fa36e99ff2af98ece01ff0aa728df) fix: filter saved Opus 5.5 samplers on compatible gateways ### 📊 Changes **9 files changed** (+541 additions, -17 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+2 -0) ➕ `e2e/claude-opus55.e2e.ts` (+76 -0) 📝 `packages/client/src/components/ui/GenerationParametersEditor.tsx` (+4 -2) 📝 `packages/server/src/services/llm/base-provider.ts` (+4 -0) 📝 `packages/server/src/services/llm/providers/anthropic.provider.ts` (+57 -8) 📝 `packages/server/src/services/llm/providers/claude-subscription.provider.ts` (+19 -4) 📝 `packages/server/src/services/llm/providers/openai.provider.ts` (+40 -2) 📝 `packages/shared/src/constants/model-lists.ts` (+10 -1) ➕ `scripts/regressions/claude-opus55.regression.ts` (+329 -0) </details> ### 📄 Description ## Linked issue Closes #6544 ## Why this change Selecting Claude Opus 5.5 must not inherit Opus 5's optional-thinking and forced-tool settings: the new model rejects both. The model also needs to appear in the existing selectors with its documented limits. ## What changed - Added `claude-opus-5-5` to Anthropic and Claude subscription catalogs (1M context, 128k output). Compatible gateways also recognize OpenRouter's `anthropic/claude-opus-5.5` ID and variants. - Reused existing request builders for adaptive thinking, effort, streaming, caching, and tools. Unspecified native/subscription effort uses medium; an old Off setting uses low. The parameter editor offers only supported effort choices for this model. - Removed rejected sampling/manual-thinking settings, used automatic tool selection, and preserved continuation requests without sending rejected assistant prefills. Native requests retain the connection's output cap after adding reasoning headroom. - Added focused request/SDK regressions and browser coverage for selection, limits, persistence, and older-model behavior. No dependency or storage changes. Ground truth: [Anthropic migration guide](https://platform.claude.com/docs/en/models/opus-5-5/migration-guide), [model changes](https://platform.claude.com/docs/en/models/opus-5-5/whats-new-opus-5-5), and [OpenRouter’s public model catalog](https://openrouter.ai/api/v1/models) retrieved on 2026-09-22. ## Validation - [ ] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [ ] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [ ] Above manual verification completed (describe below) - [ ] Read and followed `CONTRIBUTING.md` Automated results: - `pnpm check`: passed, including localization, formatting, types, lint, and production build. - `node scripts/run-regressions.mjs --filter claude-opus55`: seven cases passed. Covers buffered/streamed plain/tool requests, all native effort levels, disabled parameter switches, legacy custom settings, continuation, gateway IDs, SDK defaults, and connection output caps. - Existing provider-compat, provider-caching, Claude subscription caching, prompt, prompt attachment, and context-fit regressions passed. - Playwright: model selection/settings and subscription cache suites passed on desktop Chromium, mobile Chromium, and iPhone-sized WebKit. Light and dark layouts inspected. - Negative proof: the output-cap assertion reproduced 1536 tokens sent for a configured 512-token cap before the fix. Restoring the old parameter editor reproduced the unsupported Off option and failed the new UI assertion. A gateway regression also reproduced a saved custom temperature leaking into an Opus 5.5 request before the shared sampler filter was corrected. ### Manual verification notes Browser automation selected Opus 5.5, checked the 1M/128k metadata, saved medium reasoning, reloaded the editor, and switched back to Opus 5 to confirm Off remains available there. Screenshots were visually inspected. Synthetic fixtures only; existing user data was not touched. Manually verify a real generation on an account with Opus 5.5 access. Provider transport tests use local HTTP fixtures and a stubbed SDK; no billed model request was made. No physical-phone test. Local Docker build/run was not repeated with less than 3 GiB free on the host; GitHub runs the container checks separately. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Translated docs on the `docs-i18n` branch updated to match, or a `[docs-i18n]` follow-up issue opened - [ ] Version/release files updated (only if this PR includes a version bump) Changelog entry included. Existing provider documentation remains accurate; no docs pages, release versions, dependencies, or storage format changed. Human checklist boxes intentionally remain unchecked. ## UI evidence (if applicable) [Before/after screenshots and browser proof](https://gist.github.com/SpicyMarinara/f903440a9c3e9d2a16851fa54ebf7bd9) (self-contained HTML with original screenshots; download and open locally). Local CodeRabbit reviews completed with **zero remaining findings**, including the follow-up for GitHub review. Earlier findings about mandatory-thinking effort, SDK default effort, the browser locator, and reusing the continuation instruction were addressed. GitHub’s saved-custom-sampler finding was reproduced and fixed in the existing shared filter, with buffered and streaming regressions. Custom overrides for other models retain their existing behavior, verified by the provider compatibility suite. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-23 04:17:38 +07:00
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#7220
No description provided.