Skip to content

Suppress redundant thread-start lifecycle settlement logs - #3079

Closed
bb-slop-cop[bot] wants to merge 1 commit into
mainfrom
slopcop/issue-3077
Closed

bb-slop-cop[bot] wants to merge 1 commit into
mainfrom
slopcop/issue-3077

Conversation

@bb-slop-cop

@bb-slop-cop bb-slop-cop Bot commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Human comments

What was wrong

A root provider turn-start event and the successful host thread-start RPC are independent startup signals. The event path already suppresses its signal when the RPC settlement won the race, but the settlement path did not suppress the inverse ordering, so it tried to apply run.started after the thread was already active and logged an illegal-transition no-op. The direct reproduction and root-cause report is https://get-bb.github.io/reports/issues/3077.html.

What changed

The thread-start settlement now recognizes a clean active thread as already settled before applying run.started, mirroring the event-side guard. A focused server regression test drives the provider-event-first ordering and verifies that the thread stays active without the redundant lifecycle log. This changes 68 text lines across two server thread-lifecycle files (62 additions, 6 deletions) and does not change the host-daemon protocol, public API, schema, storage, dependencies, or generated files.

How you verified

  • Before the production change, pnpm exec turbo run test --filter=@bb/server -- --run test/threads/thread-live-start-handoff.test.ts failed only the new regression test and captured the run.started / active illegal-transition log.
  • After the production change, the same focused suite passed all 8 tests.
  • pnpm exec turbo run test --filter=@bb/server -- --run test/internal/internal-events-tool-calls.test.ts test/services/threads/lifecycle-outcome.test.ts passed all 29 tests.
  • pnpm exec turbo run typecheck --filter=@bb/server passed.
  • git diff --check passed; the outgoing EAP codename scan was clean.

Fixes #3077

AGENT GENERATED

@bb-slop-cop bb-slop-cop Bot mentioned this pull request Sep 4, 2026
2 of 3 tasks
@SawyerHood SawyerHood closed this Sep 5, 2026
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.

illegal transistion

1 participant