fix: use const for pollInterval, expand WORKING zone by default

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
Prateek 2026-02-14 20:08:21 +05:30
parent dc6f4e1f9e
commit 110afde551
1 changed files with 1 additions and 2 deletions

View File

@ -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