Skip to content

Commit 4e806e5

Browse files
fix(autofix): Show PR card on creation error for retry
Show the PR section when any PR has an error status, so the "Failed to create PR — Retry" button is visible. Stale errors after retrying earlier steps are cleared on the Seer side. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 5ba18f3 commit 4e806e5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

static/app/components/events/autofix/useExplorerAutofix.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,8 @@ export function getOrderedAutofixSections(runState: ExplorerAutofixState | null)
382382
const repoPRStates = runState?.repo_pr_states ?? {};
383383
const pullRequests = Object.values(repoPRStates);
384384
const anyCreating = pullRequests.some(pr => pr.pr_creation_status === 'creating');
385-
if (anyCreating || areAllPRsInSync(blocks, repoPRStates)) {
385+
const anyError = pullRequests.some(pr => pr.pr_creation_status === 'error');
386+
if (anyCreating || anyError || areAllPRsInSync(blocks, repoPRStates)) {
386387
sections.push({
387388
step: 'pull_request',
388389
blockIndex: blocks.length,

0 commit comments

Comments
 (0)