Skip to content

Remap the picker's built-in tier rows to gateway model ids - #10

Merged
BeLazy167 merged 1 commit into
mainfrom
fix/builtin-tier-rows
Aug 21, 2026
Merged

Remap the picker's built-in tier rows to gateway model ids#10
BeLazy167 merged 1 commit into
mainfrom
fix/builtin-tier-rows

Conversation

@BeLazy167

Copy link
Copy Markdown
Member

Live dogfood finding: selecting the built-in Opus 4.8 / Sonnet / Haiku rows in /model silently no-ops — they carry Anthropic's dated first-party ids (claude-opus-4-8-20250805-style), which the proxy doesn't serve. The session keeps its old model while the UI claims the switch happened; the model's own self-report then adds to the confusion (it echoes whatever Claude Code's system prompt says, not the wire).

Fix: ANTHROPIC_DEFAULT_{OPUS,SONNET,HAIKU}_MODEL (+_NAME) remap those rows to claude-opus-5 / claude-sonnet-4-6 / claude-haiku-4-5, labeled (qBraid) so provenance is visible in the picker. Documented mechanism (see docs/research/2026-08-20-model-picker.md, mechanism 3).

Note: the haiku slot also serves background traffic, so remapping it keeps that on the gateway too — previously background calls to a dated haiku id would also have failed through the proxy.

Verified: launcher deploys, session answers on the remapped default; suites green (routing 6/6, shellcheck, bash 3.2). Windows .cmd updated equivalently.

Selecting 'Opus 4.8' (or Sonnet/Haiku) in /model silently broke the session:
those rows point at Anthropic's dated first-party ids, which the proxy does
not serve. ANTHROPIC_DEFAULT_{OPUS,SONNET,HAIKU}_MODEL remaps them to the
gateway's ids, labeled '(qBraid)' so the provenance is visible.

Live report that motivated it: /model -> 'Opus 4.8' -> next reply claims to
be gpt-5.6-luna. The switch never took effect on the wire; the self-report
echoes whatever id Claude Code puts in the system prompt.
@BeLazy167
BeLazy167 merged commit 66380aa into main Aug 21, 2026
6 checks passed
@BeLazy167
BeLazy167 deleted the fix/builtin-tier-rows branch August 21, 2026 02:26
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.

1 participant