Skip to content

fix (ai): catch errors in ui message stream #6898

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Jun 27, 2025
Merged

fix (ai): catch errors in ui message stream #6898

merged 9 commits into from
Jun 27, 2025

Conversation

lgrammel
Copy link
Collaborator

@lgrammel lgrammel commented Jun 27, 2025

Background

Adding error parts to the ui message stream leads to processing failures.

Summary

  • add ErrorHandler type
  • add default error handler with console logging to Chat
  • use error handler in stream processing

Verification

Tasks

  • add test for handleUIMessageStreamFinish error case
  • changeset

Related Issues

#6879

@lgrammel lgrammel changed the title x fix (ai): catch errors in ui message stream Jun 27, 2025
@lgrammel lgrammel marked this pull request as ready for review June 27, 2025 14:26
@lgrammel lgrammel merged commit cb3b9c9 into v5 Jun 27, 2025
8 checks passed
@lgrammel lgrammel deleted the lg/Fqh5SF9 branch June 27, 2025 14:36
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