Skip to content

feat: returns validators for a streaming listUIMessages query - #430

Draft
robelest wants to merge 1 commit into
mainfrom
feat/stream-ui-messages-validator
Draft

robelest wants to merge 1 commit into
mainfrom
feat/stream-ui-messages-validator

Conversation

@robelest

Copy link
Copy Markdown
Collaborator

A streaming query that returns listUIMessages had no returns validator to use: vStreamMessagesReturnValue describes MessageDocs, so pairing them failed with TS2719. This adds vUIMessage and vStreamUIMessagesReturnValue, and shows returns in the streaming docs.

Supersedes #295, keeping its root fix. The StreamQuery change is no longer needed on main, and listUIMessages plus syncStreams already cover the *WithStreams helpers.

vStreamMessagesReturnValue describes MessageDocs, so a streaming query
that returns listUIMessages with it failed to compile (TS2719), and there
was no validator for UIMessages to use instead.

Co-authored-by: Seth Raphael <seth@convex.dev>
@pkg-pr-new

pkg-pr-new Bot commented Oct 28, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/@convex-dev/agent@430

commit: 7e63997

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant