#10452 "Would you like to report this error to Cloudflare?" too easy to accept by accident
Confirmed bug in code: confirm() uses defaultValue=true for Enter key, but sentry code only sets fallbackValue=false (for CI). Cloudflare member also experiencing this, causing bogus error reports.
Fix sentry captureGlobalException to pass defaultValue: false to confirm()
Analysis Report
Issue Review: cloudflare/workers-sdk#10452
Summary
Error report prompt defaults to "yes" when Enter is pressed, causing accidental consent to share error reports.
Findings
- Created: 2025-08-23
- Updated: 2025-11-17
- Version: wrangler 4.32.0 → 4.60.0 (current)
- Component: wrangler (sentry/error reporting)
- Labels: bug
- Comments: 1 (from Cloudflare member confirming the issue)
Key Evidence
Issue confirmed by Cloudflare member: @kentonv (MEMBER) commented that they also experience this and submit "a lot of bogus error reports" because of it.
Bug verified in source code: The issue is a genuine code bug in
packages/wrangler/src/sentry/index.ts. ThecaptureGlobalExceptionfunction calls:await confirm("Would you like to report this error...", { fallbackValue: false })However,
fallbackValueonly affects non-interactive/CI environments. ThedefaultValueparameter (which controls what happens when Enter is pressed in interactive mode) defaults totrueindialogs.ts.No fix found: No merged PRs reference this issue, and the changelog does not mention this issue number. The relevant code still has the bug as of the latest commit.
Clear fix path: The fix would be to pass
{ defaultValue: false, fallbackValue: false }to theconfirmcall, or just{ defaultValue: false }.
Recommendation
Status: KEEP OPEN
Reasoning: This is a confirmed, reproducible bug validated by both the reporter and a Cloudflare team member. The source code analysis confirms the bug exists - the confirm function uses defaultValue: true for interactive prompts, but the sentry code only sets fallbackValue: false (which only applies to non-interactive contexts). The fix is straightforward but has not been implemented.
Action: Prioritize fix - this bug causes noise in Sentry telemetry and violates user consent expectations.