Repository navigation
feat(showcase): add A2UI Express to Google ADK Python demos - #8122
Conversation
|
Important Review skippedIgnore keyword(s) in the title. ⛔ Ignored keywords: 4
Please check the settings in the CodeRabbit UI or the
|
Production Digest-Pinning AuditAll 44 services digest-pinned. Run 2026-11-10 22:58:57 PST — 0 finding(s). |
992684e to
d769a7d
Compare
@copilotkit/a2ui-renderer
@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/mcp-apps-renderer
@copilotkit/react-core
@copilotkit/react-native
@copilotkit/react-textarea
@copilotkit/react-ui
@copilotkit/runtime
@copilotkit/runtime-client-gql
@copilotkit/sdk-js
@copilotkit/shared
@copilotkit/sqlite-runner
@copilotkit/voice
@copilotkit/vue
@copilotkit/web-components
@copilotkit/web-inspector
commit: |
d769a7d to
024169b
Compare
|
Size Change: 0 B Total Size: 2.47 MB ℹ️ View Unchanged
|
The Google ADK Python Showcase only exercised the Direct JSON A2UI path. Its dynamic, fixed-template and recovery demos now offer an explicit Express / Direct JSON selector, with Express as the default. The choice travels through the existing CopilotKit provider properties: the dynamic and recovery demos stream Express through ag-ui-adk's official A2UI SDK integration, and the fixed template compiles against the frontend catalog exported at build time. Pins the published releases that ship Express support: ag-ui-adk 0.12.0, ag-ui-a2ui-toolkit 0.0.6, a2ui-agent-sdk 0.10.0 and a2ui-core 0.5.0, and @CopilotKit 1.84.1, whose renderer exports the catalog with resolvable common-type references (#8120). The D6 replay fixtures carry raw chunked Express replies, so the Python compiler and streaming path run rather than precompiled UI operations, including invalid-then-repaired recovery output. Exact ADK pins lower the pin-drift baseline from 23 to 22. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The shared D5/D6 browser probes for the dynamic, fixed-template and recovery A2UI demos now check the inference format the agent actually used, and require A2UI snapshots and visible surface updates to change before the tool call completes, so a demo that renders only at the end no longer passes. Direct JSON coverage is preserved alongside Express. The probe helpers stay within ES2022 for the harness build target. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The google-adk A2UI conformance tests read the catalogs the frontend registers. Those catalogs are build artifacts and are gitignored, so the Python test job never had them. Install the package's npm dependencies and run export:a2ui-catalogs first, the same way the Docker build does (including --legacy-peer-deps). The step adds about 16 seconds locally. Co-Authored-By: Claude Opus 5.5 <[email protected]>
35a5cf2 to
dc615a6
Compare
mme
left a comment
There was a problem hiding this comment.
Thanks Mark, this is a lot of careful work, and it's great to see Express running end to end in the ADK showcase. The demo side looks good to me. Most of what I found is in the new harness checks, where a few cases would fail on healthy runs or quietly lose coverage. Requesting changes for these six, with details inline:
- The Express HEAL fixtures only cover the first two Express requests, so a retry or a second click has nothing to match.
- The new format checks only run with
--format, so scheduled runs only cover Express and skip the new checks. - A turn-1 cold-start retry wipes the evidence probe, so a run that recovers still fails.
- The 2,000-event cap can drop
TOOL_CALL_RESULTandRUN_FINISHED. - The startup hook makes the generated catalog a boot requirement for every ADK demo.
copilotkit_versionin the manifest doesn't match the pins.
The other inline comments are small and non-blocking. Two more things that didn't fit on a line:
- Format selector only on google-adk.
showcase/AGENTS.mdasks for the same feature to render the same frontend across integrations, and only the google-adk A2UI pages get the selector bar. That may well be the right call while Express is ADK-only. I just wanted to check it's deliberate. - CI cost. The Python test step now runs a full
npm cifor the google-adk app to export the two catalogs. I understand why they're build artifacts, so no change needed if that's the trade-off you want. It just adds a few minutes and a Node dependency to that job.
CI: the zizmor failure is pre-existing and #8190 fixes it. The format job was cancelled during install, so it just needs a rerun.
| "match": { | ||
| "userMessage": "Render my Q2 sales dashboard, recovering if the first attempt is malformed.", | ||
| "systemMessage": "# A2UI Express DSL Output Contract", | ||
| "sequenceIndex": 0 |
There was a problem hiding this comment.
The two HEAL Express fixtures are keyed on sequenceIndex 0 and 1, and there's no unsequenced Express fallback (the EXHAUST one has no index, so it matches every attempt). If the same conversation sends a third Express request, for example when the harness retries the turn or someone clicks the pill a second time on staging, there's no Express fixture left to match and the run fails. An unsequenced copy of the valid response after these two would cover that, unless I'm missing how aimock scopes the counter.
| ), | ||
| preFill: async (page) => { | ||
| await buildBaselineCapture(baselineRef)(page); | ||
| if (ctx.a2uiFormat) await startA2uiEvidence(page); |
There was a problem hiding this comment.
The probe lives on globalThis in the page, and the runner's turn-1 cold-start retry (the page.reload() branch in conversation-runner.ts) reloads and re-sends without running preFill again. After a retry __hk_a2uiProbe is gone, checkA2uiEvidence sees no events, and a run that recovered still fails. Re-arming the probe after the reload (for example a hook the turn can provide to the runner) would fix it.
| baselineRef, | ||
| minCounts, | ||
| )(page); | ||
| if (ctx.a2uiFormat) |
There was a problem hiding this comment.
Both the evidence probe and this check only run when --format is passed, and the scheduled runs don't pass it. Since the page now defaults to Express, scheduled runs only exercise Express, without the new format and progressive-render checks, and Direct JSON is only covered when someone runs the probe by hand. Could the scheduled config run both formats, or default a2uiFormat to the page's default so the checks always run?
| var parsed = JSON.parse(raw); | ||
| // Opt-in, bounded structural events recorded at fetch-reader arrival, | ||
| // not reconstructed from CDP's completed response body. | ||
| if (probe && parsed && ['RUN_STARTED', 'RUN_FINISHED', 'TOOL_CALL_START', 'TOOL_CALL_ARGS', 'TOOL_CALL_END', 'TOOL_CALL_RESULT', 'ACTIVITY_SNAPSHOT'].indexOf(parsed.type) !== -1 && probe.events.length < 2000) { |
There was a problem hiding this comment.
The 2,000-event cap counts every recorded type, so on a long stream the TOOL_CALL_ARGS deltas can fill it before TOOL_CALL_RESULT and RUN_FINISHED arrive, and the check then reports them missing on a healthy run. Exempting the terminal events from the cap, or capping only TOOL_CALL_ARGS, would avoid that.
| app.add_middleware(CvdiagBackendMiddleware) | ||
|
|
||
|
|
||
| @app.on_event("startup") |
There was a problem hiding this comment.
This makes flight_catalog.generated.json a startup requirement for the whole server. If someone starts it without running npm run export:a2ui-catalogs first, all the ADK demos go down, not just the fixed-schema one. The Docker build runs the export, so deploys are fine, but local runs would hit it. Since compile_flight_template() is already cached, compiling lazily on first use (or logging a warning here instead of raising) would keep the failure scoped to that demo. Minor: @app.on_event is deprecated in FastAPI in favour of lifespan.
| partner_docs: null | ||
| repo: https://github.com/CopilotKit/CopilotKit/tree/main/showcase/integrations/google-adk | ||
| copilotkit_version: 2.0.0 | ||
| copilotkit_version: 1.83.0 |
There was a problem hiding this comment.
Should this be 1.84.1? showcase-canonical-pins.json pins google-adk to 1.84.1, which is also the release with the #8120 catalog fix this PR relies on.
| _A2UI_ROUTES = {"/declarative_gen_ui", "/a2ui_recovery", "/a2ui_fixed_schema"} | ||
|
|
||
|
|
||
| def validate_format(value: object) -> str: |
There was a problem hiding this comment.
Small one: ag_ui_adk exports validate_inference_format with the same check, so this could reuse it. Related: _A2UI_ROUTES above and the agent_name == "declarative_gen_ui" case in agent_server.py both hard-code agent names separately from AGENT_REGISTRY, so renaming one of those agents would quietly skip format validation. A flag on the registry spec would keep that in one place.
| body = await request.json() | ||
| if not isinstance(body, dict): | ||
| raise ValueError("AG-UI input must be an object") | ||
| props = body.get("forwardedProps", {}) |
There was a problem hiding this comment.
Small one: body.get("forwardedProps", {}) returns None when the key is present but null, so such a request gets a 400. ag_ui_adk's run_inference_format treats a non-dict forwarded_props as {}. body.get("forwardedProps") or {} would accept null the same way.
| return { | ||
| "inferenceFormat": "express", | ||
| "a2ui_operations": [ | ||
| *compile_flight_template(), |
There was a problem hiding this comment.
Small one: compile_flight_template() is lru_cached and the spread only copies the list, so every tool result shares the same operation dicts. If anything downstream mutates one, it changes the template for later calls. copy.deepcopy(compile_flight_template()) here would rule that out.
| children: (format: A2UIInferenceFormat) => React.ReactNode; | ||
| template?: boolean; | ||
| }) { | ||
| const [format, setFormat] = useState<A2UIInferenceFormat>("express"); |
There was a problem hiding this comment.
Nit: because the state starts as express and ?format= is read in an effect, ?format=direct_json first mounts an Express provider and conversation, then remounts with Direct JSON through the key={format} below. Unknown values also quietly become Express. Not rendering the children until the param has been read would avoid the double mount.
The google-adk dynamic demo overrides Row and Column with the optional gap before the required children. Express maps positional arguments in property order, so Gemini's natural Row([...], gap=16) bound the list to gap and then set gap again, and every first attempt was rejected and retried. List children first so the positional argument lands on it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
mme
left a comment
There was a problem hiding this comment.
Thanks Mark, this covers everything. The Express fallback fixture, afterReload re-arming the probe, capping only TOOL_CALL_ARGS, the lazy template compile and the manifest version all address the blocking items, and the registry flag, reused validator, null forwardedProps, deep copy and single mount take care of the small ones. The children-first fix for Express positional arguments makes sense too. Approving, with two non-blocking notes on the description:
- Direct JSON coverage. The checks now always run with the page's selected format, which defaults to Express, so scheduled runs still don't exercise Direct JSON. The line "so Direct JSON stays covered" reads a bit stronger than that. Either a Direct JSON scheduled cell or a softer line in the description would be fine.
- Shared runner change. Taking the error-banner baseline before the send (and before
preFillforskipSendturns) is a good fix, but it changes behaviour for every probe in every integration, not just ADK. Worth a line in the description so it's easy to find if another integration's probe behaves differently.
Tiny nit: the comment above Column's children still says Row([...], gap=16).
Upgrades `@a2ui/web_core` from 0.10.4 to 0.15.0 in `core`, `a2ui-renderer`, `react-core`, `angular`, `vue`, the Angular v2 demo and `showcase/angular`. Tracked in [PNI-763](https://linear.app/copilotkit/issue/PNI-763/upgrade-copilotkit-to-a2uiweb-core-0150). The jump spans five minor releases and 29 breaking changes. Most of them don't touch our code, but a few changed runtime behaviour without breaking any types. Those are the reason for most of the fixes here. ### What changed upstream, and how this PR adapts | web_core change | Effect on us | Fix | |---|---|---| | `MessageProcessor` validates every component update against the catalog (since 0.10.6, always on) | An invalid component update is rejected before it renders, so the existing per-component error card never appeared | The React provider records rejected updates per surface (`errorHandler`), and `A2UIRenderer` shows a surface-level alert. A data-only update doesn't clear it; a successful component update does | | Expression failures go to the surface's `onError` channel instead of being thrown | Malformed function arguments no longer reached our error boundary | The React adapter collects those errors while it binds a component and shows the component failure card | | `SurfaceGroupModel` forwards actions with `void emit(...)` | `surface.dispatchAction` settled before `onAction` finished | The React provider subscribes `onAction` on each surface, which still awaits it | | v0.9 messages are validated with `.strict()` | Noncanonical incoming operations carrying an extra top-level routing `surfaceId` are rejected | React, Vue, and Angular remove that routing metadata before strict processing while preserving the nested action's ID. Vue grouping now prefers the nested ID, matching React | | v0.9 common types carry local `REF:#/$defs/X` markers | Our catalog export left local `$ref`s pointing at nothing | The shared serializer writes them as `common_types.json#/$defs/X` with one stored copy, the same format as CopilotKit#8120 | | Action props are typed `(options?: ActionDispatchOptions) => Promise<void>` | `onClick={props.action}` passed the click event in as `options` | Buttons call `props.action?.()` | | `ComponentContext.dispatchAction` takes a typed action | Angular's public `dispatch(action: unknown)` no longer typechecked | Cast at the call site. The public type is unchanged | The Angular test fixture changes are not behaviour changes. `tabs: []`, a missing required `label`, and a required `Metric.value` sent late were all invalid against their schemas under 0.10.4 as well. 0.15 is the first version that checks them. Those fixture corrections did not weaken existing assertions. ### Behaviour change to be aware of Because of the always-on validation, a component that arrives before its required props now gets its update rejected, and the surface shows an error until a valid update arrives. Under 0.10.4 it rendered with those props missing. - **Express (ADK):** unaffected, because the SDK only sends snapshots after they pass validation. - **Direct JSON (ADK):** no rejected updates in the D6 replay matrix below. Streams with more partial components could still hit it. ### Validation - **Unit tests:** typecheck and tests pass for `shared`, `a2ui-renderer`, `react-core`, `angular`, `vue` and `web-inspector`: 8,447 tests, 0 failures. - **D6 matrix (aimock replay):** all 6 combinations pass, using CopilotKit#8122's format and progressive-rendering checks. - **Setup:** the google-adk Showcase from CopilotKit#8122 (`e1414c2b8a`), built with this branch's `core`, `shared`, `a2ui-renderer` and `react-core` packed as tarballs. The image contains exactly one copy of `@a2ui/web_core`, version 0.15.0. - **Checks:** each probe loaded the requested `?format=` and recorded its evidence. No run logged a render error, a validation rejection or an unknown-key error. | Demo | Express | Direct JSON | |---|---|---| | `declarative-gen-ui` (4 turns) | ✅ 2–11 progressive paints per turn before the tool finished | ✅ | | `a2ui-fixed-schema` | ✅ | ✅ | | `a2ui-recovery` (heal + exhaust) | ✅ | ✅ | ### Additional consumer and integration validation (2026-11-04) Validated the four packed packages (`core`, `shared`, `a2ui-renderer`, `react-core`, version 1.84.1) built from this PR at `37b8283e41`. Confirmed the candidate renderer resolves `@a2ui/web_core` 0.15.0 and that the harness image contains the format/wire assertions. **A2UI playground consumer** ([CopilotKit#8100](CopilotKit#8100), `d939a844cb`, `examples/showcases/a2ui-playground`): - Installed the published 1.84.1 baseline, then repeated the checks with the four local tarballs selected by dependency overrides. Used the standalone app's own pnpm root and scripts. - `pnpm typecheck`, `pnpm test`, and `pnpm build` pass on both. Tests cover 3 Express streaming/round-trip cases, 8 composer cases, and the repair checks. - Browser checks match on both: 107 component sample previews render with no page errors; the same 14 component documentation pages have no sample preview. All 25 JSON editor checks pass, including edits, syntax/schema errors, retention of the last valid preview, reset, copy, resize, and reopening the editor. - Verified the recorded A2UI 1.0 replay on the candidate through completion in CopilotKit, ChatCN, Material, and Bring-your-own design systems. - The bundled browser scripts have stale inspector control names and assume every component page has a sample. Adapted copies outside the repository were used for the baseline/candidate comparison. - A fresh live Gemini Express generation rendered 14/14 components successfully: first real content at 7.65s, stream complete at 15.43s. The UI was visibly populated while Express lines were still arriving. The configured model is `gemini-flash-latest`; a direct Google API check resolved it to `gemini-3.8-flash`. A separate published-package baseline run also completed (19/19 components). These independently generated layouts are not a controlled renderer performance benchmark. **Additional Direct JSON D6 replay checks**, using the same shared probe: ```sh bin/showcase test langgraph-python:declarative-gen-ui --d6 --format direct_json --isolate <session-name> --rebuild --keep --verbose bin/showcase test strands:declarative-gen-ui --d6 --format direct_json --isolate <session-name> --rebuild --keep --verbose ``` | Integration | Sales dashboard | Team performance | At-risk accounts | Account details | |---|---|---|---|---| | LangGraph Python | ✅ | ✅ | ✅ | ✅ | | Strands Python | ✅ | ✅ | ✅ | ✅ | Each turn passed the structured `render_a2ui` Direct JSON wire assertion and produced exactly one fresh rendered surface. Strands used `ag_ui_strands` 1.0.0 and `strands-agents` 1.55.0. Both integration images used runtime 1.68.2 / `@ag-ui/a2ui-middleware` 0.0.10 with this PR's four tarballs; the legacy Inspector-to-core 1.68.2 override was removed inside the disposable builds so the selected frontend packages could resolve consistently. **Mastra follow-up:** [PNI-766](https://linear.app/copilotkit/issue/PNI-766/mastra-declarative-a2ui-catalog-rejects-rowcolumn-gap-from-dashboard). The first dashboard fixture emits `Column.gap`, but Mastra's catalog lacks the gap-aware Row/Column overrides present in LangGraph Python and Strands Python. The complete JSON operations arrive at the browser, then rendering fails. Reproduced with both published 1.84.1 / web_core 0.10.4 and this PR's tarballs / 0.15.0, so this is an existing catalog/fixture mismatch. The D6 attempts were stopped after first-pill diagnosis and are not counted as completed passing or failing D6 runs. **Coverage limit:** the additional D6 checks use recorded model responses and emit one completed operations snapshot per turn. They do not exhaust arbitrary partial-component/required-prop streaming cases. The live playground check exercises its Express generation path; it does not validate live Express behavior for every Python adapter. ### Angular artifact budget and Angular/Vue validation (2026-11-04) Reproduced the failing canonical Angular artifact build and compared fresh builds at this PR's parent (`e43fc79354`) and candidate (`37b8283e41`) using `pnpm nx run @copilotkit/showcase-angular-host:build --skip-nx-cache --outputStyle=static`. | Initial static graph | Parent / web_core 0.10.4 | Candidate / web_core 0.15.0 | |---|---:|---:| | Raw bytes | 1,586,633 | 1,913,989 | | Gzip bytes | 224,118 | 316,283 | | Brotli bytes | 180,777 | 257,383 | The raw increase is 327,356 bytes (20.6%). Esbuild input attribution shows approximately +250 KB inside web_core, +68 KB for `redos-detector`, and +22 KB for Lit dependencies; the generated frontend catalog is unchanged. The new public processor/catalog implementations retain multi-version adapters, schema loading/serialization and payload validation. The upstream public basic-catalog exports also retain their web-component implementations. Removing these requires a separate packaging/optimization change; this PR keeps the supported upstream entry points and validation intact. Re-recorded the bundle baseline with the exact source revision and parent comparison. The 10% regression allowance and 4,600,000-byte absolute cap are unchanged; the effective cap becomes 2,105,387 bytes. Historical runtime-readiness samples remain unchanged and were **not** re-measured. A fresh full Angular artifact build now passes both the budget check and the audit for React inputs, duplicate Angular core versions and forbidden browser text. Additional checks: ```sh pnpm nx run-many -t test -p @copilotkit/angular @copilotkit/vue --parallel=1 --skip-nx-cache --outputStyle=static pnpm nx run-many -t check-types -p @copilotkit/angular @copilotkit/vue --parallel=1 --outputStyle=static pnpm nx run @copilotkit/showcase-angular-host:test --skip-nx-cache --outputStyle=static pnpm nx run @copilotkit/showcase-vue-host:test --skip-nx-cache --outputStyle=static pnpm nx run @copilotkit/showcase-vue-host:build --outputStyle=static pnpm nx run @copilotkit/angular-demo:build ``` - Angular package: 569 passing tests, 1 existing skip; Vue package: 1,212 passing tests. Both package typechecks pass. Angular showcase: 21 Node tests + 167 Angular tests pass. Vue showcase: 22 tests and production build pass. - Native Chrome, Angular `/a2ui-angular`: existing scripted streamed operations render basic and custom components. Refresh changes revenue `$4.2M → $4.6M`, deals `38 → 41`, and win rate `31% → 34%`; Approve returns “Plan approved at $4.6M revenue.” - Native Chrome, Angular `/a2ui-recovery`: observed building status, recovery to the weekly signups surface, and terminal failure with expandable validation details after three attempts. - Native Chrome, Vue `/a2ui-demo` and `/a2ui-catalog`: both render the prompt and Confirm button; clicking delivers the action and returns confirmation on `a2ui-demo-thread` and `a2ui-catalog-thread`, respectively. This also exercises provider-selected catalogs with a catalog-only runtime. - Existing Vue demo caveat: `DemoButtonAgent` emits `RUN_FINISHED` without `threadId`/`runId`, so Inspector reports an agent error after rendering. The identical malformed finish event is rejected by the parent's unchanged `@ag-ui/client` 1.0.2 as well. Rendering and button action delivery succeed; these routes are not claimed as error-free end-to-end runs. - Browser checks used the existing scripted agents, **not live model generation**. Angular validation used temporary runtime-port/CORS settings to avoid an occupied port; both source files were restored before committing. No consumer/host behavior changes are included in the budget fix. ### Review regression coverage (2026-11-05) Extended the existing tests for the web_core 0.15 compatibility changes: - A rejected component update sets the surface alert; a successful data-only update preserves it; an accepted component update clears it on the same surface. - The malformed-function case explicitly asserts the bind-time component failure card, distinct from the surface-level processing alert, and recovery after corrected component props. - The React routing regression now renders data-bound text from operations with conflicting top-level and nested IDs and asserts there is no processing error. Vue mirrors the same case and test title. - Angular normalization covers all four v0.9 operation kinds with routing metadata, preserves the input objects and nested IDs, and still rejects unrelated envelope keys or missing nested IDs. - The existing deferred-promise test already verifies that `surface.dispatchAction` awaits `onAction`; it remains unchanged. The new Angular and Vue routing cases failed before the fixes, then passed after them. Production changes remove the redundant routing field only at the Angular/Vue processing boundaries and make Vue grouping prefer nested IDs. This preserves the compatibility behavior previously exercised by React's OSS-1048 regression. No runtime/SDK producer was identified that adds this field; it is compatibility handling for noncanonical incoming payloads. Validation for the review changes: all four package typechecks and builds pass; 4,546 tests/script checks pass with 31 existing skips. Formatting and scoped lint pass without new diagnostics. Full Vue package lint retains existing debt; the changed renderer's findings decreased from 7 to 6, and the other changed Vue source/test files are clean. ### Merged main and live Gemini Angular smoke (2026-11-05) Merged `main` at `c6026e9144` in `8e1e2a26ee`. Kept the Angular demo's single 0.15.0 dependency and aligned the new `@copilotkit/core/generative-ui` dependency from main to 0.15.0: mixed core 0.10.4 and renderer 0.15.0 models produced incompatible `SurfaceModel`/`DataModel` types. Frozen install, five-package typechecks/builds, and 6,546 tests pass (58 skips). The Angular demo and canonical Angular artifact build pass; initial raw graph is 1,913,996 bytes against the unchanged 2,105,387-byte effective cap, and the browser artifact audit is clean. Merge hooks also passed after selecting the existing compatible .NET/Ruby/Python tools and clearing the inherited telemetry opt-out only for mocked test subprocesses. The live Angular smoke uses the actual `google/gemini-3.8-flash` API through the demo's default agent. It exposed two separate shared issues: 1. **CopilotKit runtime signature transport — fixed in `d94e13ec89`.** Both AI SDK conversion paths dropped Gemini's opaque tool thought signature, and history conversion failed to restore it. The runtime now uses AG-UI 1.0.2's existing `REASONING_ENCRYPTED_VALUE` tool-call event and restores the exact value to Google provider options. No AG-UI source/dependency changes are included. Seven failing signature cases became green; 86 focused tests and 3,388 full runtime tests pass (4 skips), with runtime types/build green on the merged branch. 2. **AG-UI synthetic action tool call — follow-on [PNI-767](https://linear.app/copilotkit/issue/PNI-767/ag-ui-a2ui-actions-fail-on-gemini-synthetic-log-a2ui-event-has-no), parented to PNI-763.** `@ag-ui/a2ui-middleware` 0.0.10 fabricates an assistant `log_a2ui_event` call to represent a UI action. Gemini did not generate that call, so it has no genuine thought signature. The upstream middleware needs to represent the action as user input/context instead. No fabricated signature or validation bypass was added. **Observed in Chrome after the runtime fix:** Gemini renders “Angular live smoke,” the Open incidents=3 and Healthy services=12 KPIs, and Acknowledge. A normal follow-up completes with `ANGULAR_GEMINI_HISTORY_OK` and no run error, proving signed model history can continue. Clicking Acknowledge still returns the upstream missing-signature error for `log_a2ui_event` (position 6). A plain AG-UI HttpAgent reproduces the same action failure without Angular. The smoke is therefore **passing for generation/history continuation, failing for button continuation**, tracked by PNI-767; it is not claimed as a fully passing action e2e. The local same-origin proxy only redirects the demo's runtime URL to an available port, captures SSE, and serves the built frontend. No Angular application behavior was modified for validation. ### Follow-ups (not in this PR) 0.15's `Catalog.toJson()` produces the spec catalog document. For our basic catalog it's 29 KB, against 148 KB for our own export. It also writes `child` as a component reference (PNI-760) and moves `weight`/`accessibility` into a shared block (PNI-761). Two gaps need closing before we switch to it: - Generated custom components don't get the `ComponentCommon` mixin. - `common_types.json` isn't embedded in the document. 🤖 Generated with [Claude Code](https://claude.com/claude-code) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> <!-- coderabbit-ai-generated:v1 --> ## Summary by CodeRabbit * **New Features** * React surfaces now display relevant errors when components fail to initialize or process messages. A hook is available to access errors for a specific surface. * Schema references support local definition markers and resolve them to shared types. * Google and Vertex tool-call signatures are preserved in streamed events and message history. * **Bug Fixes** * Button actions are invoked safely when present. * Message routing respects nested surface IDs, and streamed component values update without recreating the component. * **Chores** * Updated the shared web core dependency across packages and demos. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
mme
left a comment
There was a problem hiding this comment.
Thanks Mark, the Column comment fix looks good. Re-approving, since the push dismissed my earlier approval. The smoke failure looks like the k3d 504 flake rather than anything in this PR.
…it#8255) The Google ADK showcase and React/Angular ADK starters still selected the legacy A2UI SDK through `ag-ui-adk` 0.7.0. Align their Python dependencies with the published SDK/core releases and regenerate both starter lockfiles. The showcase pin-ratchet baseline drops from 22 to 21 because GenAI now has an exact pin. | Dependency | Candidate | |---|---:| | google-adk | 2.14.0 | | google-genai | 2.34.0 | | ag-ui-adk | 0.12.0 | | a2ui-agent-sdk | 0.10.0 | | a2ui-core | 0.5.0 | | ag-ui-protocol | 1.0.0 | The bridge requires Python AG-UI 1.0 and the newer A2UI SDK/core. GenAI remains on the compatible 2.x line because ADK requires `<3`. Only Python manifests, lockfiles, derived pin-ratchet metadata, and the four retired starter dependency exceptions change; the existing frontend/runtime dependencies and shared probes are preserved. Validation: - Existing Google ADK Python tests: 80 pass with the old dependency set and 80 with the candidate. - Both starters: lock checks, frozen installs, dependency checks, and real module imports pass on Python 3.13.13. - Starter dependency validator: remove the four now-stale unconstrained Google package exceptions; its 30 tests and repository manifest check pass. - Rebuilt the actual showcase Docker image on Python 3.12; frontend production build and explicit `typecheck:json-render` pass. Read back all six package versions inside the candidate image. - Shared control-plane D6 probes pass before and after the upgrade on three real cells: declarative generation, fixed-schema A2UI, and A2UI recovery. Fixtures and probes are unchanged. - Live Gemini through the existing production frontend renders the requested incident dashboard and completes a normal history continuation with `ADK_UPGRADE_HISTORY_OK`. A separate real Express request using the client-supplied catalog produces a root Text surface and emits three operations tagged `inferenceFormat: express`. Express coverage is limited: a nested Column request exhausts compiler recovery because the current showcase catalog lacks child-reference metadata (`root_children_0` is not reachable from `root`). This is recorded as a failed check, not a passing end-to-end Express result. The fuller Express UI/catalog/probe work remains in CopilotKit#8122; this PR isolates its Python dependency migration. PNI-767's separate runtime middleware action failure is not changed here. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> <!-- coderabbit-ai-generated:v1 --> ## Summary by CodeRabbit * **Chores** * Updated and pinned dependency versions for the ADK integrations and showcase. * Updated the validation baseline to reflect the current dependency checks. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
…fy-google-blog-comments # Conflicts: # showcase/integrations/google-adk/requirements.txt # showcase/integrations/google-adk/src/app/demos/a2ui-fixed-schema/page.tsx # showcase/scripts/fail-baseline.json # showcase/scripts/showcase-canonical-pins.json
1.86.0 carries the A2UI catalog serializer fix from #8120 that A2UI Express needs for composed custom components. @ag-ui/client stays at 1.0.2 to match the version @copilotkit/runtime 1.86.0 pins, so only one copy is installed. Also give the A2UI format toolbar the dark-mode tokens the rest of the demo shell uses. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The Google ADK Python Showcase only exercised the older Direct JSON A2UI path. This adds an Express/Direct JSON selector to its dynamic, fixed-template and recovery demos, with Express as the default. The choice travels through existing CopilotKit provider properties. Fixed templates compile against the actual frontend catalog, and the recovery demo keeps its own ADK tool.
Shared browser probes now check that A2UI snapshots change and visible updates appear before the tool call completes, so they catch UI that only renders at the end. They also verify the page's selected inference format. Scheduled runs use the default Express format; Direct JSON is exercised only when explicitly selected with
--format direct_json. Raw chunked Express replay fixtures go through the Python compiler and streaming path instead of replaying precompiled UI operations.The shared conversation runner now captures the error-banner baseline before sending, including before
preFillonskipSendturns, and before resending after a cold-start reload. This affects error detection for every probe across all integrations.Dependencies
Everything is pinned to published releases:
google-adk==2.14.0,a2ui-agent-sdk==0.10.0,a2ui-core==0.5.0,ag-ui-adk==0.12.0,ag-ui-a2ui-toolkit==0.0.6,ag-ui-protocol==1.0.0@copilotkit/*1.86.0, which includes the renderer catalog fix from fix(a2ui-renderer): preserve catalog references and capabilities #8120, and@ag-ui/client1.0.2, the version@copilotkit/runtime1.86.0 pins, so only one copy is installedThe temporary vendored SDK snapshot and the HTTP 503 "release-blocked" guard are gone.
Generated catalogs
The A2UI catalogs that the Python tests check conformance against are generated, not committed.
showcase_validate.ymlrunsnpm ci --legacy-peer-deps && npm run export:a2ui-catalogsforgoogle-adkbefore its Python tests, matching the Docker build.Validation
After merging
mainand moving to 1.86.0: 89 ADK Python tests pass locally against the 1.86.0 catalog export,next buildsucceeds, andvalidate-pinsmatchesmain's baseline (21). The 6 TypeScript errorstscreports (auth, headless-complete, hitl-in-app, one e2e spec) are identical on 1.84.1 and are skipped by the build (ignoreBuildErrors).Earlier, on 1.84.1: 86 ADK Python tests passed and
Showcase: Validate, which includes the catalog export, passed in CI.D6 real-browser checks ran on a local image built from this branch (
e1414c2b8a). Each probe loaded the requested?format=and recorded A2UI format and progressive-rendering evidence.declarative-gen-uiExpressdeclarative-gen-uiDirect JSONa2ui-fixed-schemaExpressa2ui-fixed-schemaDirect JSONa2ui-recoveryExpressa2ui-recoveryDirect JSONgenerativelanguage.googleapis.com, and aimock logged 0 requests for each.a2ui-recovery: the heal and exhaust turns depend on deliberately bad model output. Real Gemini produced valid output instead, so these turns can only be checked with replay fixtures.declarative-gen-uiExpress (live): there were two separate issues.1d6fcf34b3). The demo'sRowandColumnlisted the optionalgapbefore the requiredchildren. Express assigns positional arguments in property order, so Gemini's naturalRow([...], gap=16)failed with "Property 'gap' … was provided multiple times". Every first attempt was rejected and retried. Withchildrenlisted first, two live runs had no rejections, and replay still passes in both formats.--formatand skipped the format checks (tracked in PNI-764). The results above come from a rebuilt harness.The
security / zizmorfailure comes from existingref-version-mismatchwarnings in workflows this PR doesn't touch.🤖 Generated with Claude Code