mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #6870] [MERGED] feat(anthropic): add Claude Sonnet 5.5 #7361
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#7361
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/6870
Author: @SpicyMarinara
Created: 9/29/2026
Status: ✅ Merged
Merged: 9/29/2026
Merged by: @SpicyMarinara
Base:
staging← Head:feat/claude-sonnet-5-5📝 Commits (5)
1d8001bfeat(anthropic): add Claude Sonnet 5.5837c7b5Merge remote-tracking branch 'origin/staging' into feat/claude-sonnet-5-5af3e17ddocs(anthropic): note Sonnet 5.5 between_tools normalization at Off sites753874efix(anthropic): match strict Claude IDs for history system messagesdcb7625Merge branch 'staging' into feat/claude-sonnet-5-5📊 Changes
8 files changed (+427 additions, -34 deletions)
View changed files
📝
CHANGELOG.md(+1 -0)➕
e2e/claude-sonnet55.e2e.ts(+73 -0)📝
packages/server/src/services/llm/providers/anthropic.provider.ts(+36 -19)📝
packages/server/src/services/llm/providers/claude-subscription.provider.ts(+9 -4)📝
packages/server/src/services/llm/providers/openai.provider.ts(+12 -10)📝
packages/shared/src/constants/model-lists.ts(+20 -1)➕
scripts/regressions/claude-sonnet55.regression.ts(+273 -0)📝
scripts/regressions/generation-parameter-relevance.regression.ts(+3 -0)📄 Description
Linked issue
Closes #6869
Why this change
claude-sonnet-5-5) on 2026-09-28, and Marinara should offer it. Sources: the model page and What's new.claude-sonnet-5-5, which covers sampling stripping andxhigh/max. It would also have sent Sonnet 5'sthinking: {type: "disabled"}for Off, and Sonnet 5.5 rejects that with a 400. Sonnet 5.5 also rejects forcedtool_choice(any/tool), and it rejects assistant prefill like Sonnet 5. Without this PR, Off, forced agent tool calls and Continue would fail.What changed
claude-sonnet-5-5inANTHROPIC_MODELSandCLAUDE_SUBSCRIPTION_MODELS(1M context, 128K output).findKnownModelresolves dotted gateway IDs (anthropic/claude-sonnet-5.5,claude-sonnet-5.5), as it already does for Opus 5.5.model-lists.ts:isClaudeSonnet55Model, andisClaudeStrictRequestModel(Opus 5.5 plus Sonnet 5.5). Opus 5.5's existing request normalization now uses the strict predicate everywhere its rule also holds for Sonnet 5.5:auto, prefill → continuation prompt.none→low,autotool choice, no saved samplers.thinking: {"type": "between_tools"}. That's the documented replacement fordisabled: no other fields, and it's accepted only atlow/medium/higheffort. Abovehighit falls back to adaptive. A saved customdisabledis translated too.loweffort. The pinned Claude Agent SDK (0.3.282,ThinkingConfig= adaptive | enabled | disabled) and OpenAI-style reasoning fields can't expressbetween_tools. This is marked with aponytail:comment naming the upgrade path.high, versus Opus 5.5'smedium), Opus 5.5 behavior, and Sonnet 5 behavior. The regressions pin all three.claude-sonnet55regression.e2e/claude-sonnet55.e2e.ts.Thinking blocks are bound to the model and conversation on Sonnet 5.5, but Marinara doesn't replay signed thinking blocks, so this doesn't affect it.
Validation
pnpm checkpasses locallyCONTRIBUTING.mdAutomated checks run locally on
1d8001bb6:claude-sonnet55regression, 6/6 checks. It covers:high, no samplers,autotool choice);{type: "between_tools"}, including a translated saveddisabled, with adaptive abovehigh;disabled;low, no samplers,auto;low, neverdisabled.claude-opus55,claude-subscription-cache,provider-compatandgeneration-parameter-relevancewith Sonnet 5.5 added.e2e/claude-sonnet55.e2e.ts: 6/6 (Anthropic and Subscription × desktop Chromium, mobile Chromium, mobile WebKit). It covers picker selection (1.0M / 128K), and Off and max persisting across a reload.--committedagainst the staging merge base): 0 findings.pnpm checkresult is reported in a follow-up comment.Manual verification notes
claude-sonnet-5-5at the default effort and atmax.disabledshould appear, and replies should start without up-front thinking.anthropic/claude-sonnet-5.5): the model is recognized with 1M context, and Off succeeds.Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)Only
CHANGELOG.mdchanges. No user-facing docs list individual Claude models, and there is no new UI copy.UI evidence (if applicable)
Playwright (
e2e/claude-sonnet55.e2e.ts) selects Sonnet 5.5 from the model picker (1.0M context, 128K output) on Anthropic and Claude (Subscription). The Reasoning Effort control offers Off (unlike Opus 5.5), and Off and max both persist across a reload.Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.