From 90e506ec7a9bada2aa59a68920e926cd4ca865af Mon Sep 17 00:00:00 2001 From: mathuraditya724 Date: Wed, 4 Feb 2026 11:58:50 +0530 Subject: [PATCH 1/2] fix: updated the plan command error message when root cause analysis is not done --- src/commands/issue/plan.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/commands/issue/plan.ts b/src/commands/issue/plan.ts index 2f240e0..c65e09d 100644 --- a/src/commands/issue/plan.ts +++ b/src/commands/issue/plan.ts @@ -74,7 +74,8 @@ function validateAutofixState( const causes = extractRootCauses(state); if (causes.length === 0) { throw new ValidationError( - "No root causes identified. Cannot create a plan without a root cause." + `Root cause analysis found no causes for issue ${issueId}.\n` + + `Try running 'sentry issue explain ${issueId} --force' to retry the analysis.` ); } From 59c6863131d26f4f8c7a5d2a2a38784ca622c321 Mon Sep 17 00:00:00 2001 From: mathuraditya724 Date: Wed, 4 Feb 2026 12:02:17 +0530 Subject: [PATCH 2/2] chore: minor change --- src/commands/issue/plan.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/issue/plan.ts b/src/commands/issue/plan.ts index c65e09d..fd016a7 100644 --- a/src/commands/issue/plan.ts +++ b/src/commands/issue/plan.ts @@ -49,7 +49,7 @@ function validateAutofixState( if (!state) { throw new ValidationError( `No root cause analysis found for issue ${issueId}.\n` + - `Run 'sentry issue explain ${issueId}' first.` + `Run 'sentry issue explain ${issueId}' first to identify the root cause.` ); }