feat(error): add technical crash report to generic error screen#2225
Conversation
|
the copy to clipboard details |
There was a problem hiding this comment.
Pull request overview
Adds a collapsible technical crash-report section to the generic error screen so users can view/copy actionable diagnostics (error message/stack + environment metadata) without overwhelming the default error UI.
Changes:
- Introduces
TechnicalDetails(collapsible UI + copy-to-clipboard crash report). - Threads an optional
errorthrough the error components to render technical details when available. - Widens the base error card layout and adds unit tests for the new technical details behavior.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| renderer/src/common/components/error/technical-details.tsx | New collapsible technical details UI, environment probing, and crash report copy logic. |
| renderer/src/common/components/error/index.tsx | Passes the caught error through to GenericError. |
| renderer/src/common/components/error/generic-error.tsx | Accepts optional error prop and renders TechnicalDetails when present. |
| renderer/src/common/components/error/base-error-screen.tsx | Increases error card max width to better fit technical content. |
| renderer/src/common/components/error/tests/technical-details.test.tsx | Adds tests for collapsed/expanded behavior, metadata, clipboard copy, and missing stack handling. |
ab5478a to
f551e59
Compare
|
@claude succint review |
|
Claude finished @peppescg's task in 1m 5s —— View job Succinct reviewOverall this is a clean, well-tested addition. Most of the Copilot reviewer's flags are already addressed in the current code ( Substantive
Minor / nits
Looks good
|
f551e59 to
8b3565e
Compare
Enhance the GenericError screen with a collapsible "Show details" section that surfaces the error message, stack trace, environment metadata (desktop version, CLI version, platform), and a one-click "Copy error report" button. This allows users to provide actionable bug reports without needing to open browser dev tools. Closes #2210 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
8b3565e to
1af1c61
Compare
Summary
Kapture.2026-05-12.at.12.33.31.mp4
max-w-mdtomax-w-lgto accommodate technical detailsChanges
error/technical-details.tsxerror/generic-error.tsxerrorprop and render<TechnicalDetails>error/index.tsxerrorthrough to<GenericError>error/base-error-screen.tsxmax-w-mdtomax-w-lgerror/__tests__/technical-details.test.tsxHow it works
Closes #2210
Test plan
pnpm run lintpassespnpm run type-checkpasses🤖 Generated with Claude Code