From 5e53fec10c714cf5e0025dd764520ef13c2d7a55 Mon Sep 17 00:00:00 2001 From: Daniel Alejandro Dominguez Diaz Date: Mon, 16 Nov 2026 20:26:45 -0300 Subject: [PATCH] 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 13b46cadcfface37470f131aad0014e61d08b5a2, 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 Co-authored-by: commitperclip[bot] <284812584+commitperclip[bot]@users.noreply.github.com> --- packages/adapters/claude-local/src/index.ts | 1 + server/src/__tests__/adapter-models.test.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/packages/adapters/claude-local/src/index.ts b/packages/adapters/claude-local/src/index.ts index ddc4451b662..f81011c1cda 100644 --- a/packages/adapters/claude-local/src/index.ts +++ b/packages/adapters/claude-local/src/index.ts @@ -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" }, diff --git a/server/src/__tests__/adapter-models.test.ts b/server/src/__tests__/adapter-models.test.ts index 12bc2043692..4ed4b8ff9a0 100644 --- a/server/src/__tests__/adapter-models.test.ts +++ b/server/src/__tests__/adapter-models.test.ts @@ -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);