feat(shared): add Fable 5 to copilot, cursor-agent, and opencode model pickers

Merged
AV
5mo ago
+22-0

Summary

  • Adds Claude Fable 5 to the new-workspace modal's model dropdown for the three remaining harnesses whose CLIs support it: copilot (claude-fable-5), cursor-agent (claude-fable-5-thinking-high / -xhigh), and opencode (anthropic/claude-fable-5). The claude preset and Superset chat already had it (#5418).

Why / Context

Fable 5 is now GA in GitHub Copilot (re-enabled July 1 after the June suspension), available in Cursor, and listed in opencode's model registry. The workspace-create picker reads from the hand-maintained catalog in packages/shared/src/agent-models.ts, so those dropdowns were missing it.

Model ids were verified per the catalog's contract:

  • copilot: copilot --model claude-fable-5 passes the CLI's model validation (a bogus id is rejected immediately).
  • cursor-agent: both ids taken verbatim from cursor-agent --list-models. Two entries because cursor-agent has no separate effort flag — the thinking level is baked into the model id. Both are flagged "NO ZDR" upstream (unavailable for zero-data-retention accounts / Privacy Mode teams; those users can keep using Default).
  • opencode: anthropic/claude-fable-5 per opencode's registry (models.dev), matching the existing anthropic/claude-sonnet-4-5 id format. Not verifiable locally (no Anthropic provider configured), so this one is registry-sourced.

Not added: amp (Fable is a --mode plugin there, not a --model value), droid (BYOK only, not a managed model), codex/gemini (wrong vendor), pi/mastracode (no model picker in the catalog).

Testing

  • bun test agent-models — 21 pass, including a new test covering all three ids through buildAgentModelArgs
  • bun run typecheck
  • Biome clean on both changed files (repo-wide bun run lint fails only on an uncommitted local .github/hooks/superset-notify.json, unrelated)
  • Manual: launch-flag validation against the locally installed copilot and cursor-agent CLIs as described above; did not run an end-to-end workspace launch with each CLI

Open in Stage

Summary by cubic

Adds Claude Fable 5 to the new-workspace model picker for copilot, cursor-agent, and opencode. Updates the shared model catalog and adds tests, including explicit coverage for the cursor-agent xhigh variant.

  • New Features
    • copilot: claude-fable-5
    • cursor-agent: claude-fable-5-thinking-high, claude-fable-5-thinking-xhigh (thinking level in the model id)
    • opencode: anthropic/claude-fable-5

Summary by CodeRabbit

  • New Features

    • Added additional Claude Fable 5 model options across more terminal-agent presets.
    • Expanded available model choices for Copilot, Cursor Agent, and OpenCode, including supported thinking variants.
  • Tests

    • Added test coverage to verify the new model options are accepted and correctly mapped for the relevant presets.