feat(ag-ui): add interrupt durability and align adapter resume retry - #1072
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
blove
enabled auto-merge (squash)
September 8, 2026 20:40
Contributor
Contributor
Contributor
Contributor
Contributor
Contributor
Contributor
Contributor
Contributor
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.
Interrupt resumes now retain the exact decision and associated input for retry. LangGraph preserves valid null-payload resume commands; AG-UI owns the complete pending batch, validates claims, rolls failed protocol state back, and supports optional atomic persistence and authoritative reconciliation.
AG-UI now rejects bare resumes and unrelated input while an interrupt is unresolved. Native batches take precedence in auto mode; explicit compatibility profiles preserve command-based backends. Provider disposal and stale-callback guards prevent completed lifetimes from changing state. Migration guidance and generated API documentation are included.
Validation: 1,998 tests passed across chat, LangGraph, and AG-UI; type checks and production library builds passed; lint passed with warnings. Shared conformance covers combined input, intentional retry, restoration, and disposal. Real-client tests cover durable claims, reconciliation, restored tool identity, and replacement batches. AG-UI interrupt and streaming consumer builds also passed under their non-strict TypeScript configuration. Local Chrome MCP smoke passed against the repository fixture backend: normal chat, approval pause, resume producing the approved tool result and a replacement pending batch, and blocked Enter preserving the composer draft with no extra request or browser console errors. The smoke test exposed an enabled composer during pauses; the follow-up adds an optional input-blocked signal and covers hydration as well.
Packaged consumers now require AG-UI SDK 0.0.59 for the interrupt schema exports. Fresh Angular 20, 21, and 22 packaged consumer production builds and all 44 smoke-generator / Angular-support tests passed. Angular 20 and 21 runtime compatibility checks passed locally. The smoke scaffold loads its compatibility probes in a separate chunk, preserving all runtime assertions while keeping the initial bundle below the unchanged 2 MB budget.
The Mastra example now reads retained compatibility details from the interrupt session and explicitly selects its command transport. All five Mastra end-to-end tests passed locally, including campsite details and approval/resume.
Durable storage, backend reconciliation, and server-side idempotency remain application responsibilities.