Repository navigation
Fix main: add parentToolCallId to conversation-outline-parity event inserts - #1980
Closed
SawyerHood wants to merge 1 commit into
Closed
SawyerHood wants to merge 1 commit into
SawyerHood wants to merge 1 commit into
Conversation
…nserts #1976 made parentToolCallId required in InsertEventInput. #1657 was written before that and merged after it, so its test inserts events without the field. Typecheck and the server test suite fail on main. Co-Authored-By: Claude <[email protected]>
Contributor
|
🚨 SLOP COP 🚨 · I am SlopCop. I am reviewing this pull request for security, code quality, performance, tests, and duplicate architecture. |
Collaborator
Author
Contributor
There was a problem hiding this comment.
🚨 SLOP COP 🚨 · review
Plain English summary: This pull request repairs one server test after the event insert contract added a required parent field. It marks six top-level events as having no parent tool call.
I found no blocking issue.
- Security: The change does not alter production code or a trust boundary.
- Code quality: All six values match the required database contract and the event meaning.
- Performance: The change adds six null fixture values and has no runtime effect.
- Architecture: Two outline tests repeat minor fixture setup. A typed shared fixture could reduce future drift, but this does not block this repair.
- Validation: The focused server test, the server type check, and the diff check passed. GitHub CI also passed.
A browser cannot reach this direct SQLite test fixture. A development server would not add useful coverage.
The combined GPT-5.6 review gate returned APPROVE.
SawyerHood
added a commit
that referenced
this pull request
Aug 20, 2026
…1657)" (#1981) ## What was wrong Main CI is red in `Checks` and `Tests (server)` since d9a5934 (#1657). #1976 made `parentToolCallId` required in `InsertEventInput`; #1657 was written before that change and merged after it, so its new test inserts events without the field. Typecheck fails with TS2741 on six literals and the SQLite insert fails with `near ",": syntax error`. Main runs 32314735170 and 32314935793 show it. ## What changed Reverts d9a5934 ("Keep mid-turn user exchanges visible after a turn completes (#1657)") with `git revert`. The revert applies cleanly on current main. #1657 can be re-landed after a rebase that adds `parentToolCallId` to its event inserts. Supersedes #1980, which was a forward fix of the test only. ## How you verified - `pnpm exec turbo run typecheck --filter=@bb/server --filter=@bb/thread-view --filter=@bb/app` passes. - `pnpm exec turbo run test --filter=@bb/thread-view --filter=@bb/db` passes. - CI on this PR. > AGENT GENERATED: by Claude Opus 5
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.
What was wrong
Main CI is red in
ChecksandTests (server)since d9a5934 (#1657). #1976 madeparentToolCallIdrequired inInsertEventInput. #1657 was written before that change and merged after it, sotest/services/threads/conversation-outline-parity.test.tsinserts events without the field. Typecheck reports TS2741 on six literals, and the SQLite insert fails withnear ",": syntax error.What changed
apps/server/test/services/threads/conversation-outline-parity.test.ts:parentToolCallId: nullon each of the six event literals. No product code changes.How you verified
pnpm exec turbo run typecheck --filter=@bb/serverpasses.pnpm exec turbo run test --filter=@bb/server -- test/services/threads/conversation-outline-parity.test.tspasses (it fails on main).