[PR #2031] [CLOSED] Fix(claude-subscription): refresh model list to match Claude Code menu #5400

Closed
opened 2026-10-22 04:15:57 +07:00 by bsakaguchi · 0 comments
Owner

📋 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)

  • da16d80 feat(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 claude CLI 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

  • Shared — CLAUDE_SUBSCRIPTION_MODELS now 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).
  • Server — the provider learns the [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's context-1m-2025-08-07 beta instead. The resolved id is threaded through the resume JSONL, the SDK model option, 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-7 keep working and now render as "Claude Opus 4.7 (Legacy)". isAdaptiveOnly already matched Opus 4.8, so adaptive thinking is unchanged.

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

Manual verification notes

  • Built and launched the app; opened a Claude (Subscription) connection and confirmed the model dropdown now lists Opus 4.8, Opus 4.8 (1M context), Sonnet 4.6, Haiku 4.5, and the three legacy entries in that order.
  • Generated with Opus 4.8 and with Opus 4.8 (1M context); both produced output and the 1M selection did not raise a false model-downgrade warning in the server logs.
  • Confirmed an existing connection pinned to claude-opus-4-7 still loads and renders as "Claude Opus 4.7 (Legacy)".

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Version/release files updated (only if this PR includes a version bump)

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.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/2031 **Author:** [@LukaTheHero](https://github.com/LukaTheHero) **Created:** 6/3/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `feat/claude-subscription-opus-4-8-models` --- ### 📝 Commits (1) - [`da16d80`](https://github.com/Pasta-Devs/Marinara-Engine/commit/da16d80db92e1711c0da3bb6b369a3f6b6d6e966) feat(claude-subscription): refresh model list to match Claude Code menu ### 📊 Changes **2 files changed** (+35 additions, -16 deletions) <details> <summary>View changed files</summary> 📝 `packages/server/src/services/llm/providers/claude-subscription.provider.ts` (+19 -5) 📝 `packages/shared/src/constants/model-lists.ts` (+16 -11) </details> ### 📄 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 `claude` CLI 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 - **Shared** — `CLAUDE_SUBSCRIPTION_MODELS` now 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). - **Server** — the provider learns the `[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's `context-1m-2025-08-07` beta instead. The resolved id is threaded through the resume JSONL, the SDK `model` option, 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-7` keep working and now render as "Claude Opus 4.7 (Legacy)". `isAdaptiveOnly` already matched Opus 4.8, so adaptive thinking is unchanged. ## Validation - [x] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [x] Ran the app, clicked through the changes manually - [x] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [x] Above manual verification completed (describe below) - [x] Read and followed `CONTRIBUTING.md` ### Manual verification notes - Built and launched the app; opened a Claude (Subscription) connection and confirmed the model dropdown now lists Opus 4.8, Opus 4.8 (1M context), Sonnet 4.6, Haiku 4.5, and the three legacy entries in that order. - Generated with Opus 4.8 and with Opus 4.8 (1M context); both produced output and the 1M selection did not raise a false model-downgrade warning in the server logs. - Confirmed an existing connection pinned to `claude-opus-4-7` still loads and renders as "Claude Opus 4.7 (Legacy)". ## Docs and release impact - [x] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Version/release files updated (only if this PR includes a version bump) ## UI evidence (if applicable) No layout changes — this only updates the entries inside the existing themed model dropdown. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:15:57 +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#5400
No description provided.