-
Notifications
You must be signed in to change notification settings - Fork 2.6k
fix: add crash recovery and Windows-specific error handling #6259
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
- Add global error handlers for uncaught exceptions and promise rejections - Implement crash information persistence for recovery on restart - Add Windows-specific signal handlers (SIGTERM, SIGINT, exit) - Enhance ErrorBoundary component with user-friendly crash recovery UI - Add restart functionality from ErrorBoundary - Implement task state persistence during crashes - Add subtask recovery mechanism to restore parent task context - Integrate crash telemetry logging - Add Windows-specific crash detection and messaging Fixes #6257
| {this.state.isRecovering ? ( | ||
| <> | ||
| <span className="codicon codicon-loading codicon-modifier-spin mr-2"></span> | ||
| {t("errorBoundary.restarting", "Restarting...")} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Avoid using inline English fallback strings in translation calls (e.g. t('errorBoundary.restarting', 'Restarting...')). Instead, rely solely on translations defined in your i18n JSON to meet our i18n guidelines.
| {t("errorBoundary.restarting", "Restarting...")} | |
| {t("errorBoundary.restarting")} |
This comment was generated because it violated a code review rule: irule_C0ez7Rji6ANcGkkX.
| "restartVSCode": "Restart VS Code", | ||
| "reportIssue": "Report Issue", | ||
| "technicalDetails": "Technical Details", | ||
| "helpText": "If the problem persists, please" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo/Incomplete text: The 'helpText' string reads 'If the problem persists, please'. Consider completing this sentence for clarity.
| "helpText": "If the problem persists, please" | |
| "helpText": "If the problem persists, please contact support." |
|
Closing, issue is not properly scoped |
Summary
This PR implements comprehensive crash recovery mechanisms and Windows-specific error handling to address the frequent crashes reported in issue #6257.
Changes
🛡️ Global Error Handling
🪟 Windows-Specific Improvements
🔄 Crash Recovery Features
🎯 Subtask Recovery
Testing
Screenshots
The enhanced ErrorBoundary now shows:
Fixes #6257
Important
This PR adds crash recovery and Windows-specific error handling, enhancing global error handling, UI, and telemetry logging.
extension.ts.extension.ts.ErrorBoundarycomponent inErrorBoundary.tsxwith crash recovery UI.extension.ts.reloadWindowcase towebviewMessageHandlerinwebviewMessageHandler.ts.common.jsonwith new error boundary messages.This description was created by
for 6fd883d. You can customize this summary. It will automatically update as commits are pushed.