feat(adapter-claude): add Claude Opus 4.5 to the static model fallback (#12379)

## Thinking Path

> - Paperclip is the open source app people use to manage AI agents for
work.
> - Each adapter supplies model choices for agent configuration.
> - The Claude adapter combines live discovery with a static fallback.
> - The fallback lacks Claude Opus 4.5.
> - This PR adds that model and a regression assertion.
> - Users can select it when live discovery is unavailable.

## Linked Issues or Issue Description

**What happened?**
The Claude adapter model selector omits Opus 4.5 when live discovery is
unavailable.

**Expected behavior**
The static fallback should include claude-opus-4-5.

**Steps to reproduce**
1. Use the claude_local adapter without working live model discovery.
2. Open the agent configuration model selector.
3. Look for Claude Opus 4.5.

Related model-list work: #10280 and #10327.
Searched open and closed PRs for Opus 4.5; no competing title match was
found.

## What Changed

- Add claude-opus-4-5 after Opus 4.6 and before Sonnet 5 in the static
fallback.
- Assert that the fallback returned by the server includes this model.
- Preserve the existing first model, claude-fable-5-1.

## Verification

- At head 13b46cadcf, CI build, typecheck,
general tests, Runner checks, and serialized server suites passed.
- The review workflow failed because this description lacked the
duplicate-search checkbox. It needs a rerun after this edit.
- Greptile: 5/5.

## Risks

Low risk. This adds a static model choice without changing execution
logic.

## Model Used

Original author reports Anthropic Claude Fable 5 (claude-fable-5) via
Claude Code.
OpenAI Codex assisted with adoption review and this description update.

## Checklist

- [x] I have included a thinking path that traces from project context
to this change
- [x] I have specified the model used (with version and capability
details)
- [ ] I have checked ROADMAP.md and confirmed this PR does not duplicate
planned core work
- [x] I have searched GitHub for duplicate or related PRs and linked
them above
- [x] I have either (a) linked existing issues with `Fixes: #` / `Closes
#` / `Refs #` OR (b) described the issue in-PR following the relevant
issue template
- [x] I have not referenced internal/instance-local Paperclip issues or
links (only public GitHub `#NNN` / `github.com/paperclipai/paperclip`
URLs)
- [x] My branch name describes the change (e.g. `docs/...`, `fix/...`)
and contains no internal Paperclip ticket id or instance-derived details
- [ ] I have run tests locally and they pass
- [x] I have added or updated tests where applicable
- [ ] I have updated relevant documentation to reflect my changes
- [x] I have considered and documented any risks above
- [ ] All Paperclip CI gates are green
- [x] Greptile is 5/5 with no open P2s, recommendations, or follow-ups
- [ ] I will address all Greptile and reviewer comments before
requesting merge

---------

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
Co-authored-by: commitperclip[bot] <284812584+commitperclip[bot]@users.noreply.github.com>
This commit is contained in:
authored and GitHub committed 2026-11-16 17:26:45 -06:00
1 parent 537b0408b3
commit 5e53fec10c
2 files changed
+2

No files matched your search

@@ -50,6 +50,7 @@ export const models = [
{ id: "claude-opus-4-8", label: "Claude Opus 4.8" },
{ id: "claude-opus-4-7", label: "Claude Opus 4.7" },
{ id: "claude-opus-4-6", label: "Claude Opus 4.6" },
{ id: "claude-opus-4-5", label: "Claude Opus 4.5" },
{ id: "claude-sonnet-5", label: "Claude Sonnet 5" },
{ id: "claude-sonnet-4-6", label: "Claude Sonnet 4.6" },
{ id: "claude-sonnet-4-5", label: "Claude Sonnet 4.5" },
@@ -67,6 +67,7 @@ describe("adapter model listing", () => {
// Newest release of the most capable family leads the list (#14877).
expect(models[0]?.id).toBe("claude-fable-5-1");
expect(models.some((model) => model.id === "claude-sonnet-5")).toBe(true);
expect(models.some((model) => model.id === "claude-opus-4-5")).toBe(true);
expect(models.some((model) => model.id === "claude-fable-5-1")).toBe(true);
expect(models.some((model) => model.id === "claude-fable-5")).toBe(true);
expect(models.some((model) => model.id === "claude-mythos-5")).toBe(true);