diff --git a/apps/web/src/components/terminal.tsx b/apps/web/src/components/terminal.tsx index a6eddf1..f050f76 100644 --- a/apps/web/src/components/terminal.tsx +++ b/apps/web/src/components/terminal.tsx @@ -290,6 +290,16 @@ export const TerminalComponent: React.FC = ({ if (termRef.current && fitAddonRef.current) { try { fitAddonRef.current.fit(); + const { cols, rows } = termRef.current; + if (wsRef.current?.readyState === WebSocket.OPEN) { + wsRef.current.send( + JSON.stringify({ + type: "resize", + cols, + rows, + }) + ); + } } catch { // Ignore fit errors during re-initialization }