Repository navigation
feat!: make generative UI the only client path and serve A2UI v0.9 agents from every runtime - #8348
Conversation
The runtime `a2ui` option is removed. Its settings move to
`generativeUI`, which gains `a2uiVersion: "0.9" | "1.0"` or a per-agent
map (default "1.0").
- A 0.9 agent gets the v0.9 `render_a2ui` tool (A2UIMiddleware) and a
v0.9 component schema built from the client's generative UI catalog,
instead of `render_ui`.
- For every agent, v0.9 surfaces (a2ui-surface activity events) are
converted to A2UI 1.0 `generative-ui-surface` events, keyed off each
operation's version. A 1.0 agent whose tool returns v0.9 operations
still renders.
- A click on a converted surface reaches a 0.9 agent as the v0.9
`a2uiAction.userAction` (a `log_a2ui_event` pair). The stored thread
keeps the click message.
- `/info` reports `generativeUI: { enabled, agents }` instead of
`a2uiEnabled` and `a2ui`. Core exposes it as `generativeUIEnabled` and
`generativeUIAgents`.
BREAKING CHANGE: the `a2ui` option of CopilotRuntime is removed. Use
`generativeUI: { a2uiVersion: "0.9", ...options }`. The v2 migration
codemod rewrites it.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Generative UI used web_core only for its state classes (SurfaceModel, ComponentModel, DataModel) and a placeholder Catalog built with `z.any()`. A small internal model in `core/src/generative-ui/surface-model.ts` replaces them, with the same JSON Pointer, null-delete and notification behavior. The types are exported from `@copilotkit/core/generative-ui`, and React, Vue and Angular read them from there. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…e info `ɵresolveGenerativeUIDefault` tells a framework to fall back to the standard catalog when the runtime reports generative UI on and the provider passes no UI of its own. The fallback carries the runtime's agent list, so it applies to the same agents. Co-Authored-By: Claude Opus 5.5 <[email protected]>
… any agent The runtime could not tell a converted v0.9 surface from a native 1.0 one when a click came in: the client sends no activity messages, so only the agent's configured version decided. The client now copies `a2uiSourceVersion` from the surface content into the surface summary it sends with each run, and `downgradeA2UIV09Action` reads it first. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Generative UI (A2UI 1.0) is the only client path. When the runtime
reports generative UI on and the provider has no `generativeUI` prop, the
provider uses the standard catalog, loaded with a dynamic import so the
main entry does not grow.
BREAKING CHANGE: the `a2ui` prop of CopilotKitProvider and the exports
`createA2UIMessageRenderer`, `A2UIMessageRendererOptions`,
`A2UIUserAction`, `A2UIActionInterceptor`, `A2UIRecoveryRendererOptions`,
`A2UITheme` and `a2uiDefaultTheme` are removed. Use `generativeUI`, and
`generativeUI: { a2uiVersion: "0.9" }` on the runtime for v0.9 agents.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Generative UI (A2UI 1.0) is the only client path. When the runtime reports generative UI on and the provider has no `generativeUI` prop, the provider lazily loads the standard catalog and uses it. BREAKING CHANGE: the `a2ui` prop and the v0.9 exports (`A2UISurfaceActivityRenderer`, `createA2UIMessageRenderer`, `vueBasicCatalog`, `A2uiSurface`, `createVueComponent` and related types) are removed. Use `generativeUI`. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Generative UI (A2UI 1.0) is the only client path. Angular apps add
`provideGenerativeUI({ ui: standardUI })`. In dev mode, CopilotKit warns
once when the runtime reports generative UI on and nothing renders
generative UI surfaces.
BREAKING CHANGE: the `@copilotkit/angular/a2ui` entry point, the `a2ui`
option of `provideCopilotKit` and the root A2UI exports
(`CopilotA2UIActivityRenderer`, `readA2UILifecycleContent`,
`RENDER_A2UI_TOOL_NAME` and related types) are removed.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
… code No framework uses the A2UI v0.9 client path anymore, so this removes: - `@copilotkit/a2ui-renderer` - core's `a2ui` module (the `ɵA2UI*` family) - the v0.9 activation in the provider config (`ɵresolveA2UIActivation`, `ɵA2UIBaseOptions`, `a2uiCatalog` / `a2uiCatalogAvailable`) - `a2uiEnabled` / `a2uiAgents` in core and in the runtime info types - the v0.9 A2UI styles Core no longer depends on `@a2ui/web_core`. The web inspector's A2UI badge now reads `generativeUIEnabled`. Release, knip, docs tsconfig, workflow and size configs drop the package, and the public API manifest and lint baselines are updated. BREAKING CHANGE: `@copilotkit/a2ui-renderer` is no longer published, and the core `ɵA2UI*` internals and `RuntimeInfo.a2uiEnabled` / `a2ui` are removed. Use generative UI (`createGenerativeUI`, `standardUI`). Co-Authored-By: Claude Opus 5.5 <[email protected]>
…tive UI
The demos in the pnpm workspace used the removed A2UI v0.9 client:
- generative-ui-playground
- the Angular demo and demo-server
- the React demo
- the Vue demo and storybook
- the Angular showcase host
They now render through generative UI. v0.9 agents get
`generativeUI: { a2uiVersion: "0.9" }` on their runtime. Pages that only
showed the removed renderer (web-component catalog entries, the v0.9
progress and recovery states) are deleted. The lockfile no longer has
`@copilotkit/a2ui-renderer`, `@a2ui/web_core` or `@a2ui/lit`.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The generative UI pages lose their Experimental labels. The `a2ui`
prop, the Angular `a2ui` option and `@copilotkit/a2ui-renderer` are
gone from the docs. "Adopt from A2UI" is the migration page and has a
new section, "Keep a v0.9 agent", that covers
`generativeUI: { a2uiVersion }`, what the runtime converts, and its
limits. The A2UI agent pages keep the agent side and move the frontend
steps to generative UI. The zod-v3 alias instructions are removed.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. 🗂️ Base branches to auto review: 1
Please check the settings in the CodeRabbit UI or the
|
Production Digest-Pinning AuditAll 44 services digest-pinned. Run 2026-11-12 03:17:35 PST — 0 finding(s). |
|
Reopening to start CI: the formatting bot's push does not start workflows. |
The v0.9 catalog context looks basic components up in a Set instead of an array inside a loop. The Angular showcase custom assistant message uses a light full border instead of a thick left border. Co-Authored-By: Claude Opus 5.5 <[email protected]>
@copilotkit/agentcore-runner
@copilotkit/angular
@copilotkit/channels
@copilotkit/channels-core
@copilotkit/channels-discord
@copilotkit/channels-intelligence
@copilotkit/channels-slack
@copilotkit/channels-teams
@copilotkit/channels-ui
@copilotkit/channels-whatsapp
@copilotkit/core
@copilotkit/intelligence-langgraph
@copilotkit/intelligence-mastra
@copilotkit/learning
@copilotkit/markdown
@copilotkit/mcp-apps-renderer
@copilotkit/react-core
@copilotkit/react-native
@copilotkit/runtime
@copilotkit/sdk-js
@copilotkit/shared
@copilotkit/sqlite-runner
@copilotkit/voice
@copilotkit/vue
@copilotkit/web-components
@copilotkit/web-inspector
commit: |
|
Size Change: +21.2 kB (+0.88%) Total Size: 2.43 MB 📦 View Changed
ℹ️ View Unchanged
|
The breaking-change gate tests took the first manifest package, which was a2ui-renderer. They now pick a package that has the shape each test needs: a root `require.default` condition plus another entry, or a required peer. The monorepo package count is 15. Co-Authored-By: Claude Opus 5.5 <[email protected]>
… runtimes
The A2UI cases now configure `generativeUI: { a2uiVersion: "0.9" }` and
expect `generative-ui-surface` events. New `generative-ui.a2ui-version.*`
cases cover which render tool each agent gets, the v0.9 schema context,
the conversion of v0.9 operations to 1.0, clicks reaching a v0.9 agent,
and the `generativeUI` field of `/info`.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ntime The Python runtime matches the TypeScript runtime: - `generative_ui` replaces the `a2ui=` parameter. - A 1.0 agent gets the `render_ui` tool and guide. - A 0.9 agent gets `render_a2ui` and a v0.9 schema built from the client's catalog. - v0.9 surfaces from any agent are converted to A2UI 1.0, and clicks on them go back to a 0.9 agent as `a2uiAction.userAction`. - `/info` reports `generativeUI`. All 146 runtime conformance cases pass. BREAKING CHANGE: the `a2ui=` parameter and the `A2UIConfig` export are removed. Use `generative_ui=GenerativeUIConfig(a2ui_version="0.9", ...)`. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The Go runtime matches the TypeScript runtime: - 1.0 agents get render_ui and its guide. - 0.9 agents get render_a2ui and a v0.9 schema built from the client catalog. - v0.9 surfaces from any agent are converted to A2UI 1.0, and clicks on them go back to a 0.9 agent as a2uiAction.userAction. - /info reports generativeUI. All 146 runtime conformance cases pass. BREAKING CHANGE: Config.A2UI is replaced by Config.GenerativeUI (GenerativeUIConfig). Co-Authored-By: Claude Opus 5.5 <[email protected]>
The Ruby runtime matches the TypeScript runtime: - 1.0 agents get render_ui and its guide. - 0.9 agents get render_a2ui and a v0.9 schema built from the client catalog. - v0.9 surfaces from any agent are converted to A2UI 1.0, and clicks on them go back to a 0.9 agent as a2uiAction.userAction. - /info reports generativeUI. All 146 runtime conformance cases pass. BREAKING CHANGE: the a2ui: keyword is replaced by generative_ui:, a hash with the TypeScript option names. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The .NET runtime matches the TypeScript runtime: - 1.0 agents get render_ui and its guide. - 0.9 agents get render_a2ui and a v0.9 schema built from the client catalog. - v0.9 surfaces from any agent are converted to A2UI 1.0, and clicks on them go back to a 0.9 agent as a2uiAction.userAction. - /info reports generativeUI. All 146 runtime conformance cases pass. BREAKING CHANGE: RuntimeOptions.A2UI is replaced by RuntimeOptions.GenerativeUI (GenerativeUIOptions), and A2UIOptions and A2UIAgent are internal. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Keeps @copilotkit/a2ui-renderer and the core and react-core v0.9 client code deleted, including the native 1.0 rendering that #8353 added to it; the runtime handles that case next. Takes 2.0.0's rebuilt shell-docs as is; the docs changes are redone on the new layout in a follow-up commit. Co-Authored-By: Claude Opus 5.5 <[email protected]>
PR #8353 taught the removed a2ui-renderer to draw native A2UI 1.0 operations, which Google ADK sends on the A2UI path. Every runtime now carries that case: - An `a2ui-surface` operation with `version: "1.0"` becomes a `generative-ui-surface` event, with the 1.0 basic catalog mapped to `copilotkit/standard@1`. - Basic `Text` headings, captions and `Button.action` get the same standard-catalog mapping as v0.9. - Clicks on these surfaces reach the agent unchanged. Also follows `@ag-ui/a2ui-middleware` 0.0.15: - The TypeScript conformance driver expects the private user-JSON click history. - `GenerativeUIOptions` gains `a2uiGenerationToolNames`. The other runtimes no longer turn clicks on untagged surfaces into v0.9 actions. All five runtimes pass 147 conformance cases. Co-Authored-By: Claude Opus 5.5 <[email protected]>
… app These are the docs changes from 0e21430, applied to the Fumadocs layout: - Generative UI is stable, and the `a2ui` prop and a2ui-renderer are gone. - v0.9 agents use `generativeUI: { a2uiVersion: "0.9" }`. The migration page gains a section on agents that send native A2UI 1.0, such as Google ADK. Those surfaces render with the standard catalog. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
… the 2.0.0 merge #8353 added it for the a2ui-renderer this branch deletes. The runtime pass-through tests cover the same ADK fixture. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…cable Co-Authored-By: Claude Opus 5.5 <[email protected]>
… the repo Co-Authored-By: Claude Opus 5.5 <[email protected]>
#8348 replaced a2uiEnabled and a2uiAgents with generativeUIEnabled and generativeUIAgents on ɵRuntimeInfo. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Generative UI (A2UI 1.0) is now the only client path, and it is stable. The A2UI v0.9 client is gone: the
a2uiprop,@copilotkit/angular/a2ui,@copilotkit/a2ui-rendererand@a2ui/web_core. Agents that speak A2UI v0.9 keep working: the runtime converts their output to 1.0, and converts clicks on those surfaces back to v0.9.What does this PR do?
Runtime
a2uioption is removed.generativeUIgetsa2uiVersion: "0.9" | "1.0", or a map per agent. The default is"1.0"."1.0"agent getsrender_ui, as before."0.9"agent gets the v0.9render_a2uitool, plus a v0.9 component schema built from the client's catalog. The schema has the 18 basic components and the app's own components.generative-ui-surfaceevents, taggeda2uiSourceVersion: "0.9". This includes A2A agents, Pythoncopilotkit.a2uitool results and LangGraph auto-A2UI. A click on such a surface reaches the agent asa2uiAction.userAction. The stored thread keeps the click message.copilotkit/standard@1, and clicks reach the agent unchanged./inforeportsgenerativeUI: { enabled, agents }instead ofa2uiEnabled.render_uiand converters. The runtime conformance suite checks every runtime on every PR, so all five land together. Each port's output was compared with the TypeScript or Python runtime on the same inputs.Client
standardUIwhen the runtime turns generative UI on and the app passes nogenerativeUIprop. The catalog is loaded with a dynamic import, so the main entry does not grow: react-coredist/index.mjsis 80.9 kB gzip before and 77.9 kB after.provideGenerativeUI({ ui: standardUI }). In dev mode, CopilotKit warns once if this provider is missing.Repo
Related PRs and Issues
alem/2.0-codemod-a2ui.maplibre-gl.Checklist
!(for examplefeat(react-core)!: ...) and the description has aBREAKING CHANGE:line with migration steps. See VERSIONING.mdBREAKING CHANGE: the
a2uiprovider prop (React, Vue), thea2uioption ofprovideCopilotKitand ofCopilotRuntime(and of the Python, Go, Ruby and .NET runtimes),@copilotkit/angular/a2uiand@copilotkit/a2ui-rendererare removed. Migrate catalogs tocreateGenerativeUI, and setgenerativeUI: { a2uiVersion: "0.9" }on the runtime for v0.9 agents. Thev2-migrationcodemod rewrites most of this. See/generative-ui/components/from-a2ui.Testing
Commands run
pnpm nx run-many -t test,check-typesfor core, shared, runtime, react-core, react-native, vue, angular and web-inspector: pass.pnpm check:docs-snippets: pass, on the rebuilt docs app (1485 snippets).pnpm check:public-api-manifest,pnpm lintandpnpm lint:dead-code: pass.pnpm install --frozen-lockfile: pass.2.0.0(@ag-ui/a2ui-middleware0.0.15). Go, Ruby and .NET ran in Docker the way CI runs them, with their unit tests, lint and-warnaserrorbuilds.scripts/release): 295 pass.nx affected -t test,check-types,build: the only failures come from this machine, not the branch. Go and .NET are not installed, sqlite has no native bindings, Python is 3.15, and the starters outside the workspace have nothing installed.Manual test
examples/dev/by-frontend/vue/demo. Its runtime setsa2uiVersion: { "demo-button": "0.9" }.log_a2ui_eventand replies.a2ui-catalog. It passesgenerativeUIwith no runtime config, and still renders.How this PR makes testing easy
packages/runtime/src/runtime/__tests__/a2ui-v09-{operations,actions,catalog}.test.tsandagent-utils-a2ui-version.test.ts.react-core/.../standard-ui-fallback.test.tsxandvue/.../standard-default.e2e.test.tscover the standardUI fallback.core/src/generative-ui/__tests__/surface-model.test.ts.tools/runtime-conformance/ui-cases.mjs: thea2ui.*andgenerative-ui.a2ui-version.*cases, run against every runtime. Its cases were also run against web_core'sDataModelto check that the behavior matches.Risk / rollback
recovery.debugExposurehas no visible effect). A custom v0.9 component renders only if the client catalog has a component with the same name. A2UI v0.8 operations are not converted.maplibre-glstays a dynamic import that some bundlers try to resolve.showcase/integrationscells and the examples outside the workspace (reskinnable-demo, a2a-a2ui, a2ui-playground, a2ui-pdf-analyst, antigravity-repo-doctor). They pin published versions. A follow-up PR migrates them.Public API change
Before
After
🤖 Generated with Claude Code