GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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) #1216

New issue
Copy link
New issue
Copy link
Backlog
Backlog
Claude threads show the requested model, not the one that ran, when the CLI swaps in another (no warning to the user)#1216
Copy link

Description

@EvanHammond
EvanHammond
opened on Nov 23, 2026
Issue body actions

Version: 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

  1. 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.
  2. 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).
  3. 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

  1. Use an org account where claude-fable-5 is not entitled (check ~/.claude.json modelAccessCache).
  2. j5 thread start "Reply with ok" --provider claudeAgent --model claude-fable-5 --wait --json
  3. The thread shows claude-fable-5; the turn's usage models and the provider event log show claude-opus-5-5.

Activity

  1. Jacksondr5 commented on Nov 23, 2026

    @Jacksondr5
    Jacksondr5
    on Nov 23, 2026
    Owner
    More actions

    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

    1. 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.
    2. 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.
    3. 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.
    4. 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):

    • fix(claude): leave out models the organization has restricted pingdotgg/t3code#26309, fix(claude): leave out models the organization has restricted. It's ask 3 and the base for item 3 above.
    • fix(claude): follow the session model after a refusal fallback pingdotgg/t3code#24126, fix(claude): follow the session model after a refusal fallback. It's the closest upstream work on the composer label.

    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.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402792 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.