fix(autofix): Handle errors in code generation better#114423
fix(autofix): Handle errors in code generation better#114423
Conversation
This ensures that the section status is completed before rendering the file diffs to avoid partial diffs being shown and handle error states better allowing for retries.
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 2 potential issues.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 720fcfe. Configure here.
| {t('Re-run')} | ||
| </Button> | ||
| </div> | ||
| </ArtifactDetails> |
There was a problem hiding this comment.
Reset prompt unreachable in error state causes stuck button
Low Severity
The AutofixResetPrompt was moved from the top of the non-processing branch into the success-only branch (artifact && patchesByRepo.size). In the error state, clicking the header "Re-run step" button sets shouldShowReset to true, which flips canReset to false (disabling the button), but the prompt never renders because it's in the wrong branch. There's no way to reset shouldShowReset back to false, so the header reset button gets permanently stuck as disabled.
Reviewed by Cursor Bugbot for commit 720fcfe. Configure here.
This ensures that the section status is completed before rendering the file diffs to avoid partial diffs being shown and handle error states better allowing for retries. --------- Co-authored-by: getsantry[bot] <66042841+getsantry[bot]@users.noreply.github.com>


This ensures that the section status is completed before rendering the file diffs to avoid partial diffs being shown and handle error states better allowing for retries.