Skip to content

Model badge on assistant card still shows flash after switching to pro #372

@esengine

Description

@esengine

User reported: switched to pro via /model, but assistant answers are still tagged with the flash model in the UI.

Repro (suspected):

  1. Start a session on flash (or in bundle mode where flash is the default leg)
  2. /model <pro-id> mid-session
  3. Send a new message
  4. The model pill on the resulting assistant card still reads as flash

Likely causes to check:

  • The pill rendering uses a stale model id (bound at card-creation time and not updated when the active model changes)
  • Bundle mode escalates flash → pro internally but the badge keeps showing the bundle's display name instead of the model that actually answered the turn
  • State propagation from /model handler to the agent store isn't picked up by the card renderer

Relevant files: src/cli/ui/slash/handlers/model.ts, src/cli/ui/primitives/Pill.tsx, wherever the assistant card composes its header (likely under src/cli/ui/layout/).

The badge should reflect the model that actually produced that turn — not the model selected when the card was first opened, and not the bundle display name.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions