Skip to content

feat(core): emit canonical collab tool call items#31300

Merged
owenlin0 merged 3 commits into
mainfrom
owen/canonical-collab-tool-call-items
Jul 7, 2026
Merged

feat(core): emit canonical collab tool call items#31300
owenlin0 merged 3 commits into
mainfrom
owen/canonical-collab-tool-call-items

Conversation

@owenlin0

@owenlin0 owenlin0 commented Jul 6, 2026

Copy link
Copy Markdown
Collaborator

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

Description

This PR makes the non-wait v1 collaboration tools—spawn, send input, resume, and close—emit canonical TurnItem::CollabAgentToolCall lifecycle instead of their legacy begin/end events directly.

App-server v2 consumes the canonical collab items directly, ignores the mapped legacy events, and applies close-agent thread-watch cleanup from the completed item.

Why

These four tools share the same single-target lifecycle shape. Wait stays separate because it carries multi-target status snapshots and has its own status-shaping cleanup.

What changed

  • Add shared helpers for emitting canonical collab tool-call lifecycle.
  • Migrate spawn, send input, resume, and close handlers.
  • Move close-agent watcher cleanup onto canonical completed collab items.

.await;
}

pub(crate) async fn emit_collab_tool_call_completed(

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

nit: inline?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

and above

Base automatically changed from owen/canonical-sub-agent-activity-items to main July 7, 2026 19:57
@owenlin0 owenlin0 force-pushed the owen/canonical-collab-tool-call-items branch from 760638f to a4f6c62 Compare July 7, 2026 20:05
@owenlin0 owenlin0 merged commit 058d97c into main Jul 7, 2026
35 checks passed
@owenlin0 owenlin0 deleted the owen/canonical-collab-tool-call-items branch July 7, 2026 20:36
@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