Skip to content

fix(resume): cap history hydrate to the newest retained rows - #1211

Merged
TheGreatAxios merged 2 commits into
mainfrom
cl-9008-hydrate-cap
Sep 29, 2026
Merged

TheGreatAxios merged 2 commits into
mainfrom
cl-9008-hydrate-cap

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Collaborator

Summary

  • Resume hydrates only the newest MAX_RETAINED_STREAM_ROWS rows, so an oversized history paints exactly the newest 600 with no incremental eviction churn
  • streamLogBase stays 0 on resume: no dropped-rows marker for rows that were never painted

Verification

  • bun run typecheck, bun run build, and bun run test pass
  • product-host, wave6, and transcript-long-log-scroll suites pass

Fixes CL-9008

Resume paints only the newest MAX_RETAINED_STREAM_ROWS rows, so an
oversized history never trips per-append retention eviction during the
hydrate loop. streamLogBase stays 0: no dropped-rows marker on resume.
@linear-code

linear-code Bot commented Sep 28, 2026

Copy link
Copy Markdown

CL-9008

@TheGreatAxios
TheGreatAxios merged commit 7876b56 into main Sep 29, 2026
13 checks passed
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.

1 participant