chore: remove debug console.log statements from terminal component

This commit is contained in:
Fusion
2026-05-24 16:40:05 +02:00
parent 058c501e4a
commit f4211ad452
+1 -3
View File
@@ -82,7 +82,7 @@ export const TerminalComponent: React.FC<TerminalProps> = ({
// Send current terminal size immediately on connect // Send current terminal size immediately on connect
if (termRef.current) { if (termRef.current) {
const { cols, rows } = 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 })); ws.send(JSON.stringify({ type: "resize", cols, rows }));
} }
@@ -156,7 +156,6 @@ export const TerminalComponent: React.FC<TerminalProps> = ({
} else if (event.code === 4000) { } else if (event.code === 4000) {
// Server closed old connection for concurrent connection - don't reconnect // Server closed old connection for concurrent connection - don't reconnect
// The new connection is already established // 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<TerminalProps> = ({
if (!fitAddonRef.current || !termRef.current) return; if (!fitAddonRef.current || !termRef.current) return;
fitAddonRef.current.fit(); fitAddonRef.current.fit();
const { cols, rows } = termRef.current; const { cols, rows } = termRef.current;
console.log(`[Terminal] Fitted: ${cols}x${rows}, container: ${container.clientWidth}x${container.clientHeight}`);
if (ws.readyState === WebSocket.OPEN) { if (ws.readyState === WebSocket.OPEN) {
ws.send(JSON.stringify({ type: "resize", cols, rows })); ws.send(JSON.stringify({ type: "resize", cols, rows }));
} }