Skip to content

feat(ag-ui): customEvents signal for live a2ui streaming parity#606

Merged
blove merged 6 commits into
mainfrom
claude/ag-ui-custom-events-signal
Jun 7, 2026
Merged

feat(ag-ui): customEvents signal for live a2ui streaming parity#606
blove merged 6 commits into
mainfrom
claude/ag-ui-custom-events-signal

Conversation

@blove
Copy link
Copy Markdown
Contributor

@blove blove commented Jun 7, 2026

Summary

Adds a customEvents signal to the @threadplane/ag-ui adapter, closing the one gap that prevented live/progressive a2ui streaming over AG-UI (found via the examples/ag-ui spike).

  • Reducer accumulates every non-on_interrupt CUSTOM event as {name, data} into a new store signal; resets on RUN_STARTED.
  • toAgent exposes it (return type widened to AgUiAgent, mirroring langgraph's LangGraphAgent). chat.component.ts already feature-detects agent.customEvents() — no chat changes.
  • New public exports: AgUiAgent, CustomStreamEvent.
  • Docs: regenerated ag-ui API reference + architecture note.

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-ui design (docs/superpowers/specs/2026-06-06-examples-ag-ui-standalone-design.md); also includes the spec + plan docs.

Test plan

  • Unit: reducer accumulation / reset / JSON-parse / on_interrupt-exclusion; toAgent exposure. nx test ag-ui + nx build ag-ui green.
  • CI green.

🤖 Generated with Claude Code

blove and others added 5 commits June 6, 2026 18:45
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>
@vercel
Copy link
Copy Markdown

vercel Bot commented Jun 7, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
threadplane Ready Ready Preview, Comment Jun 7, 2026 2:47am

Request Review

@blove blove merged commit 521168f into main Jun 7, 2026
18 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.

1 participant