GeezerVison is showing github.com — Claude threads show the requested model, not the one that ran, when the CLI swaps in another (no warning to the user) · Issue #1216 · Jacksondr5/j5code
Claude threads show the requested model, not the one that ran, when the CLI swaps in another (no warning to the user) #1216DescriptionVersion: j5 v0.0.52-nightly.20261117.18, Claude Code 2.1.330, macOS
What happens
When a thread or persona requests a Claude model the org isn't entitled to (e.g. claude-fable-5 or claude-fable-5-1), the Claude CLI swaps in the org's default model (claude-opus-5-5). J5 runs the thread on the swapped model but still shows and records it as the requested model. The user gets no warning.
Evidence (5 of 5 such threads on one machine)
- Thread payload: modelSelection.model = "claude-fable-5" (and claude-fable-5-1 on others)
- Every completed turn: turnTokenUsage.models = ["claude-opus-5-5"]
- The provider event log (logs/provider/events.thread-.log) has the CLI's notice:
{"type":"system","subtype":"informational","content":"Model "claude-fable-5" is restricted by your organization's settings. Using claude-opus-5-5 instead."}
- The CLI's cached model list (~/.claude.json modelAccessCache) marks claude-fable-5 and claude-fable-5-1 as entitled:false, and claude-fable-5-2 as entitled:true.
- J5 still offers and accepts claude-fable-5 and claude-fable-5-1 for new threads and personas.
Why it matters
Work is credited to a model that didn't do it. That misleads anyone choosing or comparing models (e.g. a multi-model review that is supposed to be cross-model ends up with two judges on the same model) and anyone reasoning about cost.
Asks
- Attribute to the served model: when the provider reports a different model than the one requested, show the served one in the thread and turn views and flag the mismatch.
- Surface the notice: turn the CLI's "restricted… using X instead" message into a visible thread banner and/or Inbox item (especially for crew seats and peer agents nobody is watching).
- Prevent it: check requested models against the org's entitlements before launch. Hide or mark models the org can't use. On a mismatch, refuse the launch or offer the newest entitled model in the same family (e.g. claude-fable-5-2), rather than switching silently to a different model family.
Repro
- Use an org account where claude-fable-5 is not entitled (check ~/.claude.json modelAccessCache).
- j5 thread start "Reply with ok" --provider claudeAgent --model claude-fable-5 --wait --json
- The thread shows claude-fable-5; the turn's usage models and the provider event log show claude-opus-5-5.
ActivityJacksondr5 commented on Nov 23, 2026 Investigation: most of this is already upstream
Reproduced on Claude Code 2.1.330 with claude-sonnet-5 and claude-fable-5-1, both run straight through the CLI and as a J5 delegate_task child. The transcript already shows the CLI's notice as a warning row (upstream pingdotgg#21231). What's still wrong is the model J5 records and shows: the thread, run, composer, delegate_task result and orchestrator_capabilities all report the requested model.
Signals Claude Code sends
system/informational, level: "warning", with a structured model_restriction: {requested_model, effective_model, at: "start"}. This field isn't in the SDK's types, so it's undocumented.
system/init.model is the model that actually serves the turn, and each assistant.message.model carries it too.
supportedModels() and initializationResult().models (no API request) appear to leave out restricted models. setModel() on a restricted model throws the restriction error. ModelInfo has no entitlement flag, though, and the list looks like the CLI's short picker list, so treat "not listed" as unknown rather than "blocked".
Upstream already covers most of the asks
| Ask |
Upstream |
In J5? |
| 1. Attribute to the served model (agents and MCP) |
pingdotgg#27753 (Claude) and pingdotgg#34489 (Codex, Pi), both merged: executedModel on task_status and thread recentRuns, plus a "Requested model X; the provider reported running Y" note on delegated results |
No, comes with the next sync (J5's last sync point is 2026-11-03) |
| 1. Served model in the composer and thread label |
Org restriction: only discussion pingdotgg#8657 (no maintainer reply). Safeguard fallback: issue pingdotgg#24115, PR pingdotgg#24126 (open, needs-rebase) |
No |
| 3. Hide models the org can't use |
PR pingdotgg#26309 (open, needs-rebase): reads the CLI's entitlement cache as a deny-list and explains why a model is missing in the picker, mobile and Settings. Live-verified on a restricted org by its author |
No |
Also related upstream: pingdotgg#30511 (merged; adds models Claude Code reports to the picker, never removes any) and pingdotgg#24695 (merged; Bedrock and Vertex).
Rescoped J5 work
- Take the upstream sync that brings in fix(server): delegated Claude tasks report the model that ran pingdotgg/t3code#27753, fix(server): Codex and Pi runs report the model the provider ran pingdotgg/t3code#34489, feat(server): list Claude models reported by Claude Code pingdotgg/t3code#30511 and fix(server): Claude on Bedrock runs the model picked in the composer pingdotgg/t3code#24695. Ask 1 (agent-facing) is done at that point.
- Reviewer independence uses the served model.
apps/server/src/j5/agents/agentPersonaReviewIndependence.ts compares requested models, so two "cross-model" reviewers can both run on Opus 5.5. Switch it to executedModel once the sync lands. This is J5's own bug.
- Refuse blocked models at spawn (ask 2). Once fix(claude): leave out models the organization has restricted pingdotgg/t3code#26309 lands, restricted models leave the catalog. Then check whether
delegate_task, persona launches and Crew seats refuse them through the existing model validation. If they don't, J5 refuses and names the eligible models.
- Inbox item for a swap in an unwatched seat. It's driven by
executedModel differing from the requested model, for crew seats and peer agents nobody is watching.
No upstream giveback is needed from us right now. pingdotgg#26309 covers the picker. The composer and thread label would need a maintainer's agreement on pingdotgg#8657 or pingdotgg#24115 before a PR, per upstream's contributing rules. We aren't offering extra testing because nobody upstream has asked for it.
For the giveback dispatcher
Watch these upstream PRs. Both conflict with main, and the bot closes a PR after 7 days in conflict with no activity (pingdotgg#23931 already went that way):
If either is closed without merging, flag it so we can decide whether to carry the fix in J5 or help land a fresh PR.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|