fix(agent): reset recovery chains across injections

Reset both the recovered segments and retry budget whenever injected input starts a new logical answer. Cover fatal tool-error boundaries and rename the prompt test module so pytest can collect the full suite.
This commit is contained in:
chengyongru authored and Xubin Ren committed 2026-07-27 01:39:46 +08:00
1 parent 154cbc1974
commit 1d2ed6e4d2
3 files changed
+25 -8

No files matched your search

@@ -1,3 +1,5 @@
"""Tests for length-recovery prompt construction."""
from nanobot.utils.runtime import build_length_recovery_message