[BUG] TUI does not repaint after collapsing expanded tool output until mouse is moved (Konsole/Linux)
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 I expand a collapsed tool output block and then click again to collapse it, the terminal is not redrawn. The screen keeps the stale frame — often mostly blank, with only the last one or two lines visible at the bottom. The UI stays frozen like this until I move the mouse over the terminal, which forces a repaint and the correct content appears again.
Keyboard input still works during this state, so it seems to be a rendering/repaint issue rather than the process hanging. It happens most often in plan mode while background agents are running and output is long.
What Should Happen?
After expanding or collapsing tool output, the TUI should immediately redraw the current view without requiring mouse movement or any other event to trigger a repaint.
Error Messages/Logs
No error output — the process keeps running normally, only the rendering is stale.
Steps to Reproduce
- Start
claudein console on Linux (fish shell), in a repo with enough context to produce long tool output. - Enter plan mode (shift+tab) and give a task that runs several tool calls / background agents.
- Click on a collapsed tool output block to expand it.
- Click again to collapse it.
- The screen is not redrawn — it stays blank or shows a stale frame with only the last lines at the bottom.
- Move the mouse over the terminal window → the UI repaints correctly.
Claude Model
Opus
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.1.251 (Claude Code)
Platform
Anthropic API
Operating System
Other Linux
Terminal/Shell
Other
Additional Information
Cachyos - Fish Terminal
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗