Skip to content

feat: register Opus 5.5, Opus 5, Sonnet 5.5, Haiku 5.5, and Fable 5.1 - #14

Open
crxssrazr93 wants to merge 1 commit into
DevVig:mainfrom
crxssrazr93:feat/latest-claude-models
Open

crxssrazr93 wants to merge 1 commit into
DevVig:mainfrom
crxssrazr93:feat/latest-claude-models

Conversation

@crxssrazr93

Copy link
Copy Markdown

Summary

Oh My Pi 18 ships five Claude ids the bridge never registered, because
MODEL_IDS_IN_ORDER drops any id it doesn't name:

id in omp's pi-ai catalog registered before
claude-opus-5-5 yes no
claude-opus-5 yes no
claude-sonnet-5-5 yes no
claude-haiku-5-5 yes no
claude-fable-5-1 yes no

This adds them to MODEL_IDS_IN_ORDER and all three resolvers
(resolveAutoRuntimeModel, resolveForcedOneMRuntimeModel,
resolveForcedTwoHundredKRuntimeModel), newest-first per family so partial matching
resolves short names to the newest model (AskClaude model: "opus" →
claude-opus-5-5).

How the served context windows were verified

Read from the SDK's own result metadata — result.modelUsage[model].contextWindow after a
one-turn query() — on omp 18.13.3 with Claude Code 2.1.312. Not inferred from the
catalog's advertised contextWindow.

model bare id served [1m] id served
claude-opus-5-5 n/a¹ n/a¹
claude-opus-5 200K 1M
claude-sonnet-5-5 200K 1M
claude-haiku-5-5 200K 1M
claude-fable-5-1 n/a¹ n/a¹
control: claude-opus-4-8 200K 1M
control: claude-sonnet-5 200K 1M
control: claude-fable-5 200K 1M

¹ Requires a newer CLI than the one bundled with @anthropic-ai/claude-agent-sdk@0.2.141
(2.1.141): claude-opus-5-5 needs 2.1.280+, claude-fable-5-1 needs 2.1.251+. Retested
through a 2.1.312 binary (bare 200K, [1m] 1M for both) via provider.pathToClaudeCodeExecutable.

Auto defaults follow the existing policy: 1M for the Opus/Sonnet flagships, 200K for Haiku
and Fable with a -1m alternate. Haiku 5.5 differs from Haiku 4.5 — it has a working 1M
runtime, so it gets both entries.

Type of change

  • New feature

Checklist

  • bun run typecheck passes
  • bun run test passes
  • Context-routing changes include a case in tests/unit-context-window.mjs
  • For model-mapping changes, served-window verification noted above

tests/unit-context-window.mjs fixture now carries the five ids plus assertions for the
auto/1M/200K pickers and claudeCodeModelId; the entry-count test moves from 12 to 22. The
per-model duplicate-window check groups by parseVariantId(...).baseId instead of
startsWith, since claude-fable-5 is a prefix of claude-fable-5-1.

Notes

Oh My Pi 18 ships these ids in its pi-ai catalog, but MODEL_IDS_IN_ORDER
drops anything it does not name, so the bridge kept exposing the previous
generation only.

Served windows were measured against the Claude Agent SDK result
modelUsage.contextWindow, not advertised metadata:

  claude-opus-5-5, claude-opus-5      bare 200K / [1m] 1M
  claude-sonnet-5-5, claude-haiku-5-5 bare 200K / [1m] 1M
  claude-fable-5-1                    bare 200K / [1m] 1M
  (controls) opus-4-8, sonnet-5, fable-5: bare 200K / [1m] 1M

Auto defaults follow the existing policy: 1M for Opus/Sonnet flagships, 200K
for Haiku and Fable with a -1m alternate. Lengthy id lists are ordered so the
newest model in each family wins partial matching (AskClaude "opus" now
resolves to claude-opus-5-5).

Claude Code 2.1.280+ is required for claude-opus-5-5 and 2.1.251+ for
claude-fable-5-1; document the pathToClaudeCodeExecutable workaround for the
older CLI bundled with claude-agent-sdk 0.2.x.
@coderabbitai

coderabbitai Bot commented Oct 28, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: e1d5de84-444c-4e04-a055-11641b74ce26
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

@virtualritz

Copy link
Copy Markdown

Bump!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants