[BUG] /tui reports the previous renderer on the first call after a switch
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?
After switching renderers with /tui default or /tui fullscreen, the session
relaunches correctly, but the first /tui afterwards reports the renderer you
just left. Running /tui a second time, with no input in between, reports the
correct one.
Reproducible in both directions.
I have not independently verified which renderer is actually active — only
what /tui reports. The switch itself appears to work.
Screenshot 1 — fullscreen -> default (/tui before, then two /tui calls after the switch):
<img width="2744" height="1246" alt="Image" src="https://github.com/user-attachments/assets/07f36784-0982-469a-a0a7-104d15a83019" />
Screenshot 2 — default -> fullscreen (two /tui calls after the switch):
<img width="2742" height="1764" alt="Image" src="https://github.com/user-attachments/assets/2c3492ae-c719-49e4-9313-28d6e2eeae1d" />
What Should Happen?
/tui should report the renderer active after the switch, on the first call.
Error Messages/Logs
fullscreen -> default:
1. /tui -> "Current renderer: fullscreen"
2. /tui default -> "Switching back to the classic renderer…", relaunches
3. /tui -> "Current renderer: fullscreen" (wrong)
4. /tui -> "Current renderer: default" (correct)
default -> fullscreen:
1. /tui fullscreen -> relaunches
2. /tui -> "Current renderer: default" (wrong)
3. /tui -> "Current renderer: fullscreen" (correct)
All /tui calls are commands typed by the user; nothing is auto-emitted by
the relaunch. Reproduced multiple times in both directions.
Steps to Reproduce
fullscreen -> default:
- /tui -> "Current renderer: fullscreen"
- /tui default -> "Switching back to the classic renderer…", relaunches
- /tui -> "Current renderer: fullscreen" (wrong)
- /tui -> "Current renderer: default" (correct)
default -> fullscreen:
- /tui fullscreen -> relaunches
- /tui -> "Current renderer: default" (wrong)
- /tui -> "Current renderer: fullscreen" (correct)
All /tui calls are commands typed by the user; nothing is auto-emitted by
the relaunch. Reproduced multiple times in both directions.
Claude Model
Opus
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.1.226 (Claude Code)
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
iTerm2
Additional Information
Native installer (~/.local/bin/claude). Reproduces both inside and outside
tmux.