Skip to content

fix(resume): cap transcript hydration in rows after fold - #1257

Merged
TheGreatAxios merged 1 commit into
mainfrom
fix/cl-9008-resume-row-cap
Sep 30, 2026
Merged

TheGreatAxios merged 1 commit into
mainfrom
fix/cl-9008-resume-row-cap

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Collaborator

Summary

  • Resume maps a turn window large enough that tool call+result pairs can still fill the 600-row transcript tail, instead of splicing 600 content-blocks before hydrate.
  • loadRecentTurns reports when older segments were left unread so an exact-cap tail still paints the dropped-rows notice.
  • A pair that would have straddled the old block splice stays merged as one row.

Verification

  • bun run check (lint, typecheck, dead-exports, build, guarded test suite) passes
  • Resume pipeline tests cover long text history (streamLogBase > 0 + eviction marker), 800 spawn_agent pairs filling 600 rows, and a pair kept whole at the cap

Related to CL-9008

A 600-block mapping window under-fills the retained row tail once
call+result pairs fold, so retention never evicts and the dropped-rows
notice stays unpainted. Resume now reads a turn window sized for that
fold and lets the host cap in rows.
@linear-code

linear-code Bot commented Sep 30, 2026

Copy link
Copy Markdown

CL-9008

@TheGreatAxios
TheGreatAxios merged commit c3d0f99 into main Sep 30, 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