Documents
CHANGELOG
CHANGELOG
Type
External
Status
Published
Created
Mar 17, 2026
Updated
May 21, 2026
Updated by
Dosu Bot
Source
View

@assistant-ui/react-ag-ui#

0.0.31#

Patch Changes#

  • #4066 3bc6dc0 - fix(react-ag-ui): preserve arrival order of parts in RunAggregator (@tlecomte)

    The aggregator now strictly preserves the order events arrive from the upstream stream. Each REASONING_START, TOOL_CALL_START, and TEXT_MESSAGE_END acts as a boundary that closes the current active part, so consecutive events of the same type are grouped into one part while interleaved events of a different type produce separate parts in chronological order.

    Previously, the first reasoning block was always moved before the first text part regardless of arrival order, and multiple reasoning cycles were merged into a single block. Both behaviours have been removed.

  • #3925 53cdc51 - feat(react-ag-ui): track streaming timing on the run aggregator so useMessageTiming() works on AG-UI assistant messages (@shashank-100)

  • Updated dependencies [94548fa, 94548fa, 8b6fc88, 179895f, 7a8bf26, 3b2bbce]:

0.0.30#

Patch Changes#

  • #3974 1959f3a - feat(react-ag-ui): surface AG-UI interrupt-aware run lifecycle (@okisdev)

    event-parser reads the optional outcome on RUN_FINISHED and forwards both success and interrupt variants; the subscriber subscribes to onRunFinishedEvent (with onRunFinalized as a fallback for older servers). RunAggregator maps outcome.type === "interrupt" to requires-action with reason: "interrupt" and writes the interrupts to metadata.custom.agui.interrupts. useAgUiRuntime returns an AgUiAssistantRuntime augmented with unstable_getPendingInterrupts and unstable_submitInterruptResponses; the latter validates coverage and expiry on the client, then issues a fresh run with RunAgentInput.resume populated. the runtime state snapshot is also synced onto the agent before each run so state actually reaches the protocol layer.

  • #3977 876abd1 - feat(react-ag-ui): tighten interrupt lifecycle (@okisdev)

    append, reload, and resume now refuse to start a new run while interrupts are still pending on the thread; the call throws with a message pointing at submitInterruptResponses instead of letting the request hit the wire and rely on the agent to reject it (AG-UI interrupts spec rule 4).

    AgUiInterrupt.reason is typed as AgUiInterruptReason ("tool_call" | "input_required" | "confirmation" | (string & {})), so the spec values autocomplete while string extension stays open.

    onRunFinishedEvent now ignores payloads that parse as a different event type, so a misrouted callback can no longer suppress the onRunFinalized fallback.

  • #4017 1802e08 - fix(react-ag-ui): adopt TEXT_MESSAGE_START.messageId as the assistant ThreadMessage.id (@okisdev)

    AgUiThreadRuntimeCore now inserts the assistant placeholder under an optimistic id (generateOptimisticId), then atomically reassigns the message id to the server-supplied messageId the first time RunAggregator observes one (on TEXT_MESSAGE_START, TEXT_MESSAGE_CONTENT, TEXT_MESSAGE_END, or TOOL_CALL_START.parentMessageId). assistantHistoryParents and recordedHistoryIds migrate with the id, so persistAssistantHistory, addToolResult, and downstream lookups keep working and resolve to the canonical AG-UI id. This brings the streaming path in line with MESSAGES_SNAPSHOT imports, which were already keyed on the server id.

    TOOL_CALL_RESULT.messageId is now surfaced as unstable_toolMessageId on the tool-call part, so tool messages round-trip back to AG-UI with their original id instead of a synthetic ${toolCallId}:tool value.

  • Updated dependencies [9ecda1d, 35d0146, fa4510a, c9dd16c, dea8bc7, 9c3d24d]:

0.0.29#

Patch Changes#

0.0.28#

Patch Changes#

0.0.27#

Patch Changes#

0.0.26#

Patch Changes#

  • 43fb4f7: fix(react-ag-ui): preserve user message attachments when converting to AG-UI format

    • toAgUiMessages() previously called extractText() for user messages, silently dropping image and file attachments
    • User messages with attachments now emit AG-UI InputContent[]: images map to the image variant with a data or url source, files map to the binary variant preserving filename
    • Falls back to plain string content when no binary parts are present, preserving backward compatibility
  • c988db8: chore: update dependencies

  • Updated dependencies [f20b9ca]

  • Updated dependencies [c988db8]

0.0.25#

Patch Changes#

  • 376bb00: chore: update dependencies
  • Updated dependencies [42bc640]
  • Updated dependencies [87e7761]

0.0.24#

Patch Changes#

  • bdce66f: chore: update dependencies
  • 209ae81: chore: remove aui-source export condition from package.json exports
  • Updated dependencies [dffb6b4]
  • Updated dependencies [6554892]
  • Updated dependencies [9103282]
  • Updated dependencies [876f75d]
  • Updated dependencies [bdce66f]
  • Updated dependencies [4abb898]
  • Updated dependencies [209ae81]
  • Updated dependencies [af70d7f]

0.0.23#

Patch Changes#

  • 52403c3: chore: update dependencies
  • Updated dependencies [781f28d]
  • Updated dependencies [3227e71]
  • Updated dependencies [3227e71]
  • Updated dependencies [0f55ce8]
  • Updated dependencies [83a15f7]
  • Updated dependencies [52403c3]
  • Updated dependencies [ffa3a0f]

0.0.22#

Patch Changes#

  • 736344c: chore: update dependencies
  • Updated dependencies [1406aed]
  • Updated dependencies [9480f30]
  • Updated dependencies [28a987a]
  • Updated dependencies [736344c]
  • Updated dependencies [ff3be2a]
  • Updated dependencies [70b19f3]

0.0.21#

Patch Changes#

  • 349f3c7: chore: update deps
  • 619d923: Depend on @assistant-ui/core instead of @assistant-ui/react
  • Updated dependencies [1ed9867]
  • Updated dependencies [427ffaa]
  • Updated dependencies [349f3c7]
  • Updated dependencies [02614aa]
  • Updated dependencies [6cc4122]
  • Updated dependencies [642bcda]

0.0.20#

Patch Changes#

  • 164ff4e: fix(react-ag-ui): preserve tool message id through AgUiMessage conversion round-trip
  • Updated dependencies [5ae74fe]
  • Updated dependencies [8ed9d6f]

0.0.19#

Patch Changes#

  • a845911: chore: update dependencies
  • a8983ae: fix(react-ag-ui): add REASONING_* event support to match @ag-ui/client v0.0.45
  • c482ca2: fix(react-ag-ui): correctly import MESSAGES_SNAPSHOT events that include role: "tool" messages by normalizing them into assistant tool-call results before core conversion.
  • Updated dependencies [07dcce0]
  • Updated dependencies [a845911]
  • Updated dependencies [bc40eaf]
  • Updated dependencies [be23d74]
  • Updated dependencies [1eb059c]

0.0.18#

Patch Changes#

  • 36ef3a2: chore: update dependencies
  • 8c29377: fix(react-ag-ui): route tool results to the latest pending tool call and avoid false auto-resume triggers
  • Updated dependencies [36ef3a2]
  • Updated dependencies [6692226]
  • Updated dependencies [c31c0fa]
  • Updated dependencies [1672be8]
  • Updated dependencies [28f39fe]
  • Updated dependencies [3a1cb66]
  • Updated dependencies [14769af]
  • Updated dependencies [7c360ce]
  • Updated dependencies [a638f05]
  • Updated dependencies [8a78cd2]

0.0.17#

Patch Changes#

  • 88ec552: fix(react-ag-ui): auto-resume run after frontend tool execution completes
  • Updated dependencies [5bbe8a9]
  • Updated dependencies [5e304ea]
  • Updated dependencies [546c053]
  • Updated dependencies [a7039e3]
  • Updated dependencies [16c10fd]
  • Updated dependencies [98c3d54]
  • Updated dependencies [b181803]
  • Updated dependencies [7836760]
  • Updated dependencies [9276547]
  • Updated dependencies [b65428e]
  • Updated dependencies [af5b085]
  • Updated dependencies [61b54e9]
  • Updated dependencies [a094c45]
  • Updated dependencies [4d7f712]
  • Updated dependencies [ecc29ec]
  • Updated dependencies [6e97999]
  • Updated dependencies [a247fc9]
  • Updated dependencies [f414af9]
  • Updated dependencies [b48912c]
  • Updated dependencies [93910bd]
  • Updated dependencies [58a8472]

0.0.16#

Patch Changes#

  • afaaf3b: feat(react-ag-ui): support frontend tool execution in AG-UI runtime
  • Updated dependencies [afaaf3b]
  • Updated dependencies [afaaf3b]
  • Updated dependencies [afaaf3b]
  • Updated dependencies [afaaf3b]
  • Updated dependencies [51d24be]
  • Updated dependencies [afaaf3b]

0.0.15#

Patch Changes#

  • a088518: chore: update dependencies
  • Updated dependencies [a088518]
  • Updated dependencies [d8122cc]

0.0.14#

Patch Changes#

  • d45b893: chore: update dependencies
  • Updated dependencies [d45b893]
  • Updated dependencies [fe71bfc]

0.0.13#

Patch Changes#

  • a888c9b: feat(react-ag-ui): add experimental switch new thread

0.0.12#

Patch Changes#

  • acbaf07: feat: add framework-agnostic toToolsJSONSchema and toGenericMessages utilities to assistant-stream
  • Updated dependencies [07d1c65]
  • Updated dependencies [b591d72]
  • Updated dependencies [59a338a]
  • Updated dependencies [acbaf07]
  • Updated dependencies [c665612]
  • Updated dependencies [0371d72]
  • Updated dependencies [e8b3f34]

0.0.11#

Patch Changes#

  • 605d825: chore: update dependencies
  • Updated dependencies [1ea3e28]
  • Updated dependencies [8cbf686]
  • Updated dependencies [a8be364]
  • Updated dependencies [605d825]

0.0.10#

Patch Changes#

  • c7b7897: fix(react-ag-ui): load history on runtime initialization
  • 7073ccc: fix(react-ag-ui): use threadId instead of hardcoded main
  • Updated dependencies [6eab31e]
  • Updated dependencies [9314b36]
  • Updated dependencies [083ed83]
  • Updated dependencies [6511990]
  • Updated dependencies [a526e63]

0.0.9#

Patch Changes#

  • 3719567: chore: update deps
  • Updated dependencies [3719567]

0.0.8#

Patch Changes#

  • bb1b4c2: fix(react-ag-ui): add missing DictationAdapter to UseAgUiRuntimeAdapters
  • Updated dependencies [ebd41c7]
  • Updated dependencies [9a110ea]
  • Updated dependencies [caee095]
  • Updated dependencies [9883125]

0.0.7#

Patch Changes#

  • 57bd207: chore: update dependencies
  • cce009d: chore: use tsc for building packages
  • Updated dependencies [57bd207]
  • Updated dependencies [cce009d]

0.0.6#

Patch Changes#

  • e8ea57b: chore: update deps
  • Updated dependencies [bae3aa2]
  • Updated dependencies [e8ea57b]

0.0.5#

Patch Changes#

  • Updated dependencies [89aec17]
  • Updated dependencies [ee7040f]
  • Updated dependencies [bd27465]
  • Updated dependencies [a3e9549]
  • Updated dependencies [206616b]
  • Updated dependencies [7aa77b5]

0.0.4#

Patch Changes#

  • 01c31fe: chore: update dependencies
  • Updated dependencies [ba26b22]
  • Updated dependencies [d169e4f]
  • Updated dependencies [da9f8a6]
  • Updated dependencies [01c31fe]

0.0.3#

Patch Changes#

  • ec662cd: chore: update dependencies
  • Updated dependencies [ec662cd]

0.0.2#

Patch Changes#

  • 2c33091: chore: update deps
  • Updated dependencies [2c33091]

0.0.1#

Patch Changes#

  • Updated dependencies [ef58020]
    • assistant-stream@0.2.40