[BUG] `/context` command has displays the context delayed and only temporarily
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?
Running /context shows a delayed visualization of token usage that disappears from the screen
What Should Happen?
The context display should remain on the screen and show up immediately.
Steps to Reproduce
- Start claude session
- Run /context
Claude Model
Opus
Is this a regression?
Yes, this worked in a previous version
Last Working Version
2.1.7
Claude Code Version
2.1.11
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
IntelliJ IDEA terminal
Additional Information
Here you can see that the context display disappears after a few seconds.
https://github.com/user-attachments/assets/9a0191ce-bfca-4a75-ad32-a6204f110588
Found 3 possible duplicate issues:
- https://github.com/anthropics/claude-code/issues/18562
- https://github.com/anthropics/claude-code/issues/18521
- https://github.com/anthropics/claude-code/issues/18488
This issue will be automatically closed as a duplicate in 3 days.
- If your issue is a duplicate, please close it and 👍 the existing issue instead
- To prevent auto-closure, add a comment or 👎 this comment
🤖 Generated with Claude Code
Additional Reproduction Details
Confirming this issue on v2.1.11.
My observations:
/contextshows token usage briefly then vanishes after ~5 seconds- Happens even without window resize
- Tested with all plugins disabled - still occurs
Environment:
- Claude Code: 2.1.11
- macOS: Darwin 25.0.0 (arm64)
- Terminal: Ghostty 1.2.3, Terminal.app (both affected)
- Shell: zsh
Troubleshooting attempted (none resolved):
- Disabled custom
statusLineconfig - Disabled
claude-hudplugin - Removed all hooks from settings.json
- Set Ghostty
shell-integration-features = no-cursor
This appears related to other TUI rendering issues I'm experiencing:
- #17816 (slash command highlight offset)
- #18493 (resize content loss)
- #18797 (cursor blinks below status bar)
These issues may share a common root cause in the TUI rendering layer, possibly a regression in v2.1.x.
Same here!
This may be related to #18298 and #18370 (MCP Tool Search not auto-enabling).
Hypothesis: Both issues involve processing MCP tool metadata:
/contextneeds to calculate MCP tool token usage → crashes/flashes- Auto-enable check needs to calculate "are MCP tools > 10%?" → fails silently
If the MCP tool counting/processing code is broken, both would fail. Setting ENABLE_TOOL_SEARCH=true env var bypasses the auto-detection and makes MCP tool search work, but /context still crashes.
Environment:
- 7-8 MCP servers configured
- MCP tools consuming ~50k tokens (25% of context) when loaded upfront
ENABLE_TOOL_SEARCH=truemakes tool search work, but/contextstill flashes briefly then resets
I did all the same troubleshooting and issue remains in 2.1.12
Same here
Same here
Same here
Same here
same here
This was fixed in v2.1.14 — The /context overlay now stays open instead of appearing briefly and closing while message processing finishes. If you're still seeing this in the latest version, please comment with your version and repro and we'll reopen.
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.