From 110afde55165a27fdf4f5937b29302bf0fec8951 Mon Sep 17 00:00:00 2001 From: Prateek Date: Sat, 14 Feb 2026 20:08:21 +0530 Subject: [PATCH] fix: use const for pollInterval, expand WORKING zone by default Co-Authored-By: Claude Sonnet 4.5 --- packages/web/src/server/terminal-websocket.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/web/src/server/terminal-websocket.ts b/packages/web/src/server/terminal-websocket.ts index c07eff2b3..fba535583 100644 --- a/packages/web/src/server/terminal-websocket.ts +++ b/packages/web/src/server/terminal-websocket.ts @@ -47,7 +47,6 @@ wss.on("connection", (ws, req) => { sessions.set(sessionId, session); let lastContent = ""; - let pollInterval: NodeJS.Timeout; // Poll tmux capture-pane every 100ms for real-time updates const pollOutput = () => { @@ -87,7 +86,7 @@ wss.on("connection", (ws, req) => { pollOutput(); // Start polling - 100ms for lower latency - pollInterval = setInterval(pollOutput, 100); + const pollInterval = setInterval(pollOutput, 100); session.captureProcess = null; // Not using a persistent process anymore