Repository navigation
feat(collaboration): queue worker completion reports - #2654
Merged
Merged
Conversation
Persist bounded completion receipts and deliver them to parent sessions as one durable input. Keep source provenance and permission ceilings across dispatch and restart.
Deploying pi-desktop with
|
| Latest commit: |
411797c
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://32be53c4.pi-desktop.pages.dev |
| Branch Preview URL: | https://feat-queued-collaboration-re.pi-desktop.pages.dev |
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
Queue worker completion reports so a subagent that finishes while the owner
session is mid-turn is delivered as a settled transcript message instead of
being dropped or interleaved into the running turn.
Why
A delegated worker can settle during an owner turn. Previously the completion
report could arrive out of order, be lost on owner restart, or interleave into
the active turn's message stream. This change makes settlement durable and
ordered:
session_turn_admission)so a report is either admitted into the next turn or persisted as pending.
TurnQueue; completion reports waiting on an owner turnare queued and flushed in settlement order.
report_text) and projected as anormal transcript message with collaboration provenance.
Validation
pnpm build:jspasspnpm --filter @pi-desktop/desktop typecheckpasspackages/agent-hosttests 70/70packages/host-runtimetests 192 passed / 3 skippednode --testfocused: queued-turn-finalization, session-collaboration-service,session-message-input, session-message-presentation
cargo test -p host-core --lockedpassgit diff --checkcleanRebased onto
origin/main@325167720.Spec / ADR
docs/adr/0239-session-collaboration-messages.mddocs/spec/03-runtime/0{1,2,4,6}-*.mddocs/spec/06-delivery/e2e/conversation.mddocs/spec/07-plugins/03-plugin-api.md