Fix Pi process notification turns - #1682
Draft
ryanbbrown wants to merge 2 commits into
Draft
Conversation
ryanbbrown
force-pushed
the
bb/fix-unreliable-pi-process-wake-thr_ckq2fgshmf
branch
from
August 17, 2026 23:55
930fb12 to
53ae256
Compare
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.
Depends on #1663. This branch is stacked on that focused
agent_endfix; commit53ae25671contains the process-notification follow-up.What changed
ad-process:notificationmessages into visible turn inputattention: "turn"message_endenvelopes to prevent duplicate outputcontextand allignorenotifications from opening or changing turnsRoot cause
Pi already invoked the provider for the recorded notification. bb did not recognize the custom SDK message envelopes, so it stored them as
provider/unhandled. Pi could then finish with no projected input and no visible assistant output.Fixes #1681
Validation
pnpm exec turbo run test --filter=@bb/agent-runtime --forcepnpm exec turbo run typecheck --filter=@bb/agent-runtime --forcegit diff --checkpassedA live Pi extension run was not repeated after porting this change to the new event translator.