Skip to content

fix(sentry): suppress user cancelled transaction errors in useSend - #2584

Open
sentry[bot] wants to merge 1 commit into
masterfrom
seer/fix/sentry-suppress-send-cancellation
Open

sentry[bot] wants to merge 1 commit into
masterfrom
seer/fix/sentry-suppress-send-cancellation

Conversation

@sentry

@sentry sentry Bot commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

This PR addresses an issue where Sentry was reporting "Error: User cancelled transaction" events from hooks/useSend.ts as actual errors.

Problem:
When a user deliberately cancelled a transaction initiated via useSend.ts (e.g., by dismissing a biometric or passkey prompt), the USER_CANCELLED_TRANSACTION sentinel was converted into a generic Error('User cancelled transaction') and then unconditionally captured by Sentry. This led to false-positive error reports, creating noise in Sentry and obscuring genuine issues.

Root Cause:
Unlike hooks/useWithdraw.ts, which correctly uses the isUserCancelledError utility to prevent Sentry from capturing user-initiated cancellations, hooks/useSend.ts lacked this guard.

Solution:

  1. Imported isUserCancelledError from @/lib/utils/withdrawErrors into hooks/useSend.ts.
  2. Wrapped the Sentry.captureException call in hooks/useSend.ts with an if (!isUserCancelledError(error)) condition.

This change ensures that user-initiated cancellations are no longer reported to Sentry as errors, reducing noise and improving the signal-to-noise ratio for actual issues.

Fixes SOLID-K6

@sentry <feedback>: Autofix iterates on these changes
@sentry stop iterating: Autofix stops iterating on this run

This PR was automatically generated by Sentry. You can adjust this setting at any time.


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

@vercel

vercel Bot commented Sep 24, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

2 Skipped Deployments
Project Deployment Actions Updated
solid-app Ignored Ignored Preview Sep 24, 2026 10:36pm UTC
solid-app-staging Ignored Ignored Preview Sep 24, 2026 10:36pm UTC

Request Review

This branch has not been deployed

No deployments
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.

0 participants