[BUG] Status line shows global model instead of session's current model

Resolved 💬 3 comments Opened Jan 15, 2026 by Taeu Closed Jan 18, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

When using /model <name> to switch models mid-session, the status line continues to display the previous/global model instead of the newly selected model.

Additionally, when switching models in one session, it affects the status line display in ALL other concurrent sessions - they all show the last changed model globally instead of each session's own model.

What Should Happen?

The status line should display the current session's active model, not the global/shared model setting.

Expected behavior:

  • Session A: /model opus → Status line shows [Opus 4.5]
  • Session B: /model haiku → Status line shows [Haiku 4.5] (Session A unchanged)
  • Session A: /model sonnet → Status line shows [Sonnet 4.5] (Session B unchanged)

Each session's status line should be independent and reflect that session's current model.

Error Messages/Logs

No error messages. The `/model` command succeeds:

/model opus
Set model to opus (claude-opus-4-5-20251101)


But status line still shows previous model (e.g., `[Haiku 4.5]` instead of `[Opus 4.5]`).

Steps to Reproduce

  1. Configure a custom status line in ~/.claude/settings.json:

``json
{
"model": "haiku",
"statusLine": {
"type": "command",
"command": "~/.claude/statusline.sh"
}
}
``

  1. Create ~/.claude/statusline.sh that reads model from JSON input:

``bash
#!/bin/bash
input=$(cat)
MODEL=$(echo "$input" | jq -r '.model.display_name // "Claude"')
# ... rest of status line formatting
echo "[${MODEL}] ..."
``

  1. Start a Claude session:

``bash
claude
``

  1. Observe status line shows: [Haiku 4.5] ✅ Correct
  1. Switch model mid-session:

``
/model opus
``

  1. Observe status line still shows: [Haiku 4.5] ❌ Should show [Opus 4.5]
  1. Open a second terminal and start another Claude session
  1. In second session, run:

``
/model sonnet
``

  1. Observe BOTH sessions now show [Sonnet 4.5] ❌ First session should still show [Opus 4.5]

Claude Model

Not sure / Multiple models

Is this a regression?

I don't know

Last Working Version

2.1.7 (Claude Code)

Claude Code Version

2.1.7 (Claude Code)

Platform

Anthropic API

Operating System

Ubuntu/Debian Linux

Terminal/Shell

Cursor

Additional Information

_No response_

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗