You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[plan] Fix list height not updating on terminal resize in pkg/console/list.go #21517
Fix pkg/console/list.go so that the list height is updated when the terminal is resized, not just the width.
Context
The list model initializes with hardcoded dimensions list.New(listItems, delegate, 80, 20) (line 154) and handles tea.WindowSizeMsg to update width — but does not update the height. This is a v1-compatible quick win identified in discussion #21351.
Approach
Open pkg/console/list.go
Find the tea.WindowSizeMsg handler (around line 49)
Add m.list.SetHeight(msg.Height - (vertical_padding)) alongside the existing SetWidth call
Choose an appropriate height (e.g., msg.Height - 4 to leave room for borders/status bar)
Run make fmt && make test-unit
Files to Modify
pkg/console/list.go
Where tea.WindowSizeMsg is handled: add m.list.SetHeight(...)
Consider leaving some padding for header/footer rows
Acceptance Criteria
tea.WindowSizeMsg updates both list width AND height
The list doesn't overflow or leave large empty spaces when the terminal is resized
Activity