feat(ag-ui): customEvents signal for live a2ui streaming parity#606
Merged
Conversation
Peer to examples/chat over the AG-UI transport. Three sequenced parts: (1) add customEvents signal to @threadplane/ag-ui (closes the one live- a2ui-streaming gap; valuable beyond the example) + docs; (2) the examples/ag-ui app/python/smoke with full feature parity; (3) deploy via a dedicated Railway service + ag-ui-demo.threadplane.ai. Feasibility resolved by static spike: everything above the neutral Agent contract is transport-agnostic; only the customEvents signal is missing. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…ts store signal Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…ve a2ui streaming Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…n API reference Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a
customEventssignal to the@threadplane/ag-uiadapter, closing the one gap that prevented live/progressive a2ui streaming over AG-UI (found via the examples/ag-ui spike).on_interruptCUSTOMevent as{name, data}into a new store signal; resets onRUN_STARTED.toAgentexposes it (return type widened toAgUiAgent, mirroring langgraph'sLangGraphAgent).chat.component.tsalready feature-detectsagent.customEvents()— no chat changes.AgUiAgent,CustomStreamEvent.Without this, a2ui renders from the final tool-call surface (fallback); with it, surfaces build up token-by-token. Part 1 of the
examples/ag-uidesign (docs/superpowers/specs/2026-06-06-examples-ag-ui-standalone-design.md); also includes the spec + plan docs.Test plan
toAgentexposure.nx test ag-ui+nx build ag-uigreen.🤖 Generated with Claude Code