Commit b83756d
committed
fix(cron): no-deliver cron runs prefer final assistant text for recovery
When deliveryPlan.mode is "none" and no channel is resolved,
resolveCronChannelOutputPolicy returned preferFinalAssistantVisibleText:
false. That blocked hasRecoveredToolWarning and shouldUseFinalAssistantVisibleText
in resolveCronPayloadOutcome (both gates require true), so a cron run that
produced valid final assistant text after only non-fatal tool warnings was
still marked as a fatal error.
With no channel there is no structured delivery target; the final assistant
text is the only meaningful output. Returning true lets the recovery path
work correctly for --no-deliver runs.
Fixes #906641 parent 520992a commit b83756d
2 files changed
Lines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
39 | 46 | | |
40 | 47 | | |
41 | 48 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
0 commit comments