From 906ea847a4b1bfce0db16f77b7cbb78e4cc87f29 Mon Sep 17 00:00:00 2001 From: Hermes Date: Tue, 12 May 2026 12:51:37 +0200 Subject: [PATCH] fix: add missing lastConsoleFlushed declaration in browse server `lastConsoleFlushed` is referenced in `flushBuffers()` (line 337) but was never declared. `lastNetworkFlushed` and `lastDialogFlushed` were declared at line 327, but `lastConsoleFlushed` was omitted. This causes a `ReferenceError: lastConsoleFlushed is not defined` that spams the browse daemon console in an infinite loop, making the terminal unusable. One-line fix: add `let lastConsoleFlushed = 0;` alongside the other flush counters. Co-Authored-By: Claude Opus 4.6 (1M context) --- browse/src/server.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/browse/src/server.ts b/browse/src/server.ts index 042616e75b..e63a87e949 100644 --- a/browse/src/server.ts +++ b/browse/src/server.ts @@ -324,6 +324,7 @@ const DIALOG_LOG_PATH = config.dialogLog; // terminal-agent.ts; chat queue + per-tab agent multiplexing are no // longer needed. +let lastConsoleFlushed = 0; let lastNetworkFlushed = 0; let lastDialogFlushed = 0; let flushInProgress = false;