8000 fix(chat): keep rendering session history when an A2A event has no content by yourlogarithm · Pull Request #524 · google/adk-web · GitHub
[go: up one dir, main page]

Skip to content

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

Merged
copybara-service[bot] merged 1 commit into
google:mainfrom
yourlogarithm:fix/a2a-event-without-content
Sep 25, 2026
Merged

copybara-service[bot] merged 1 commit into
google:mainfrom
yourlogarithm:fix/a2a-event-without-content

Conversation

@yourlogarithm
Copy link
Copy Markdown
Contributor

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.

@yourlogarithm yourlogarithm reopened this Sep 4, 2026
@copybara-service
copybara-service Bot merged commit 05e2266 into google:main Sep 25, 2026
11 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.

Session history stops rendering at the first A2A event without content

1 participant

0