mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #2031] [CLOSED] Fix(claude-subscription): refresh model list to match Claude Code menu #5400
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#5400
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/2031
Author: @LukaTheHero
Created: 6/3/2026
Status: ❌ Closed
Base:
main← Head:feat/claude-subscription-opus-4-8-models📝 Commits (1)
da16d80feat(claude-subscription): refresh model list to match Claude Code menu📊 Changes
2 files changed (+35 additions, -16 deletions)
View changed files
📝
packages/server/src/services/llm/providers/claude-subscription.provider.ts(+19 -5)📝
packages/shared/src/constants/model-lists.ts(+16 -11)📄 Description
Linked issue
Closes #2032
Why this change
The Claude (Subscription) connection's model dropdown was stale: it topped out at Opus 4.7 and still listed retired aliases (Opus 4.5 / Sonnet 4.5) that the subscription path no longer surfaces. After the Claude Agent SDK bump, the local
claudeCLI offers Opus 4.8 (and a 1M-context variant), but there was no way to pick them in Marinara — so subscription users were stuck on older models and had no access to the 1M context window.What changed
CLAUDE_SUBSCRIPTION_MODELSnow mirrors the current Claude Code model selector, current-first then legacy: Opus 4.8, Opus 4.8 (1M context), Sonnet 4.6, Haiku 4.5, Opus 4.7 (Legacy), Opus 4.7 (1M context, Legacy), Opus 4.6 (Legacy).[1m]model-id suffix. The suffix mirrors the CLI's "(1M context)" entries but is not a real model string, so the provider strips it to a plain id the SDK accepts and enables the SDK'scontext-1m-2025-08-07beta instead. The resolved id is threaded through the resume JSONL, the SDKmodeloption, and the billed-model downgrade check — otherwise a 1M selection would be misread as a silent model downgrade.Existing connections pinned to
claude-opus-4-7keep working and now render as "Claude Opus 4.7 (Legacy)".isAdaptiveOnlyalready matched Opus 4.8, so adaptive thinking is unchanged.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
claude-opus-4-7still loads and renders as "Claude Opus 4.7 (Legacy)".Docs and release impact
UI evidence (if applicable)
No layout changes — this only updates the entries inside the existing themed model dropdown.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.