Skip to content

fix(a2a): suppress cancellation after final event - #2940

Open
wmh123wmh1 wants to merge 2 commits into
agentscope-ai:mainfrom
wmh123wmh1:fix/a2a-streaming-cancellation-2927
Open

fix(a2a): suppress cancellation after final event#2940
wmh123wmh1 wants to merge 2 commits into
agentscope-ai:mainfrom
wmh123wmh1:fix/a2a-streaming-cancellation-2927

Conversation

@wmh123wmh1

Copy link
Copy Markdown
Contributor

Summary

  • Keep a2a-java-sdk 0.3.3.Final and A2A Protocol v0.3 compatibility.
  • Wrap the default JSON-RPC HTTP client to suppress the internal CancellationException emitted after a final status update.
  • Continue forwarding cancellations received before a final event and real transport errors.
  • Add regression tests for the callback behavior.

Testing

  • mvn -pl agentscope-extensions/agentscope-extensions-protocol/agentscope-extensions-a2a/agentscope-extensions-a2a-client -am test

Fixes #2927

@codecov

codecov Bot commented Sep 2, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@dailingtao dailingtao left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

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.

[Bug]:JSON-RPC streaming client reports "Request cancelled" after receiving final TaskStatusUpdateEvent

2 participants