Objective
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
Generated by Plan Command for issue #discussion #21351 · ◷
Objective
Fix
pkg/console/list.goso 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 handlestea.WindowSizeMsgto update width — but does not update the height. This is a v1-compatible quick win identified in discussion #21351.Approach
pkg/console/list.gotea.WindowSizeMsghandler (around line 49)m.list.SetHeight(msg.Height - (vertical_padding))alongside the existingSetWidthcallmsg.Height - 4to leave room for borders/status bar)make fmt && make test-unitFiles to Modify
pkg/console/list.gotea.WindowSizeMsgis handled: addm.list.SetHeight(...)Acceptance Criteria
tea.WindowSizeMsgupdates both list width AND heightmake test-unit)