Skip to content

fix: add missing lastConsoleFlushed declaration in browse server#1453

Open
aloddo wants to merge 1 commit into
garrytan:mainfrom
aloddo:fix/missing-lastConsoleFlushed-declaration
Open

fix: add missing lastConsoleFlushed declaration in browse server#1453
aloddo wants to merge 1 commit into
garrytan:mainfrom
aloddo:fix/missing-lastConsoleFlushed-declaration

Conversation

@aloddo
Copy link
Copy Markdown

@aloddo aloddo commented May 12, 2026

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.


View in Codesmith
Need help on this PR? Tag @codesmith with what you need.

  • Let Codesmith autofix CI failures and bot reviews

`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) <noreply@anthropic.com>
BiyuHuang

This comment was marked as low quality.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants