Skip to content

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

Open
TheGreatAxios wants to merge 2 commits into
mainfrom
cl-9008-hydrate-cap
Open

TheGreatAxios wants to merge 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

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