react-ag-ui: adapter still depends on @ag-ui/client ^0.0.59 while the workspace moves to 1.0

Author: alejandroSanchezCaceresCreated Sep 28, 2026Updated Sep 28, 2026
Labelsbug

Problem

@assistant-ui/[email protected] (current npm and main) declares "@ag-ui/client": "^0.0.59" (packages/react-ag-ui/package.json:38).

#8507 moves examples/with-ag-ui and api-surface to "@ag-ui/client": "^1.0.0", but leaves the adapter on ^0.0.59 (its packages/react-ag-ui/package.json hunk only bumps jsdom and vitest). With that PR the lockfile resolves two copies of the client, @ag-ui/[email protected] for packages/react-ag-ui and @ag-ui/[email protected] for the example and api-surface.

Any app on @ag-ui/client 1.0 gets the same split: the HttpAgent the app builds comes from 1.0, while the adapter types and subscribes to it through 0.0.59. Today the only way out downstream is a package-manager override that forces 1.0 under the adapter.

Proposal

Two PRs, so each can be reviewed and reverted on its own:

  1. feat(react-ag-ui): run on @ag-ui/client 1.0 — move the adapter to ^1.0.0 (complements #8507, which already covers the example and api-surface). The 1.0 client expands TEXT_MESSAGE_CHUNK/TOOL_CALL_CHUNK and upgrades THINKING_* to REASONING_* before any subscriber sees them, so the adapter's handlers for those events become unreachable and go. A test drives a real HttpAgent over SSE to pin that a backend still emitting the legacy events renders the same.
  2. fix(react-ag-ui): keep a mid-run snapshot from splitting the turn and dropping its interrupt — a separate bug, stacked on (1) because its test drives the 1.0 client. It reproduces on main today; details in that PR.

Questions

  • Is moving the adapter to 1.0 wanted now, or would you rather do it inside #8507?
  • Changeset type: I used patch per CONTRIBUTING. The dependency range crosses a major of @ag-ui/client; tell me if you want something else.

Track in Rupic

Source: assistant-ui/assistant-ui