Commit 242d12b
fix(delivery): mark error=true when best-effort sends all error out
Codex review (post-rebase round 2, 2026-05-08) caught that
`--deliver --best-effort --json` with all-payload onError failures
returns `deliveryStatus: { attempted: true, succeeded: false }` with
no error flag, indistinguishable from a zero-result/cancelled delivery.
When `hadPartialFailure` is set (onError fired) AND zero payloads
succeeded, propagate `error: true` to the status. Partial successes
(at least one delivered) still report `succeeded: "partial"` without
the error flag — the partial value itself signals errors occurred.
Extends the existing best-effort-onError-zero-result test to assert
the new error flag.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 5713c89 commit 242d12b
2 files changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
266 | 266 | | |
267 | 267 | | |
268 | 268 | | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
269 | 273 | | |
270 | 274 | | |
271 | 275 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
474 | 474 | | |
475 | 475 | | |
476 | 476 | | |
477 | | - | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
478 | 480 | | |
479 | 481 | | |
480 | 482 | | |
| |||
0 commit comments