Paginate oversized timeline turn details - #2464
Open
ymichael wants to merge 4 commits into
Open
Conversation
This was referenced Aug 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Human comments
What was wrong
Completed-turn detail hydration used one exact sequence-range response with a 4 MiB stored-event safety limit. After full output and preview-output reads both exceeded that limit, the route returned
413 timeline_window_too_large, so expanding an otherwise valid “Worked for…” row failed. The first pagination implementation also keyed pages only by turn and expanded the entire completed turn, which crossed visible assistant-message boundaries instead of preserving the exact rendered row.What changed
Added a forward-paginated turn-detail resource. Its first request still uses the existing exact-range path unchanged; only the former 413 case falls back to bounded pages. The requested
sourceSeqStart/sourceSeqEndnow flow through the web app, mobile app, server contract, SDK, route, and cache keys, and continuation cursors are bound to the thread, turn, and exact row range. Clients fetch one page initially, merge page boundaries by stable row identity, and expose “Load more work” for continuation pages.The existing exact-range resource remains available and unchanged. There is no server/daemon wire change, so
HOST_DAEMON_PROTOCOL_VERSIONis unchanged. The plugin SDK version is bumped to 0.4.23 for the added public thread-detail API.How you verified