Skip to content

Conversation

@roomote
Copy link
Contributor

@roomote roomote bot commented Jan 12, 2026

Adds diagnostic information to the details popup for tool call error messages when the model does not follow tool calls correctly.

Changes

  • Modified Task.ts to capture and include diagnostic information when MODEL_NO_TOOLS_USED or MODEL_NO_ASSISTANT_MESSAGES errors occur
  • Updated ChatRow.tsx to extract diagnostic info from error messages and pass to ErrorRow component
  • Diagnostic details now include:
    • Tool protocol being used
    • Consecutive error count
    • Assistant message length
    • Content blocks information
    • Raw assistant message

Impact

Users will now see a "Details" link for these model error types, allowing them to view diagnostic information that can help troubleshoot why the model is not using tools correctly.


View task on Roo Code Cloud


Important

Adds diagnostic details to error messages for specific model errors, enhancing troubleshooting in Task.ts and ChatRow.tsx.

  • Behavior:
    • Task.ts: Adds diagnostic info to MODEL_NO_TOOLS_USED and MODEL_NO_ASSISTANT_MESSAGES errors.
    • ChatRow.tsx: Extracts diagnostic info from error messages and passes it to ErrorRow.
  • UI:
    • Displays "Details" link for model error types, showing diagnostic info.
  • Misc:
    • Updates error handling logic in ChatRow.tsx for better user feedback.

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

- Include diagnostic information in MODEL_NO_TOOLS_USED error
- Include diagnostic information in MODEL_NO_ASSISTANT_MESSAGES error
- Update ChatRow to extract and display diagnostic details in error popup
- Diagnostic details include: tool protocol, consecutive error count, message length, content blocks, and raw assistant message
@roomote
Copy link
Contributor Author

roomote bot commented Jan 12, 2026

Rooviewer Clock   See task on Roo Cloud

Review completed. No issues found.

The implementation correctly adds diagnostic information to MODEL_NO_TOOLS_USED error messages, making it easier for users to troubleshoot when models fail to use tools. The frontend changes properly extract and display this diagnostic info in the ErrorRow details popup.

Changes reviewed:

  • Task.ts: Adds diagnostic info (tool protocol, error count, message length, content blocks, raw message)
  • ChatRow.tsx: Updates error detection to use startsWith() and combines i18n text with diagnostic info

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 Jan 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Issue/PR - Triage New issue. Needs quick review to confirm validity and assign labels.

Projects

Status: Triage

Development

Successfully merging this pull request may close these issues.

3 participants