feat(a2ui): live sendDataModel round-trip + capabilities helper (Phase 4 of the v0.9 migration) - #820
Merged
Merged
Conversation
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…e 4) Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
|
I'll analyze this and get back to you. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
Phase 4 — final phase of the A2UI v0.9.1 migration (follows #817, #818, #819).
sendDataModelmetadata: whencreateSurface.sendDataModelis true, outbound action messages now attach the live per-surface data model (user edits included via the Phase-3 surface store, renderer-internal_a2uiCheckskey stripped) instead of the agent-seeded snapshot.a2uiClientCapabilities(): typed helper returning the renderer'sA2uiClientCapabilities(supportedCatalogIds: [basic catalog]) for hosts to attach as catalog-negotiation transport metadata.With this, the migration is fully conformant to the v0.9.1 stable feature set: wire format, client-side functions, validation checks, and the sendDataModel round-trip.
Verification
libs/a2ui+libs/chatlint/test/build green (1135 chat tests incl. the new round-trip spec); pytest twins 56 + 23nx affected: green except the known pre-existingcockpit-telemetry:lintworktree-environment failure (untouched project)sendDataModel: truefeedback form, typed a comment, submitted — the outbound wire message (verified via thread state) carriedmetadata.a2uiClientDataModel.surfaces["feedback-surface-1"].comment = "The new checkout flow is great", i.e. the live-typed value round-tripped to the agent.🤖 Generated with Claude Code