-
Notifications
You must be signed in to change notification settings - Fork 2.8k
ux: add downloadable error diagnostics from chat errors #10188
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
Conversation
All issues have been resolved. Latest commit removes unused
Mention @roomote in a comment to request specific changes to this pull request or fix all unresolved issues. |
Co-authored-by: roomote[bot] <219738659+roomote[bot]@users.noreply.github.com>
All issues from previous review have been addressed.
Mention @roomote in a comment to request specific changes to this pull request or fix all unresolved issues. |
It's still too much work to understand some errors, this captures more task detail to help with debugging.
We already have a good way of pulling out this info, but it's behind the debug flag and away from the context of the task.
Changes
pnpm lintpnpm check-typespnpm test(fails in@roo-code/vscode-webviewBedrock provider tests; proceeding as requested for this branch).Important
Adds downloadable error diagnostics feature, generating JSON files with error metadata and API history, accessible via a new UI action.
generateErrorDiagnostics(diagnosticsHandler.ts): Creates JSON diagnostics with error metadata and API history, saves to temp file, opens in VS Code.downloadErrorDiagnosticshandling inwebviewMessageHandler.ts.downloadErrorDiagnosticstoWebviewMessage.ErrorRow.tsxto trigger diagnostics download.diagnosticsHandler.spec.ts), message routing (webviewMessageHandler.spec.ts), and UI messaging (ErrorRow.spec.tsx).chat:errorDetails.diagnosticsacross supported locales.This description was created by
for ab41d9f. You can customize this summary. It will automatically update as commits are pushed.
Note
Adds a diagnostics download flow that packages error metadata and API history into a temp JSON and opens it in VS Code, wired from the chat error UI.
generateErrorDiagnosticsinsrc/core/webview/diagnosticsHandler.tsreadsapi_conversation_history.json, writes temproo-diagnostics-*.json, and opens it via VS Code.src/core/webview/webviewMessageHandler.tshandlesdownloadErrorDiagnostics(errors if no active task) and logs/open errors accordingly.WebviewMessagewith"downloadErrorDiagnostics".webview-ui/src/components/chat/ErrorRow.tsxadds a “Get detailed error info” action (postsdownloadErrorDiagnostics) and adjusts copy button label.src/core/webview/__tests__/*.spec.tsand UI tests inwebview-ui/src/components/chat/__tests__/ErrorRow.spec.tsx.webview-ui/src/i18n/locales/*/chat.json.Written by Cursor Bugbot for commit ab41d9f. This will update automatically on new commits. Configure here.