Skip to content

fix(fleet-watcher): reflow on terminal resize#143

Merged
NagyVikt merged 1 commit into
mainfrom
agent/claude/fleet-watcher-resize-redraw-2026-05-16-01-11
May 15, 2026
Merged

fix(fleet-watcher): reflow on terminal resize#143
NagyVikt merged 1 commit into
mainfrom
agent/claude/fleet-watcher-resize-redraw-2026-05-16-01-11

Conversation

@NagyVikt
Copy link
Copy Markdown
Contributor

Automated by gx branch finish (PR flow).

WatcherView only subscribed to EventClause::Tick, so terminal WindowResize
events fell through the `_ => None` arm in `on()`, no Msg was returned,
and the dashboard stayed at its startup layout — observable as
"not full width / not dynamic" when the tmux pane or kitty window grew
larger than the size at watcher startup.

Add a Msg::Resize variant, route Event::WindowResize through it, and
subscribe WatcherView to EventClause::WindowResize so tuirealm actually
delivers the events. Model::update treats Resize like Tick (just sets
redraw=true); ratatui's Terminal::draw autoresizes the back buffer on
the next draw so the layout immediately reflows to the new frame area.

Regression test exercises WatcherView::on(WindowResize) directly. All 7
fleet-watcher tests pass.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@NagyVikt NagyVikt merged commit a20f07a into main May 15, 2026
@NagyVikt NagyVikt deleted the agent/claude/fleet-watcher-resize-redraw-2026-05-16-01-11 branch May 15, 2026 23:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant