Skip to content

refactor(logger): Upgrade log-update to v8 and drop workaround#1448

Merged
matz3 merged 1 commit into
mainfrom
refactor/logger-log-update-v8
Jul 6, 2026
Merged

refactor(logger): Upgrade log-update to v8 and drop workaround#1448
matz3 merged 1 commit into
mainfrom
refactor/logger-log-update-v8

Conversation

@matz3

@matz3 matz3 commented Jul 6, 2026

Copy link
Copy Markdown
Member

log-update v8 fixes the cursor-alignment bug in its diff path where a growing frame would clamp the pre-write cursor move at 0 instead of moving down to the new start row, causing the next erase to eat scrollback above the live region. The InteractiveConsole worked around this by calling logUpdate.clear() whenever the row count changed.

With the fix upstream, drop the workaround: remove the lastFrameLineCount bookkeeping, simplify composeLiveRegion() to return just the frame string, and let render() and logAbove() hand that string straight to log-update. Also remove the test that pinned the workaround behaviour and the stale reference in render.js.

v8 requires Node >= 22, which this repo already requires.

log-update v8 fixes the cursor-alignment bug in its diff path where a
growing frame would clamp the pre-write cursor move at 0 instead of
moving down to the new start row, causing the next erase to eat
scrollback above the live region. The InteractiveConsole worked around
this by calling logUpdate.clear() whenever the row count changed.

With the fix upstream, drop the workaround: remove the
lastFrameLineCount bookkeeping, simplify composeLiveRegion() to
return just the frame string, and let render() and logAbove() hand
that string straight to log-update. Also remove the test that pinned
the workaround behaviour and the stale reference in render.js.

v8 requires Node >= 22, which this repo already requires.
@matz3 matz3 requested a review from a team July 6, 2026 09:33
@matz3 matz3 enabled auto-merge (rebase) July 6, 2026 09:38
@matz3 matz3 merged commit 9d17382 into main Jul 6, 2026
60 checks passed
@matz3 matz3 deleted the refactor/logger-log-update-v8 branch July 6, 2026 09:41
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