FrameworksOfficial

AG-UI 1.0.5 fixes overlapping-stream order and brings resumable approvals to Cloudflare Durable Objects

AG-UI released client, core, encoder, and proto 1.0.5 on November 17 alongside the first @ag-ui/cloudflare-agents 0.1.0. The client rewrites compactEvents ordering and snapshot boundaries for overlapping streams, preventing swapped parallel tool calls, deltas overwritten by mid-stream snapshots, and invalid step-event order. The Cloudflare adapter hosts each thread in a Durable Object over SSE or WebSocket and maps AI SDK tool approvals to persisted, resumable interrupts.

Why it matters

Streaming generative UI is correct only when event order, compacted history, and recovery state agree. Rendering fixes alone cannot prevent parallel tool results from being attached to the wrong call; persistence alone cannot ensure a resumed approval targets its original invocation. This release aligns client replay boundaries with approval, pause, and state ownership in an edge runtime, producing a more inspectable end-to-end path.

A closer look

Client 1.0.5 preserves inter-stream arrival order and snapshot boundaries so STEP_STARTED and STEP_FINISHED remain valid, compacts reasoning deltas like text, indexes MessageLookup for large histories, retains resolvingPeerCeiling in clones, and rejects missing, non-string, or inherited discriminators in tagged unions. Cloudflare 0.1.0 uses withAGUI(Agent) to serve one thread from a shared-state Durable Object. streamTextOptions carries instructions, messages, client tools, and abort signals while exposing the original request for auth and tracing. The adapter round-trips reasoning and provider data through encryptedValue, persists pending approvals, rejects resumes for nonexistent calls, and executes an approved tool at most once within the adapter. Client tools stay client-side, and stale client state cannot overwrite server state between runs.

Who this is for

Frontend, agent-platform, and edge-runtime teams operating AG-UI streaming clients, Cloudflare Agents, tool approvals, resumable threads, or long-history replay.

Original sources

Revisions & corrections (1)

— Official dated release documents the client ordering and compaction fixes plus the first Cloudflare Durable Object adapter, with breaking changes and operational limits stated explicitly.

Related events

Frameworks

AI SDK raises the Responses event limit for large generated images, fixing 'images arrived but the request failed'

On November 26, AI SDK added configurable maxEventSize handling and raised the per-event limit used by OpenAI and xAI Responses models from the 64 MiB default to 512 MiB. Because response.completed repeats every output item, several large base64 images could exceed the limit and fail the request after the images had already reached the client.