File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -580,9 +580,11 @@ impl App {
580580 self . input . set_content ( & completed) ;
581581 }
582582 } ,
583- Action :: Resize ( _w, _h) => {
584- // TODO trigger redraw with new dimensions
585- return ActionResult :: NoOp ;
583+ Action :: Resize ( w, _h) => {
584+ // Update chat view width for text wrapping
585+ self . chat . set_width ( w) ;
586+ // Re-render and draw with new dimensions
587+ self . chat . render ( & mut self . terminal ) ;
586588 } ,
587589 }
588590
Original file line number Diff line number Diff line change @@ -113,6 +113,11 @@ impl ChatView {
113113 self . transcript . add_turn ( role, block)
114114 }
115115
116+ /// Update the terminal width (e.g., on resize)
117+ pub fn set_width ( & mut self , width : u16 ) {
118+ self . width = width;
119+ }
120+
116121 /// Replace the transcript and reset view state (used after compaction rotation)
117122 /// Renders the new transcript fully to scrollback
118123 pub fn reset_transcript (
You can’t perform that action at this time.
0 commit comments