FleetView dashboard layout broken after returning from session (v2.1.140, Windows)
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 open the FleetView dashboard via claude agents in a maximized terminal, the initial render is correct. But every time I enter a session from the dashboard and then return to the dashboard, the dashboard re-renders using stale (narrower) terminal dimensions. Text wraps at the wrong column, columns become misaligned, and the layout stays broken until I manually resize the window by 1px to force a re-measure. Reproduces consistently. See attached screenshots.
What Should Happen?
When returning from a session to the FleetView dashboard, the dashboard should re-measure the current terminal viewport and lay out at the real (maximized) width — same as the initial render right after launching claude agents. The layout should remain stable across any number of session-enter / session-exit cycles.
Error Messages/Logs
Steps to Reproduce
- Maximize the terminal window (Windows Terminal or PowerShell conhost — both reproduce).
- Run
claude agents— FleetView dashboard renders correctly at full window width. (See screenshot 1.) - Press the key to enter any agent session listed on the dashboard.
- From inside the session, press the key to return to the FleetView dashboard.
- The dashboard re-renders, but text wraps at a narrower (stale) width and columns are misaligned. (See screenshot 2.)
- Manually drag the window edge by ~1px → layout snaps back to correct. Re-entering and exiting a session reproduces the glitch again.
Claude Model
Opus
Is this a regression?
No, this never worked
Last Working Version
_No response_
Claude Code Version
2.1.140 (Claude Code)
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
Windows Terminal
Additional Information
Workarounds tried (none fixed the underlying bug)
- Switched from PowerShell conhost to Windows Terminal (
wt) → same glitch. - Unset the
CLAUDE_CODE_NO_FLICKER=1env var (which I originally enabled to suppress an unrelated scroll-jump issue) → same glitch. So this layout bug is independent of that flag. - Manual window resize triggers a full redraw that fixes the layout, but it breaks again on the next session-exit.
Hypothesis
FleetView appears to cache terminal dimensions at startup (or on alt-screen restore) and skip re-measuring process.stdout.columns/rows when restoring from the session's alt-screen buffer. A SIGWINCH-equivalent or an explicit re-measure on alt-screen exit would likely fix it.
Screenshots
Correct layout — FleetView immediately after claude agents:
<img width="1918" height="1021" alt="problem1" src="https://github.com/user-attachments/assets/bab169b0-582a-4baf-89b9-5ee45609c723" />
Broken layout — FleetView after returning from a session (text wrapping at stale width):
<img width="1914" height="1023" alt="problem2" src="https://github.com/user-attachments/assets/280cd0c9-6871-42bf-b099-e5b5f50f1ff3" />
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗