Skip to content

support message list#1074

Merged
wrenj merged 10 commits intogoogle:mainfrom
wrenj:ll
Apr 9, 2026
Merged

support message list#1074
wrenj merged 10 commits intogoogle:mainfrom
wrenj:ll

Conversation

@wrenj
Copy link
Copy Markdown
Collaborator

@wrenj wrenj commented Apr 6, 2026

add interfaces for schema change

#1055

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces support for processing batches of messages in the v0.9 protocol. It adds new schemas and interfaces for message lists (both client-to-server and server-to-client), implements a processPayload method in the MessageProcessor to handle both single messages and lists, and includes unit tests for these changes. The review feedback focuses on maintaining protocol consistency by ensuring that the new message list structures include a version field, similar to other top-level messages.

Copy link
Copy Markdown
Collaborator

@jacobsimionato jacobsimionato left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approval pending resolving one nit!

})
.strict();

export declare interface A2uiClientMessageList extends z.infer<typeof A2uiClientMessageListSchema> {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This declaration doesn't match the rest of the file - can we just do:

export type A2uiClientMessageList =  z.infer<typeof A2uiClientMessageListSchema>;

?

I think may be we don't need the declaration for client-to-server because we don't validate?

@wrenj wrenj merged commit 5bcbe42 into google:main Apr 9, 2026
12 checks passed
@github-project-automation github-project-automation bot moved this from Todo to Done in A2UI Apr 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants