Skip to content

feat(core): emit canonical collab wait items - #31301

Merged
owenlin0 merged 1 commit into
mainfrom
owen/canonical-collab-wait-items
Jul 7, 2026
Merged

feat(core): emit canonical collab wait items#31301
owenlin0 merged 1 commit into
mainfrom
owen/canonical-collab-wait-items

Conversation

@owenlin0

@owenlin0 owenlin0 commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

This PR depends on #31296 for the canonical-to-legacy event mappings.

Description

This PR makes the v1 and v2 wait paths emit canonical TurnItem::CollabAgentToolCall lifecycle instead of CollabWaitingBegin / CollabWaitingEnd directly.

Both paths already used the same legacy waiting events before this PR. The v1 item carries receiver metadata and final agent statuses for its target agents; v2 waits for mailbox activity rather than specific agents, so it keeps those fields empty, matching the existing v2 legacy payload.

App-server v2 consumes the canonical item directly and ignores the mapped legacy wait events.

Why

Wait is separate from the other collab tools because it is multi-target and has distinct timeout/status behavior. Keeping it last also lets this PR remove the old helper that only existed to shape legacy wait status entries in core.

What changed

  • Emit canonical collab wait items from both v1 and v2 wait handlers.
  • Preserve receiver metadata and agent status snapshots on completed wait items.
  • Remove the old core helper for building legacy wait status entries.

Follow-up

The next stack PR, #30188, writes canonical TurnItem values to paginated rollout files.

@owenlin0
owenlin0 force-pushed the owen/canonical-collab-tool-call-items branch from 760638f to a4f6c62 Compare July 7, 2026 20:05
@owenlin0
owenlin0 force-pushed the owen/canonical-collab-wait-items branch 3 times, most recently from 2b0d949 to 0a7db2f Compare July 7, 2026 20:21
Base automatically changed from owen/canonical-collab-tool-call-items to main July 7, 2026 20:36
@owenlin0
owenlin0 force-pushed the owen/canonical-collab-wait-items branch from 0a7db2f to 252ff86 Compare July 7, 2026 20:39
@owenlin0
owenlin0 enabled auto-merge (squash) July 7, 2026 20:47
@owenlin0
owenlin0 merged commit 6b48825 into main Jul 7, 2026
64 of 66 checks passed
@owenlin0
owenlin0 deleted the owen/canonical-collab-wait-items branch July 7, 2026 20:59
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 7, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants