chore: remove debug console.log statements from terminal component
This commit is contained in:
@@ -82,7 +82,7 @@ export const TerminalComponent: React.FC<TerminalProps> = ({
|
||||
// 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<TerminalProps> = ({
|
||||
} 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<TerminalProps> = ({
|
||||
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 }));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user