Skip to content

Show agent turn errors - #3

Merged
roprgm merged 1 commit into
mainfrom
agent/show-turn-errors
Jul 13, 2026
Merged

Show agent turn errors#3
roprgm merged 1 commit into
mainfrom
agent/show-turn-errors

Conversation

@roprgm

@roprgm roprgm commented Jul 13, 2026

Copy link
Copy Markdown
Owner

This pull request enhances error handling and display for failed "turns" in the application. It introduces a TraceError type, updates the event and state models to capture error details, and adds a UI component to surface error messages to users. The most important changes are grouped below:

Error Handling and Data Model Updates:

  • Added a TraceError type to src/trace/types.ts and included it as an optional error field on the Turn type to standardize error information for failed turns. [1] [2]
  • Updated the turn.failed event in src/trace/events.ts to include error details (code, message, and optional details) by extending the event data with TraceError.
  • Modified the projector logic in src/trace/projector.ts to record error details on the Turn object when a turn fails.

UI Improvements:

  • Added a TurnError component to src/components/turn.tsx to display error messages and codes for failed turns, and updated the Turn component to render this error information when present. [1] [2]
  • Imported the CircleAlert icon in src/components/turn.tsx for visual indication of errors in the UI.
Screenshot 2026-07-13 at 00 56 52

@vercel

vercel Bot commented Jul 13, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
eve-devtools Ready Ready Preview, Comment Jul 13, 2026 6:07am

Request Review

@roprgm
roprgm merged commit fe5be23 into main Jul 13, 2026
3 checks passed
@roprgm
roprgm deleted the agent/show-turn-errors branch July 13, 2026 06:53
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