Skip to content

fix(chat): keep rendering session history when an A2A event has no content - #524

Open
yourlogarithm wants to merge 1 commit into
google:mainfrom
yourlogarithm:fix/a2a-event-without-content
Open

fix(chat): keep rendering session history when an A2A event has no content#524
yourlogarithm wants to merge 1 commit into
google:mainfrom
yourlogarithm:fix/a2a-event-without-content

Conversation

@yourlogarithm

Copy link
Copy Markdown

An A2A event carrying a2a:response metadata but no content made buildUiEventFromEvent throw. On session load the events are replayed in a bare forEach, so the throw aborted the replay and every event after that one was missing from the reloaded UI. Live streaming was unaffected, because that call site catches.

Default the parts to an empty array, as the streaming path already does.

Fixes #523

@google-cla

google-cla Bot commented Sep 4, 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.

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.

Session history stops rendering at the first A2A event without content

1 participant