Skip to content

fix(a2a): report non-terminal stream truncation - #6591

Open
daleselaji-dev wants to merge 1 commit into
google:mainfrom
daleselaji-dev:codex/report-adk-nonterminal-stream
Open

fix(a2a): report non-terminal stream truncation#6591
daleselaji-dev wants to merge 1 commit into
google:mainfrom
daleselaji-dev:codex/report-adk-nonterminal-stream

Conversation

@daleselaji-dev

Copy link
Copy Markdown

Summary

RemoteA2aAgent currently treats a cleanly closed A2A stream as success even when the last task status is still non-terminal. Track the last task and emit an explicit error event when the stream ends in a working or submitted state.

This preserves already-yielded events while making truncated remote invocations observable to consumers. Terminal completed, failed, and canceled states remain unchanged.

Validation

  • uv run --extra test pytest tests/unittests/agents/test_remote_a2a_agent.py -q (155 passed)
  • Ruff check passed for the changed production file
  • git diff --check

Fixes #6585

@google-cla

google-cla Bot commented Aug 5, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@adk-bot adk-bot added the core [Component] This issue is related to the core interface and implementation label Aug 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core [Component] This issue is related to the core interface and implementation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RemoteA2aAgent ends the invocation silently when the A2A stream stops before a terminal task state

3 participants