Skip to content

fix: keep the polling error cause in the --stream fallback - #80

Merged
yarolegovich merged 2 commits into
a2aproject:mainfrom
ConnorMoss02:fix/polling-stream-error-cause
Sep 29, 2026
Merged

yarolegovich merged 2 commits into
a2aproject:mainfrom
ConnorMoss02:fix/polling-stream-error-cause

Conversation

@ConnorMoss02

Copy link
Copy Markdown
Contributor

When --stream fell back to polling and polling failed, the error dropped its cause and returned A2ACLI_ERR_INTERNAL. It now wraps the last error like WaitForTask does, so an A2A error like task not found returns A2ACLI_ERR_PROTOCOL with its a2aCode.

Fixes #78

@yarolegovich
yarolegovich merged commit 4e9651c into a2aproject:main Sep 29, 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.

bug: --stream polling fallback drops the error cause, reports internal instead of protocol

2 participants