claude-code - 💡(How to fix) Fix FleetView dashboard layout broken after returning from session (v2.1.140, Windows)

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Error Message

Error Messages/Logs

Fix Action

Fix / Workaround

Workarounds tried (none fixed the underlying bug)

RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • 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

  1. Maximize the terminal window (Windows Terminal or PowerShell conhost — both reproduce).
  2. Run claude agents — FleetView dashboard renders correctly at full window width. (See screenshot 1.)
  3. Press the key to enter any agent session listed on the dashboard.
  4. From inside the session, press the key to return to the FleetView dashboard.
  5. The dashboard re-renders, but text wraps at a narrower (stale) width and columns are misaligned. (See screenshot 2.)
  6. 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=1 env 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" />

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix FleetView dashboard layout broken after returning from session (v2.1.140, Windows)