Repository navigation
Conversation
ymichael
deleted the
bb/timeline-turn-details-400-for-card-only-summary-thr_z7wyhc6tv9
branch
October 9, 2026 06:08
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
Resolving a plugin input card during a running turn and then steering that turn can produce a “Worked for …” group containing only thread-scoped interaction lifecycle events. The shared timeline projection assigns these events to the running turn, but the server's details endpoint required an explicitly turn-scoped event in the range. Expanding the group therefore returned 400 “range X-Y does not include turn T”.
What changed
Use the shared thread-view projection's turn bounds to validate detail ranges, removing the server's separate scope-only check. Load turn start and completion context so the projection assigns interactions to the correct running turn and rejects ranges belonging to another turn. Unmatched ranges return an invalid-request response.
How you verified
Added a public API regression that obtains the interaction-only summary range from the timeline response and expands it through the details endpoint. It failed with 400 before the fix and passes after. Added rejection cases for another turn's work, a standalone thread event, and an interaction during another turn; the interaction case also exposed missing lifecycle context before that repair.
Passed:
pnpm exec turbo run test --filter=@bb/server -- test/public/public-thread-timeline-turn-details.test.ts test/public/public-thread-data.test.ts test/public/public-thread-timeline-completed-turn-display.test.ts test/public/public-thread-timeline-output-preview.test.ts— 91 tests.pnpm exec turbo run test --filter=@bb/thread-view— 464 tests.pnpm exec turbo run typecheck --filter=@bb/server --filter=@bb/thread-view.git diff --check.