Skip to content

SentrySDK logs fatal errors when crash reporting is disabled #854

Description

@pacificleo

Please do not open a pull request yet. A maintainer reviews the report and adds the ready label once it is confirmed.

What happened?

When running the app with crash reporting disabled in settings (or when testing a release build locally), the console is flooded with fatal Sentry SDK errors whenever a Redux action is dispatched:
[Sentry] [fatal] ... The SDK is disabled, so addBreadcrumb doesn't work. Please ensure to start the SDK before adding breadcrumbs.

This happens because LogActionsReducer and GitClient directly call SentrySDK.addBreadcrumb and SentrySDK.captureMessage without first checking if Sentry is enabled.

Steps to reproduce

  1. Run a Release build of Supacode.
  2. Turn off Crash Reporting in the settings (or don't provide a Sentry DSN).
  3. Perform any action in the app that triggers a Redux action or a failing git command.
  4. See the console flooded with Sentry fatal errors.

Supacode version and build

0.10.9

macOS version

macOS 26.4

System locale

en_US

Are you planning to fix this yourself?

  • I intend to open a pull request once this is confirmed and marked ready.

Before submitting

  • I searched existing issues and this is not a duplicate.
  • I am on the latest available version of Supacode.
  • I understand pull requests are closed until the issue is marked ready.
  • I agree to follow this project's Code of Conduct.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions