Status bar shows wrong model/context when /model used in another session

Status Fixed / completed
Reported on v2.1.81
Maintainer reply None cached
Activity 3 comments · opened Mar 22, 2026 · closed Mar 27, 2026

Description

When running two Claude Code sessions in the same project directory, using /model to switch models in one session causes the status bar in the other session to display the wrong model and context window size.

<img width="1195" height="305" alt="Image" src="https://github.com/user-attachments/assets/37d2ee12-633e-454f-a994-bde71ecb6f99" />
<img width="870" height="277" alt="Image" src="https://github.com/user-attachments/assets/bfc17916-6462-4eba-b789-fef7e4982960" />
<img width="1218" height="280" alt="Image" src="https://github.com/user-attachments/assets/f767c761-b149-41b0-9fff-920453a52fc4" />

Steps to reproduce

  1. Open two terminal sessions in the same project directory
  2. Session A: Start Claude Code (defaults to Opus 4.6 with 1M context)
  3. Session B: Start Claude Code, then run /model sonnet
  4. Return to Session A

Expected behavior

Session A's status bar should continue showing Opus 4.6 with 1M context window.

Actual behavior

Session A's status bar changes to show Sonnet 4.6 with 200k context window, even though Session A is still running Opus. The actual model serving responses is still Opus -- only the status bar display is wrong.

In the screenshots below:

  • The model responds "Opus." when asked what model it is (correct)
  • The status bar shows "Sonnet 4.6 | 151k/200k (75%)" (incorrect -- should be Opus 4.6, ~152k/1M, ~15%)

Screenshots

See attached screenshots showing the discrepancy between the model's self-reported identity and the status bar.

Environment

  • Claude Code version: 2.1.81
  • OS: macOS (Darwin 25.3.0)
  • Shell: zsh

View original on GitHub ↗

3 Comments

xpe · 6 months ago

Same problem. I'm running 2.1.83 (Claude Code). It has been happening for several days. See also: #35071, #37884

xpe · 6 months ago

I noticed this was fixed as of https://github.com/anthropics/claude-code/releases/tag/v2.1.85 (or possibly the version before). However, I don't see it mentioned in the CHANGELOG. It deserves a mention imo.

github-actions[bot] · 6 months ago

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.