Exit summary has garbled text from TUI status area
Resolved 💬 3 comments Opened Mar 28, 2026 by Magnus-Gille Closed May 4, 2026
Description
When exiting Claude Code via /exit, the session summary (token usage, session counts) has leftover characters from the TUI status area bleeding into each line. The exit screen doesn't fully clear terminal lines before writing the summary.
Expected behavior
Clean exit summary:
⚡ Claude Code
Today 70M tokens · 246 sessions
Week 634M tokens · 1498 sessions
Month 1.8B tokens · 3411 sessions
Actual behavior
Residual characters from previously rendered TUI content (skill descriptions, etc.) appear appended to each line:
⚡ Claude Code Configure extra usage to keep working when limits are hit
Today 70M tokens · 246 sessionslize current context usage as a colored grid
Week 634M tokens · 1498 sessions emails in Magnus's authentic writing style. Use when writing emails, composing messages, or when the user wants to sen…
Month 1.8B tokens · 3411 sessions calendar, find available dates, verify if specific dates work, or see upcoming events. Use whenever the user mentions …
The trailing text on each line comes from skill/MCP server descriptions that were rendered in the TUI status area during the session.
Reproduction
- Have multiple skills/MCP servers registered (more text in status area = more visible artifact)
- Run a Claude Code session
- Exit with
/exit - Observe garbled summary output
Environment
- macOS (Darwin 25.4.0)
- Terminal: default macOS Terminal / iTerm2
- Claude Code with custom statusline script and ~15 skills + MCP servers registered
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗