Skip to content

fix(ui): a tool result with an error output renders as output-error - #441

Merged
robelest merged 1 commit into
mainfrom
fix/162-tool-error-output
Oct 30, 2026
Merged

robelest merged 1 commit into
mainfrom
fix/162-tool-error-output

Conversation

@robelest

Copy link
Copy Markdown
Collaborator

A tool that throws is stored with an error-text (or error-json) output, but toUIMessages only treated a result as an error via isError or message.error, so it rendered as output-available. The tool-result mapping now also treats error-text/error-json outputs as output-error, with the value (JSON-stringified for error-json) as errorText, whether or not the call is on the same page.

Fixes #162.

@robelest
robelest force-pushed the fix/162-tool-error-output branch from 94bc79c to e499a7e Compare October 30, 2026 20:21
@pkg-pr-new

pkg-pr-new Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

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

commit: decc349

@robelest robelest mentioned this pull request Oct 30, 2026
@robelest
robelest force-pushed the fix/162-tool-error-output branch from e499a7e to decc349 Compare October 30, 2026 21:48
@robelest
robelest merged commit fc0ff65 into main Oct 30, 2026
3 checks passed
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.

The tools not reporting proper errors with tools

1 participant