Skip to content

Keep older timeline details expandable after late completions - #3291

Merged
ymichael merged 1 commit into
mainfrom
bb/fixer-keep-late-thinking-details-expandable-on-o-thr_qtzru86rhh
Sep 8, 2026
Merged

ymichael merged 1 commit into
mainfrom
bb/fixer-keep-late-thinking-details-expandable-on-o-thr_qtzru86rhh

Conversation

@ymichael

@ymichael ymichael commented Sep 8, 2026

Copy link
Copy Markdown
Collaborator

Human comments

What was wrong

An older timeline page could correctly keep an item that completed late beside the prompt where it started, but omit the newer user prompt that separates the two responses while rebuilding the older row. The older summary and its details endpoint then calculated different source ranges (1–9 versus 4–8), so exact detail lookup failed with “Failed to load turn details.” This completes the behavior introduced by PR #3110; the reproduced case is documented in the fixer handoff.

What changed

Standard older-page selection now includes the next prompt only as projection context when an item or turn lifecycle was backfilled past the cursor. The prompt establishes the same response boundary used by full-history and details projection, then is removed before the older page is returned. Existing late-item ownership, normal latest pages, byte and sequence pagination, interruption current work, and retained-output previews remain unchanged.

The regression expands the older summary returned by the real server timeline builder and proves it returns the same details as the complete timeline.

How you verified

  • The focused regression failed before the fix with Timeline turn summary details could not match range 1-9 and passes after it.
  • The exact database/server reproduction reproduced 1–9 versus 4–8 before the fix and 4–8 versus 4–8 with no error after it.
  • pnpm exec turbo run test --filter=@bb/server -- test/services/threads/timeline-in-turn-window.test.ts — 30/30 passed after rebasing onto current local origin/main.
  • pnpm exec turbo run typecheck --filter=@bb/server — passed.
  • Earlier adjacent validation passed 91 server pagination/route tests and 26 DB query-plan tests; the boundary lookup uses the existing thread/type/sequence index.

Fixes: no linked issue.

AGENT GENERATED

@ymichael ymichael changed the title Keep late thinking details expandable on older pages Keep older timeline details expandable after late completions Sep 8, 2026
@ymichael
ymichael force-pushed the bb/fixer-keep-late-thinking-details-expandable-on-o-thr_qtzru86rhh branch from d989d88 to 34ccca6 Compare September 8, 2026 22:33
@ymichael
ymichael merged commit a57f0f5 into main Sep 8, 2026
16 checks passed
@ymichael
ymichael deleted the bb/fixer-keep-late-thinking-details-expandable-on-o-thr_qtzru86rhh branch September 8, 2026 22:37
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