Skip to content

Accept typed chat continuations - #515

Merged
chubes4 merged 1 commit into
mainfrom
fix/514-chat-tool-result-input
Aug 22, 2026
Merged

Accept typed chat continuations#515
chubes4 merged 1 commit into
mainfrom
fix/514-chat-tool-result-input

Conversation

@chubes4

@chubes4 chubes4 commented Aug 22, 2026

Copy link
Copy Markdown
Contributor

Summary

  • accept canonical typed tool call/result continuations without requiring synthetic user text
  • map paired A2A data parts into canonical message envelopes while rejecting duplicate, orphaned, or mismatched pairs
  • constrain typed input to paired tool messages so callers cannot inject arbitrary policy or assistant roles

Fixes #514.

Verification

  • composer smoke
  • composer phpstan
  • composer validate --strict
  • git diff --check

AI assistance

OpenCode with openai/gpt-5.6-sol was used to trace the WPCOM continuation contract, implement the generic mapping and validation, and run deterministic verification. Chris Huber directed the work and is responsible for every line.

@chubes4
chubes4 merged commit 351035f into main Aug 22, 2026
4 checks passed
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.

Accept canonical tool-result input for chat continuation

1 participant