feat(shared): add Claude Opus 5 and GPT-5.6 Terra/Luna across model catalogs

Merged
KI
4mo ago
+87-3

Summary

  • Add Claude Opus 5 (claude-opus-5) to every catalog that lists versioned Claude models: the Superset chat catalog, the claude CLI picker, the cursor-agent and opencode pickers, the Slack integration picker, and the desktop dev-chat mirror.
  • Add the GPT-5.6 Codex models (sol/terra/luna) to the Superset chat catalog and the cursor-agent/opencode pickers (the codex CLI picker already had them).
  • Remove opencode's stale openai/gpt-5 entry (no longer listed by opencode models — it was a dead picker option) and annotate gpt-5.4 entries with their Codex retirement date (2026-08-31).

Why / Context

GPT-5.4 / GPT-5.4-mini retire from Codex on 2026-08-31 and the GPT-5.6 family replaces them; Claude Opus 5 is Anthropic's latest Opus. The catalogs in packages/shared/src/agent-models.ts are hand-maintained and expected to drift with CLI releases — this PR brings them current.

How It Works

All pickers (desktop chat panes, mobile model picker, workspace-create dropdowns, tRPC chat.getModels) derive from the canonical catalogs in packages/shared/src/agent-models.ts, so the changes are data-only plus mirrored constants in dev-chat (dev mode) and the Slack integration.

Manual QA / Verification

Each new or changed id was verified against the live CLI on 2026-08-05:

  • claude --model claude-opus-5 -p → real API round-trip returned "ok"
  • codex exec -m gpt-5.6-sol|terra|luna → each returned "ok"; gpt-5.4 still accepted (kept until retirement)
  • cursor-agent --list-models → all existing entries still valid; new ids (claude-opus-5-high, gpt-5.6-terra-medium, gpt-5.6-luna-medium) taken verbatim from the live list
  • opencode models → confirms openai/gpt-5.6-sol/terra/luna and confirms old openai/gpt-5 is gone

Not verified (documented, unchanged):

  • copilot — GitHub API rate-limited during testing; catalog left untouched
  • gemini / vibe — CLIs not authed / no enumeration command; catalogs left untouched (gemini's 2.5-only list is likely stale — Gemini 3.x exists per the API listing — but ids weren't verifiable)
  • opencode anthropic/claude-opus-5 — anthropic provider not authed locally so it doesn't appear in opencode models; id follows the same models.dev convention as the existing anthropic entries and matches the API id the claude CLI accepted

Testing

  • bun run typecheck (37/37 tasks)
  • bun run lint (exit 0)
  • bun test in packages/shared (725 pass) — new assertions pin Opus 5 + GPT-5.6 entries in the chat catalog and the claude/cursor-agent/opencode pickers

Known Limitations

  • Slack picker default stays Sonnet 4.6; chat/mobile default becomes Opus 5 (first catalog entry).
  • gpt-5.4 entries are kept until the 2026-08-31 Codex retirement; a follow-up should remove them after that date.

Summary by cubic

Adds Claude Opus 5 and GPT-5.6 Sol/Terra/Luna to the shared model catalogs and pickers to match current CLI offerings. Also updates the mobile default to Opus 5 and adds Opus 5 to the Slack picker.

  • New Features

    • Add claude-opus-5 to the Superset chat catalog, claude CLI picker, cursor-agent/opencode pickers, Slack picker, and desktop dev-chat.
    • Add gpt-5.6-sol, gpt-5.6-terra, gpt-5.6-luna to the Superset chat catalog and cursor-agent/opencode pickers.
    • Set the mobile new-chat default model to anthropic/claude-opus-5.
  • Refactors

    • Remove stale openai/gpt-5 from the opencode picker.
    • Annotate gpt-5.4 entries with the Codex retirement date (2026-08-31).

Summary by CodeRabbit

  • New Features
    • Added Claude Opus 5 to available chat and integration model options.
    • Added OpenAI GPT-5.6 Sol, Terra, and Luna models across supported experiences.
    • Updated Cursor Agent and OpenCode model selections with the latest options.
    • New chats now default to Claude Opus 5.
  • Changes
    • Marked GPT-5.5 as retired where applicable.