Skip to content

fix(terminal): use ResizeObserver for container resize detection#22

Merged
openhoat merged 1 commit intomainfrom
fix/terminal-resize
Mar 6, 2026
Merged

fix(terminal): use ResizeObserver for container resize detection#22
openhoat merged 1 commit intomainfrom
fix/terminal-resize

Conversation

@openhoat
Copy link
Copy Markdown
Owner

@openhoat openhoat commented Mar 6, 2026

Summary

  • Add ResizeObserver to detect terminal container size changes
  • Fix terminal not resizing when panel width changes via Resizer drag
  • Terminal now properly reflows content when splitter is moved

Test plan

  • Start the application
  • Drag the Resizer between terminal and chat panel
  • Verify terminal content reflows correctly
  • Verify terminal still resizes on window resize

The terminal now properly resizes when the container size changes
(e.g., when dragging the Resizer), not just on window resize events.

- Add ResizeObserver to watch terminal container size changes
- Store ResizeObserver in ref for proper cleanup
- Call fit() and terminalResize() on container resize
@openhoat openhoat force-pushed the fix/terminal-resize branch from 9cc5ba9 to b01c251 Compare March 6, 2026 16:17
@openhoat openhoat merged commit 427f3c7 into main Mar 6, 2026
@openhoat openhoat deleted the fix/terminal-resize branch March 6, 2026 16:21
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