fix: add recovery hints to loop guard warnings

This commit is contained in:
ooovenenoso
2026-05-19 00:12:06 -07:00
committed by Teknium
parent 87c6edc1d0
commit d759a67c0f
3 changed files with 56 additions and 4 deletions

View File

@@ -160,6 +160,10 @@ def test_same_tool_varying_args_warns_by_default_without_halting():
assert first.action == "allow"
assert [second.action, third.action, fourth.action] == ["warn", "warn", "warn"]
assert {second.code, third.code, fourth.code} == {"same_tool_failure_warning"}
assert "Do not switch to text-only replies" in second.message
assert "keep using tools" in second.message
assert "diagnose before retrying" in second.message
assert "different tool" in second.message
assert controller.halt_decision is None