Skip to content

Add JSON-RPC task method compatibility#363

Merged
chubes4 merged 1 commit into
mainfrom
fix/jsonrpc-task-compat
Jun 23, 2026
Merged

Add JSON-RPC task method compatibility#363
chubes4 merged 1 commit into
mainfrom
fix/jsonrpc-task-compat

Conversation

@chubes4

@chubes4 chubes4 commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Accept legacy Agent Protocol task method names as aliases for the JSON-RPC chat adapter: tasks/send and tasks/sendSubscribe.
  • Preserve top-level tokenStreaming from JSON-RPC requests in the canonical chat input.
  • Extract clientContext from Agent Protocol data message parts into canonical chat client context.
  • Extend pure-PHP smoke coverage for aliases, data-part context, token streaming, and sync dispatch.

Verification

  • composer test
  • homeboy deps install agents-api
  • homeboy lint agents-api

AI assistance

  • AI assistance: Yes
  • Tool(s): openai/gpt-5.5 via OpenCode
  • Used for: Implementing the generic JSON-RPC compatibility patch, adding smoke coverage, and running verification.

@chubes4 chubes4 merged commit cfa5e1d into main Jun 23, 2026
2 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.

1 participant