Repository navigation
Commit 4606c1a
fix: don't let a late failure erase a review that already posted (#66)
The failure and quota comments reuse the review comment's sticky header, so
posting either one REPLACES the architecture diff rather than adding to it. Any
step that fails after the review has been published therefore deletes the thing
the user came for, and the PR ends up showing "Architecture review · failed" for
a review that succeeded.
Seen on CodeBoarding-webview#22: diagram, body, artifact upload and the sticky
comment all succeeded, then an enrichment step failed and overwrote the result.
Gives the review comment an `id` and gates both failure paths on
`steps.review_comment.outcome != 'success'`. A step failing after publication
cannot un-publish the review, so it must not erase it either.
Every genuine failure path is unaffected: when the review never posts the
outcome is `skipped` (or empty, if the job died earlier), both of which are
!= 'success', so the failure and quota comments still appear as before. Sync
mode is untouched — those steps are already gated on `mode == 'review'`.
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent b90704c commit 4606c1a
1 file changed
Lines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1417 | 1417 | | |
1418 | 1418 | | |
1419 | 1419 | | |
| 1420 | + | |
| 1421 | + | |
| 1422 | + | |
1420 | 1423 | | |
| 1424 | + | |
1421 | 1425 | | |
1422 | 1426 | | |
1423 | 1427 | | |
| |||
1806 | 1810 | | |
1807 | 1811 | | |
1808 | 1812 | | |
1809 | | - | |
| 1813 | + | |
1810 | 1814 | | |
1811 | 1815 | | |
1812 | 1816 | | |
| |||
1826 | 1830 | | |
1827 | 1831 | | |
1828 | 1832 | | |
| 1833 | + | |
| 1834 | + | |
| 1835 | + | |
| 1836 | + | |
1829 | 1837 | | |
1830 | | - | |
| 1838 | + | |
1831 | 1839 | | |
1832 | 1840 | | |
1833 | 1841 | | |
| |||
0 commit comments