8000 fix(chat): route A2UI button actions to the agent by huong8373tt-beep · Pull Request #558 · google/adk-web · GitHub
[go: up one dir, main page]

Skip to content

fix(chat): route A2UI button actions to the agent - #558

Open
huong8373tt-beep wants to merge 1 commit into
google:mainfrom
huong8373tt-beep:fix/route-a2ui-actions-557
Open

huong8373tt-beep wants to merge 1 commit into
google:mainfrom
huong8373tt-beep:fix/route-a2ui-actions-557

Conversation

@huong8373tt-beep
Copy link
Copy Markdown

Summary

Fixes #557.

A2UI v0.8 button actions were dispatched by MessageProcessor, but adk-web did not subscribe to its events. As a result, the action was dropped and the dispatch promise never settled.

This change subscribes once from ChatComponent, serializes each userAction as a user turn through the existing sendMessage() / /run_sse path, completes the A2UI dispatch only after the turn is accepted, propagates send failures to the dispatch completion, and unsubscribes during component destruction.

Validation

  • npm run build — passed
  • Focused chat.component.spec.ts — 134 tests passed; the Windows Karma/ChromeHeadless process did not exit cleanly after reporting success, so the outer job had to be cancelled.
  • git diff --check — passed

Disclosure

Slai Agent Runtime performed the investigation, implementation, and test execution. The account owner authorized this contribution and is responsible for its content.

Generated with AI assistance and refined through human review.

@huong8373tt-beep
Copy link
Copy Markdown
Author

Slai Agent Runtime performed the investigation, implementation, and test execution. The account owner authorized this contribution and is responsible for its content.

Generated with AI assistance and refined through human review.

@huong8373tt-beep
Copy link
Copy Markdown
Author

The implementation and focused regression test are complete and the PR is ready for maintainer review. The remaining Angular Tests workflow is currently waiting for repository-side action approval; no code or test failure has been reported.

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.

A2UI button actions are dropped: nothing subscribes to MessageProcessor.events

1 participant

0