Skip to content

feat(core): emit canonical dynamic tool call items#31298

Merged
owenlin0 merged 1 commit into
mainfrom
owen/canonical-dynamic-tool-call-items
Jul 7, 2026
Merged

feat(core): emit canonical dynamic tool call items#31298
owenlin0 merged 1 commit into
mainfrom
owen/canonical-dynamic-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 dynamic tools emit canonical TurnItem::DynamicToolCall lifecycle instead of DynamicToolCallRequest / DynamicToolCallResponse directly.

App-server v2 now sends the client DynamicToolCall request from the canonical item start. It ignores the mapped legacy request/response events, so clients receive one item start and one tool request.

Why

Dynamic tools are a separate migration boundary because their start event also drives a client request. Keeping that routing change isolated makes it easier to verify that the request still happens exactly once.

What changed

  • Emit in-progress and completed/failed dynamic tool items from the dynamic tool handler.
  • Move app-server client request dispatch onto canonical dynamic item starts.
  • Add focused app-server coverage for the canonical start notification and client request.

@owenlin0 owenlin0 force-pushed the owen/canonical-dynamic-tool-call-items branch 2 times, most recently from aac2b79 to 1661367 Compare July 7, 2026 03:54
@owenlin0 owenlin0 force-pushed the owen/canonical-command-execution-items branch from 16ac27f to 1ec93f2 Compare July 7, 2026 03:54
Base automatically changed from owen/canonical-command-execution-items to main July 7, 2026 04:22
@owenlin0 owenlin0 force-pushed the owen/canonical-dynamic-tool-call-items branch from 1661367 to 9036b0a Compare July 7, 2026 04:31
@owenlin0 owenlin0 merged commit f659eb1 into main Jul 7, 2026
64 of 66 checks passed
@owenlin0 owenlin0 deleted the owen/canonical-dynamic-tool-call-items branch July 7, 2026 15:32
@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.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants