fix repeated successful evidence call loops

This commit is contained in:
pewdiepie-archdaemon
2026-09-18 14:52:42 +00:00
parent 99b18469f6
commit 54ae8e1a0c
2 changed files with 14 additions and 2 deletions
+4 -1
View File
@@ -5251,7 +5251,10 @@ async def test_native_stream_permanently_withholds_tool_when_model_ignores_dupli
and "already returned evidence" in event.get("output", "")
]
assert len(duplicate_errors) == 2
assert 'tools' not in requests[2]
# The first exact duplicate leaves the evidence tool available so a
# changed request can run. Ignoring that correction once more suppresses
# the looping tool and forces a completion-only turn.
assert any(item['function']['name'] == 'inspect_media' for item in requests[2]['tools'])
assert 'tools' not in requests[3]