Skip to content

reducers: propagate tool call action metadata#211

Merged
connor4312 merged 1 commit into
mainfrom
connor4312/toolcall-meta-reducer
Jun 9, 2026
Merged

reducers: propagate tool call action metadata#211
connor4312 merged 1 commit into
mainfrom
connor4312/toolcall-meta-reducer

Conversation

@connor4312

Copy link
Copy Markdown
Member
  • Ensures provider metadata stays synchronized when tool calls move through later lifecycle actions, which lets clients render updated tool-call UI context beyond the initial start event.
  • Extends reducer parity coverage so each tool-call-scoped action that carries metadata is exercised across implementations.
  • Updates the language client reducers and changelogs so generated packages document and preserve the same protocol behavior.

(Commit message generated by Copilot)

- Ensures provider metadata stays synchronized when tool calls move through later lifecycle actions, which lets clients render updated tool-call UI context beyond the initial start event.
- Extends reducer parity coverage so each tool-call-scoped action that carries metadata is exercised across implementations.
- Updates the language client reducers and changelogs so generated packages document and preserve the same protocol behavior.

(Commit message generated by Copilot)
@connor4312 connor4312 enabled auto-merge (squash) June 9, 2026 21:55
@connor4312 connor4312 merged commit 4790353 into main Jun 9, 2026
8 checks passed
@connor4312 connor4312 deleted the connor4312/toolcall-meta-reducer branch June 9, 2026 22:05
sandy081 added a commit that referenced this pull request Jun 10, 2026
The rebased tool-call metadata change reintroduced an explicit
`List<Annotation>` type on the annotationsRemoved reducer branch, which
resolved to `kotlin.Annotation` instead of the generated type and broke
`compileKotlin`. Drop the explicit annotation so the element type is
inferred from `state.annotations`, matching the sibling branches.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
joshmouch added a commit to joshmouch/agent-host-protocol that referenced this pull request Jun 10, 2026
Adopt the shared round-trip corpus's input/acceptableOutputs format and fix the
wire-fidelity drift it surfaces, plus propagate tool-call action metadata.

- TypesRoundTripFixtures: decode each fixture's `input` into the real generated
  type, re-encode, and assert structural equality with the single canonical
  acceptableOutputs[0] (key-order-independent, key-presence-sensitive). Add a
  standalone ProtocolVersionConstants test in place of the removed 021-023.
- generate-csharp.ts: ChangesetOperationRangeTarget.Range is now the canonical
  TextRange (was a flat {Start,End} pair); ActionEnvelope.Origin omits when
  absent instead of serializing null. Regenerated.
- Reducers: the six tool-call lifecycle handlers propagate the action's _meta
  onto the tool-call state (parity with upstream microsoft#211).

320/320 tests pass on net8.0 and net9.0.
joshmouch added a commit to joshmouch/agent-host-protocol that referenced this pull request Jun 10, 2026
Adopt the shared round-trip corpus's input/acceptableOutputs format and fix the
wire-fidelity drift it surfaces, plus propagate tool-call action metadata.

- TypesRoundTripFixtures: decode each fixture's `input` into the real generated
  type, re-encode, and assert structural equality with the single canonical
  acceptableOutputs[0] (key-order-independent, key-presence-sensitive). Add a
  standalone ProtocolVersionConstants test in place of the removed 021-023.
- generate-csharp.ts: ChangesetOperationRangeTarget.Range is now the canonical
  TextRange (was a flat {Start,End} pair); ActionEnvelope.Origin omits when
  absent instead of serializing null. Regenerated.
- Reducers: the six tool-call lifecycle handlers propagate the action's _meta
  onto the tool-call state (parity with upstream microsoft#211).

320/320 tests pass on net8.0 and net9.0.
joshmouch added a commit to joshmouch/agent-host-protocol that referenced this pull request Jun 10, 2026
Adopt the shared round-trip corpus's input/acceptableOutputs format and fix the
wire-fidelity drift it surfaces, plus propagate tool-call action metadata.

- TypesRoundTripFixtures: decode each fixture's `input` into the real generated
  type, re-encode, and assert structural equality with the single canonical
  acceptableOutputs[0] (key-order-independent, key-presence-sensitive). Add a
  standalone ProtocolVersionConstants test in place of the removed 021-023.
- generate-csharp.ts: ChangesetOperationRangeTarget.Range is now the canonical
  TextRange (was a flat {Start,End} pair); ActionEnvelope.Origin omits when
  absent instead of serializing null. Regenerated.
- Reducers: the six tool-call lifecycle handlers propagate the action's _meta
  onto the tool-call state (parity with upstream microsoft#211).

320/320 tests pass on net8.0 and net9.0.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants