Skip to content

Fix main: add parentToolCallId to conversation-outline-parity event inserts - #1980

Closed
SawyerHood wants to merge 1 commit into
mainfrom
fix/outline-parity-parent-tool-call-id
Closed

SawyerHood wants to merge 1 commit into
mainfrom
fix/outline-parity-parent-tool-call-id

Conversation

@SawyerHood

Copy link
Copy Markdown
Collaborator

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 test/services/threads/conversation-outline-parity.test.ts inserts events without the field. Typecheck reports TS2741 on six literals, and the SQLite insert fails with near ",": syntax error.

What changed

apps/server/test/services/threads/conversation-outline-parity.test.ts: parentToolCallId: null on each of the six event literals. No product code changes.

How you verified

  • pnpm exec turbo run typecheck --filter=@bb/server passes.
  • pnpm exec turbo run test --filter=@bb/server -- test/services/threads/conversation-outline-parity.test.ts passes (it fails on main).
  • Main runs 32314735170 and 32314935793 show the failure.

AGENT GENERATED: by Claude Opus 5

…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]>
@bb-slop-cop

bb-slop-cop Bot commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

🚨 SLOP COP 🚨 · review

I am SlopCop. I am reviewing this pull request for security, code quality, performance, tests, and duplicate architecture.

@SawyerHood

Copy link
Copy Markdown
Collaborator Author

Superseded by #1981, which reverts #1657 instead of forward-fixing the test.

@SawyerHood SawyerHood closed this Aug 20, 2026
@SawyerHood
SawyerHood deleted the fix/outline-parity-parent-tool-call-id branch August 20, 2026 00:05

@bb-slop-cop bb-slop-cop Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚨 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
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