Fix/ag UI full int - #51
Merged
Merged
Conversation
NtTestAlert
approved these changes
Jul 14, 2026
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.
What does this PR do?
Extends the
@mobile-reality/mdma-aguibridge from "render streamed MDMA" into a full AG-UIintegration: out-of-band document delivery (
CUSTOMevents), an agentic activity feed,interrupt-based resume, and shared-state hydration. Adds a runnable end-to-end example
(OpenRouter backend + React frontend) and updates the AG-UI docs section.
Type of Change
—
resumeModedefaults to'auto': a user decision now resolves a matching AG-UI interruptinstead of always opening a fresh user turn. Pass
resumeMode: 'user-turn'to restore.Packages Affected
@mobile-reality/mdma-agui@mobile-reality/mdma-spec@mobile-reality/mdma-parser@mobile-reality/mdma-runtime@mobile-reality/mdma-attachables-core@mobile-reality/mdma-renderer-react@mobile-reality/mdma-prompt-packChecklist
pnpm formatandpnpm lintpass).pnpm test) — 36/36 inmdma-agui.pnpm typecheck).minor→mdma-agui0.2.0→0.3.0.How to Test
cd examples/integrations/ag-ui && cp .env.example .env— add anOPENROUTER_API_KEY.pnpm backend(→ :8787) andpnpm dev(→ :5188) in two terminals.the agent renders a form, fills it from your description, and "set severity to high"
updates that one field in place — no duplicate form.
pnpm verify— asserts value changes route toset_statewith zero re-renders, whilestructural changes ("add a phone field") still re-render via
generate_mdma.