Skip to content

fix(error-reporting): silence ValidationError from user input - #1430

Open
sentry[bot] wants to merge 2 commits into
mainfrom
seer/fix/silence-validation-error-dpXB5y
Open

fix(error-reporting): silence ValidationError from user input#1430
sentry[bot] wants to merge 2 commits into
mainfrom
seer/fix/silence-validation-error-dpXB5y

Conversation

@sentry

@sentry sentry Bot commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

This PR addresses CLI-1HQ, where ValidationErrors resulting from malformed user input (e.g., empty issue identifiers passed by AI agents) were being captured by Sentry, leading to noise.

The night-shift triage concluded that these errors should be silenced as they represent expected user-input noise rather than actionable CLI bugs. This aligns with the rationale for silencing other user-facing errors like OutputError and AuthError.

Changes:

  • Added "validation_error" to the SilenceReason type in src/lib/error-reporting.ts.
  • Modified classifySilenced() to return "validation_error" when error instanceof ValidationError.
  • Updated unit tests in test/lib/error-reporting.test.ts to reflect that ValidationErrors are now silenced, rather than captured. Specifically, tests asserting ValidationErrors are not silenced were removed, and integration tests for reportCliError now verify that ValidationErrors are not captured and instead emit a cli.error.silenced metric.

Fixes CLI-1HQ

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

@vercel

vercel Bot commented Aug 14, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
cli Ready Ready Preview Aug 14, 2026 10:55pm

Request Review

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

Labels

risk: low PR risk score: low

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants