Skip to content

TUI: /status shows wrong model in multi-agent sessions (Selected model vs turn_context.model) #13066

@palvaleri

Description

@palvaleri

What version of Codex CLI is running?

codex-cli 0.106.0

What subscription do you have?

Team

Which model were you using?

  • TUI /status shows: gpt-5.2 (reasoning xhigh)
  • But the session rollout (turn_context) shows the effective model is: gpt-5.3-codex

What platform is your computer?

macOS 15.7.4 (Apple Silicon)

What terminal emulator and version are you using (if applicable)?

zsh

What issue are you seeing?

In multi-agent / collab sessions, the TUI /status (and the header “Model:” line) can show a different model than the one actually used for the active thread.

This is extremely confusing because it becomes impossible to tell which model is actually answering.

Evidence (sanitized)

TUI /status (for a spawned agent thread):

Model: gpt-5.2 (reasoning xhigh, summaries detailed)

But the corresponding rollout contains turn_context with model=gpt-5.3-codex:

{"timestamp":"2026-02-27T18:52:21.984Z","type":"turn_context","payload":{"model":"gpt-5.3-codex","effort":"xhigh","approval_policy":"never","collaboration_mode":{"mode":"default","settings":{"model":"gpt-5.3-codex","reasoning_effort":"xhigh"}}}}

Also, codex-tui.log shows the app-level selection can differ from the resumed session model (paths redacted):

INFO  codex_tui::app: Selected model: gpt-5.2, Selected effort: xhigh
WARN  session_init: codex_core::codex: resuming session with different model: previous=gpt-5.2, current=gpt-5.3-codex

What steps can reproduce the bug?

I don’t yet have a perfectly minimal repro, but it seems to involve:

  1. Starting a multi-agent / collab session where at least one thread ends up with a different turn_context.model than the app’s selected model.
  2. Switching into that thread in the TUI.
  3. Running /status (or looking at the header).

What is the expected behavior?

/status should show the effective model for the active thread (ideally from the latest turn_context / session context), not a stale app-level selection.

If the app model is global, then the UI should still reflect the actual model used; or show both “Selected model” vs “Effective model” when they differ.

Additional information

Possibly related (same surface area: collaboration modes / model state): #9766, #9783, #11013.

Metadata

Metadata

Assignees

No one assigned

    Labels

    CLIIssues related to the Codex CLITUIIssues related to the terminal user interface: text input, menus and dialogs, and terminal displaybugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions