Statusline collapses to 1 line on terminal resize
Resolved 💬 3 comments Opened Mar 28, 2026 by arielskeren Closed Apr 28, 2026
Summary
Multi-line statusline output collapses to a single line when the terminal window is resized. The statusline does not re-render correctly after resize — only the first line is shown and the rest are removed.
Steps to Reproduce
- Configure a multi-line statusline command in
settings.json:
``json``
"statusLine": {
"type": "command",
"command": "bash /path/to/statusline-command.sh"
}
- The script outputs 2+ lines via
printf '%b\n'to stdout - Initially renders correctly (all lines visible)
- Resize the terminal window (drag to make narrower or wider)
- Statusline collapses to only the first line — remaining lines are removed
Expected Behavior
After terminal resize, statusline should re-render all lines from the script output.
Actual Behavior
Only the first line persists after resize. Sending a new message does not fix it either.
Environment
- Claude Code v2.1.86
- macOS Darwin 25.3.0
- Terminal.app
- Model: Opus 4.6 (1M context)
Workaround
Limiting statusline output to 2 lines and keeping essential info on line 1.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗