From f4211ad452b9f5d5951acaaf187aad6b01d310e4 Mon Sep 17 00:00:00 2001 From: Fusion Date: Sun, 24 May 2026 16:40:05 +0200 Subject: [PATCH] chore: remove debug console.log statements from terminal component --- apps/web/src/components/terminal.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/apps/web/src/components/terminal.tsx b/apps/web/src/components/terminal.tsx index e1e6073..38710d7 100644 --- a/apps/web/src/components/terminal.tsx +++ b/apps/web/src/components/terminal.tsx @@ -82,7 +82,7 @@ export const TerminalComponent: React.FC = ({ // Send current terminal size immediately on connect if (termRef.current) { const { cols, rows } = termRef.current; - console.log(`[Terminal] Sending resize on connect: ${cols}x${rows}`); + // Send resize immediately on connect ws.send(JSON.stringify({ type: "resize", cols, rows })); } @@ -156,7 +156,6 @@ export const TerminalComponent: React.FC = ({ } else if (event.code === 4000) { // Server closed old connection for concurrent connection - don't reconnect // The new connection is already established - console.log("Old WebSocket closed by server (new connection established)"); } }; @@ -220,7 +219,6 @@ export const TerminalComponent: React.FC = ({ if (!fitAddonRef.current || !termRef.current) return; fitAddonRef.current.fit(); const { cols, rows } = termRef.current; - console.log(`[Terminal] Fitted: ${cols}x${rows}, container: ${container.clientWidth}x${container.clientHeight}`); if (ws.readyState === WebSocket.OPEN) { ws.send(JSON.stringify({ type: "resize", cols, rows })); }