Skip to content

Conversation

@roomote
Copy link
Contributor

@roomote roomote bot commented Dec 10, 2025

Fixes the issue where PR #9954 started showing the entirety of errors in ErrorRow. This PR restores the original intent from PR #9777 to keep error messages limited to defined messages, while adding the ability for users to view detailed error messages on demand.

In the process, I changed how we're tracking the retry timer to something a bit cleaner, which gives us more control and flexibility on the UI side, so the design looks a tad improved.

Hovering the item shows an i icon which, when clicked, shows the raw error message in a modal.

image
image
image

Keep in mind the quality of the content in the modal is 100% dependent on the quality of the error we send.

Changes

  • Added errorDetails prop to ErrorRow component
  • Show <Info /> icon on hover in error header when errorDetails is provided
  • Display detailed error message in modal dialog when Info icon is clicked
  • Add "Copy to Clipboard" button with <Copy /> icon in error details modal
  • Updated generic error case in ChatRow to show localized "Error" message with full details available on demand
  • Updated api_req_retry_delayed case to store non-HTTP error messages as errorDetails
  • Added i18n translations for error details UI in en/chat.json

Testing

  • All existing tests pass
  • Verified error display behavior matches requirements

View task on Roo Code Cloud


Important

Adds error details modal in ErrorRow.tsx for on-demand viewing and refines retry timer logic in Task.ts.

  • Behavior:
    • Adds errorDetails prop to ErrorRow in ErrorRow.tsx for detailed error messages.
    • Displays <Info /> icon on hover in error header when errorDetails is provided.
    • Shows detailed error message in a modal when Info icon is clicked.
    • Adds "Copy to Clipboard" button in error details modal.
    • Updates ChatRow.tsx to show localized "Error" message with full details on demand.
    • Stores non-HTTP error messages as errorDetails in api_req_retry_delayed case.
  • UI Components:
    • Adds i18n translations for error details UI in en/chat.json.
  • Misc:
    • Changes retry timer logic in Task.ts for cleaner tracking and improved UI control.

This description was created by Ellipsis for 6e8b0b7. You can customize this summary. It will automatically update as commits are pushed.

- Add errorDetails prop to ErrorRow component
- Show Info icon on hover in error header when errorDetails is provided
- Display detailed error message in modal dialog on Info icon click
- Add Copy to Clipboard button in error details modal
- Update generic error case to show localized message with details on demand
- Add i18n translations for error details UI
@roomote
Copy link
Contributor Author

roomote bot commented Dec 10, 2025

Rooviewer Clock   See task on Roo Cloud

Review complete. No issues found.

The latest commit (6e8b0b7) applies lighter visual treatment for errors by adjusting text colors and spacing. The changes are purely cosmetic refinements that improve the error display UX without introducing any functional issues.

Previous reviews

Mention @roomote in a comment to request specific changes to this pull request or fix all unresolved issues.

@hannesrudolph hannesrudolph added the Issue/PR - Triage New issue. Needs quick review to confirm validity and assign labels. label Dec 10, 2025
@brunobergher brunobergher marked this pull request as ready for review December 10, 2025 12:48
@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. Enhancement New feature or request UI/UX UI/UX related or focused labels Dec 10, 2025
@roomote
Copy link
Contributor Author

roomote bot commented Dec 10, 2025

Rooviewer Clock   See task on Roo Cloud

Review complete. No issues found.

The implementation correctly adds an error details modal with on-demand display. The changes follow existing patterns in the codebase:

  • The errorDetails prop is properly added to ErrorRow and passed from ChatRow
  • The Dialog component is used correctly for the modal
  • The retry timer extraction using <retry_timer> tags is clean and allows for better parsing
  • The i18n translations are properly added for all supported locales
  • The copy functionality works correctly with proper feedback

Mention @roomote in a comment to request specific changes to this pull request or fix all unresolved issues.

Copy link
Collaborator

@cte cte left a comment

Choose a reason for hiding this comment

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

LGTM!

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Dec 10, 2025
@brunobergher brunobergher merged commit ab18bf3 into main Dec 10, 2025
13 checks passed
@brunobergher brunobergher deleted the feature/error-details-modal branch December 10, 2025 16:41
@github-project-automation github-project-automation bot moved this from Triage to Done in Roo Code Roadmap Dec 10, 2025
@github-project-automation github-project-automation bot moved this from New to Done in Roo Code Roadmap Dec 10, 2025
@cte cte mentioned this pull request Dec 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Enhancement New feature or request Issue/PR - Triage New issue. Needs quick review to confirm validity and assign labels. lgtm This PR has been approved by a maintainer size:L This PR changes 100-499 lines, ignoring generated files. UI/UX UI/UX related or focused

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

5 participants