From 9cc5b596de1719a09677e7e508ca8f9efcdd4116 Mon Sep 17 00:00:00 2001 From: "sentry[bot]" <39604003+sentry[bot]@users.noreply.github.com> Date: Fri, 19 Jun 2026 10:39:06 +0000 Subject: [PATCH] fix(error-reporting): silence ResolutionError to prevent crash reports --- src/lib/error-reporting.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/lib/error-reporting.ts b/src/lib/error-reporting.ts index 03cc87c28..aca0cbc88 100644 --- a/src/lib/error-reporting.ts +++ b/src/lib/error-reporting.ts @@ -42,7 +42,7 @@ import { * Reasons an error may be silenced (not sent to Sentry as an issue). * Exposed as the `reason` attribute on the `cli.error.silenced` metric. */ -type SilenceReason = "output_error" | "auth_expected" | "api_user_error"; +type SilenceReason = "output_error" | "auth_expected" | "api_user_error" | "user_input_error"; /** * Classify whether an error should be silenced. @@ -54,6 +54,9 @@ export function classifySilenced(error: unknown): SilenceReason | null { if (error instanceof OutputError) { return "output_error"; } + if (error instanceof ResolutionError) { + return "user_input_error"; + } if ( error instanceof AuthError && (error.reason === "not_authenticated" || error.reason === "expired")