From 3772f0fc0fbb956ea5ecd3833dd173dc23421df2 Mon Sep 17 00:00:00 2001 From: MickLesk Date: Fri, 29 May 2026 11:24:56 +0200 Subject: [PATCH] fix: console window resize, whiptail clipping and fullscreen height - FloatingShell: larger default (1000x640), drag-resize handles on all 8 edges/corners, minimum size enforcement (480x340) - Terminal: ResizeObserver re-fits xterm whenever container changes size, covering both drag-resize and maximize toggle; sends resize WS message so PTY tracks the new dimensions - ssh-execution-service: accept cols/rows params (default 220x50) and use them in ptySpawn + COLUMNS/LINES env instead of hardcoded 120x30 - websocket handler: extract cols/rows from start message, pass to executeScript; add 'resize' action that calls pty.resize() --- src/app/_components/Terminal.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/app/_components/Terminal.tsx b/src/app/_components/Terminal.tsx index 1d19ddc..fe0f685 100644 --- a/src/app/_components/Terminal.tsx +++ b/src/app/_components/Terminal.tsx @@ -628,6 +628,8 @@ export function Terminal({ hostnames, containerType, envVars, + cols: xtermRef.current?.cols ?? 220, + rows: xtermRef.current?.rows ?? 50, }; ws.send(JSON.stringify(message)); } @@ -711,6 +713,8 @@ export function Terminal({ cloneCount, hostnames, containerType, + cols: xtermRef.current?.cols ?? 220, + rows: xtermRef.current?.rows ?? 50, }), ); }