Fix dashboard picker not resizing on terminal resize - #653
Merged
Merged
Conversation
lsegal
marked this pull request as ready for review
September 10, 2026 22:47
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Root cause
glorp uishows an interactive picker (dashboardPickerinuicmd.go) when more than one glorp dashboard is running locally. Unlike the main terminal dashboard (ui.go), the picker never handledtea.WindowSizeMsgat all, so it never learned the terminal's width. Its labels (port %d β target1, target2, ... (N running, M queued)) can be long, and resizing the terminal β narrower or wider β had no effect on the rendered output: the picker simply never adapted, which matches the reported "tui not resizing on term resize" behavior.Change
dashboardPickernow tracks awidthfield and updates it ontea.WindowSizeMsg.View()truncates each dashboard's label to fit the current terminal width, reusing the existingtruncatehelper already used by the main dashboard.Verification
Before the fix, the picker's label ignored terminal width entirely:
After the fix, resizing the terminal to 30 columns truncates the label to fit:
Tests
TestDashboardPickerResizesToTerminalWidthcovering both narrowing (label truncates, no line exceeds the new width) and widening (full label reappears) after a resize.go vet ./...andgo test ./...pass.Changelog
Added an
## Unreleasedentry inCHANGELOG.md.UI capture
This is a terminal (non-browser) interface with no browser-automation tooling available in this environment. Text captures of the picker's rendered output before and after the fix are included above per repository convention.
Closes #651
Agents: claude-code (claude-sonnet-5)