zzucs
5aa54fe1d2
fix(agent): mark headless guardrail stops incomplete ( #1182 )
...
* fix(agent): mark headless guardrail stops incomplete
The empty-turn and repeated-tool-failure guards returned the run as a
successful final answer even with RequireCompletionSignal enabled, so
zero exec reported exit 0 and a success run_end for work it had just
abandoned.
Set Result.Incomplete and a reason at both stops when the headless gate
is on. Thresholds, stop answers, retry behavior, interactive runs, and
--no-completion-gate are unchanged.
Fixes #1154
* fix(agent): count consecutive empty turns in stop reason
The headless no-output stop reason used result.Turns, which counts every
turn in the run, so a run with an earlier tool-call turn claimed "stopped
after 4 turns with no output" for a 3-turn empty streak. Use the guard's
emptyTurns counter and say "consecutive".
Pinned by a case with a successful tool turn before the empty streak.
2026-11-02 14:25:40 +08:00
..
2026-08-10 07:33:29 +08:00
2026-10-17 07:13:21 +08:00
2026-10-17 07:13:21 +08:00
2026-10-17 07:13:21 +08:00
2026-10-17 07:13:21 +08:00
2026-10-17 07:13:21 +08:00
2026-10-17 07:13:21 +08:00
2026-10-17 07:13:21 +08:00
2026-10-17 07:13:21 +08:00
2026-10-17 07:13:21 +08:00
2026-10-17 07:13:21 +08:00
2026-10-17 07:13:21 +08:00
2026-10-17 07:13:21 +08:00
2026-10-17 07:13:21 +08:00
2026-10-12 09:23:37 +08:00
2026-10-12 09:23:37 +08:00
2026-10-17 07:13:21 +08:00
2026-10-17 07:13:21 +08:00
2026-10-17 07:13:21 +08:00
2026-10-17 07:13:21 +08:00
2026-10-17 07:13:21 +08:00
2026-10-17 07:13:21 +08:00
2026-10-17 07:13:21 +08:00
2026-10-17 07:13:21 +08:00
2026-10-17 07:13:21 +08:00
2026-10-17 07:13:21 +08:00
2026-10-17 07:13:21 +08:00
2026-10-17 07:13:21 +08:00
2026-10-17 07:13:21 +08:00
2026-10-17 07:13:21 +08:00
2026-10-25 07:24:59 -07:00
2026-10-25 07:24:59 -07:00
2026-11-02 14:23:58 +08:00
2026-11-02 14:25:40 +08:00
2026-06-08 18:49:09 +05:30
2026-06-08 18:49:09 +05:30
2026-06-11 15:17:20 +05:30
2026-07-10 08:59:33 +08:00
2026-06-08 18:49:09 +05:30
2026-07-10 10:11:12 +08:00
2026-10-17 07:13:21 +08:00
2026-10-17 07:13:21 +08:00
2026-10-17 07:13:21 +08:00
2026-10-17 07:13:21 +08:00
2026-07-08 23:04:57 +08:00
2026-10-17 07:13:21 +08:00
2026-06-13 11:10:37 +05:30
2026-10-17 07:13:21 +08:00
2026-11-02 14:23:58 +08:00
2026-10-17 07:13:21 +08:00
2026-11-02 14:23:58 +08:00
2026-10-18 10:08:09 +08:00
2026-10-17 07:13:21 +08:00
2026-10-17 07:13:21 +08:00
2026-10-17 07:13:21 +08:00
2026-10-17 07:13:21 +08:00
2026-10-17 07:13:21 +08:00
2026-11-02 14:23:58 +08:00
2026-10-17 07:13:21 +08:00
2026-10-17 07:13:21 +08:00
2026-10-17 07:13:21 +08:00
2026-10-17 07:13:21 +08:00
2026-10-17 07:13:21 +08:00
2026-10-17 07:13:21 +08:00
2026-10-17 07:13:21 +08:00
2026-10-17 07:13:21 +08:00
2026-10-17 07:13:21 +08:00
2026-10-17 07:13:21 +08:00
2026-10-17 07:13:21 +08:00
2026-10-17 07:13:21 +08:00
2026-10-17 07:13:21 +08:00
2026-10-17 07:13:21 +08:00
2026-10-17 07:13:21 +08:00
2026-10-17 07:13:21 +08:00
2026-10-17 07:13:21 +08:00
2026-10-17 07:13:21 +08:00
2026-10-17 07:13:21 +08:00
2026-10-17 07:13:21 +08:00
2026-10-17 07:13:21 +08:00
2026-10-17 07:13:21 +08:00
2026-10-17 07:13:21 +08:00
2026-10-17 07:13:21 +08:00
2026-10-17 07:13:21 +08:00
2026-10-17 07:13:21 +08:00
2026-10-17 07:13:21 +08:00
2026-10-15 21:14:16 +08:00
2026-10-17 07:13:21 +08:00
2026-10-17 07:13:21 +08:00
2026-10-17 07:13:21 +08:00
2026-10-17 07:13:21 +08:00
2026-10-17 07:13:21 +08:00
2026-10-17 07:13:21 +08:00
2026-10-17 07:13:21 +08:00
2026-10-17 07:13:21 +08:00
2026-10-17 07:13:21 +08:00
2026-06-10 14:54:19 +05:30
2026-10-17 07:13:21 +08:00
2026-10-17 07:13:21 +08:00
2026-10-17 07:13:21 +08:00
2026-10-17 07:13:21 +08:00
2026-10-17 07:13:21 +08:00
2026-10-17 07:13:21 +08:00
2026-10-17 07:13:21 +08:00
2026-10-17 07:13:21 +08:00
2026-10-17 07:13:21 +08:00
2026-10-17 07:13:21 +08:00
2026-07-09 09:25:09 +08:00
2026-10-17 07:13:21 +08:00
2026-09-12 08:53:51 +08:00
2026-10-17 07:13:21 +08:00
2026-10-17 07:13:21 +08:00
2026-10-17 07:13:21 +08:00
2026-10-17 07:13:21 +08:00
2026-10-17 07:13:21 +08:00
2026-10-17 07:13:21 +08:00
2026-10-17 07:13:21 +08:00
2026-10-17 07:13:21 +08:00
2026-10-17 07:13:21 +08:00
2026-06-08 08:55:36 +05:30
2026-06-08 08:55:36 +05:30
2026-10-17 07:13:21 +08:00
2026-10-17 07:13:21 +08:00
2026-10-17 07:13:21 +08:00
2026-10-17 07:13:21 +08:00
2026-10-17 07:13:21 +08:00
2026-10-17 07:13:21 +08:00
2026-10-17 07:13:21 +08:00
2026-10-17 07:13:21 +08:00
2026-10-17 07:13:21 +08:00
2026-10-17 07:13:21 +08:00
2026-10-17 07:13:21 +08:00
2026-10-17 07:13:21 +08:00
2026-10-17 07:13:21 +08:00
2026-10-17 07:13:21 +08:00
2026-10-17 07:13:21 +08:00
2026-10-17 07:13:21 +08:00
2026-10-17 07:13:21 +08:00
2026-10-17 07:13:21 +08:00
2026-10-17 07:13:21 +08:00