Skip to content

chore(desktop): disable the Report button in the error dialog - #5359

Merged
Jocs merged 1 commit into
developfrom
chore/disable-error-dialog-issue-report
Sep 15, 2026
Merged

Jocs merged 1 commit into
developfrom
chore/disable-error-dialog-issue-report

Conversation

@Jocs

@Jocs Jocs commented Sep 15, 2026

Copy link
Copy Markdown
Member

Summary

The "Unexpected main/renderer process error" dialog had a Report button that opened issues/new prefilled with the stack trace (title Unexpected error with message …, body with a placeholder for reproduction steps). Almost none of those reports include steps, and they arrive faster than they can be triaged — e.g. #5356.

This PR comments out that entry point in packages/desktop/src/main/exceptionHandler.ts:

  • the error.report button is removed from the dialog, which now offers only OK and Copy error;
  • the case 2 handler that built and opened the prefilled issue URL, and its createAndOpenGitHubIssueUrl import, are commented out.

utils/createGitHubIssue.ts and the error.report / error.unexpectedErrorWithMessage locale keys are left in place so the button can be restored by uncommenting. Help → Report Bug (which opens the issue list without a prefilled crash report) is unchanged.

Refs #5356

Test plan

  • eslint on the changed file
  • pnpm run typecheck
  • vitest run test/unit/specs/exception-handler-output.spec.ts
  • Throwaway probe (not committed): invoking the mt::handle-renderer-error handler shows a dialog with buttons [common.ok, error.copyError], and a response index of 2 does not call shell.openExternal

🤖 Generated with Claude Code

https://claude.ai/code/session_01JLExVPhcFJomRqWH47diMu

The unexpected-error dialog's Report button opened a GitHub issue
prefilled with only the stack trace. Those reports rarely include
reproduction steps and have flooded the issue tracker (e.g. #5356), so
comment the button and its handler out. OK and Copy error stay.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JLExVPhcFJomRqWH47diMu
@github-actions

Copy link
Copy Markdown
Contributor

Build artifacts for PR #5359:

Run: https://github.com/marktext/marktext/actions/runs/34914220221

Artifact Size Link
marktext-linux 637.9 MB Download
marktext-windows-arm64 279.4 MB Download
marktext-macos-x64 297.7 MB Download
marktext-macos-arm64 287.3 MB Download
marktext-windows-x64 287.6 MB Download

@Jocs
Jocs merged commit 4e6b6de into develop Sep 15, 2026
10 checks passed
@Jocs
Jocs deleted the chore/disable-error-dialog-issue-report branch September 15, 2026 00:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant