The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test(vision): truncated-image test accepts rejection at either stacked gate
Tekniumc0882093b89b
diff --git a/tests/tools/test_vision_native_fast_path.py b/tests/tools/test_vision_native_fast_path.pyindex 673a795c420..5237ae665f1 100644--- a/tests/tools/test_vision_native_fast_path.py+++ b/tests/tools/test_vision_native_fast_path.py@@ -165,7 +165,12 @@ class TestVisionAnalyzeNative:assert isinstance(result, str), "corrupt image must not return a multimodal envelope"payload = json.loads(result)assert payload["success"] is False- assert "decode" in payload["error"].lower()+ # Two stacked gates can catch this: the resolver-boundary verify()+ # (salvaged #53307) reports "not a recognized image"; the full-decode+ # gate (salvaged #76896) reports a decode failure. Either rejection+ # keeps the truncated bytes out of history.+ err = payload["error"].lower()+ assert "decode" in err or "not a recognized image" in errdef test_truncated_animated_gif_frame_is_rejected_before_embedding(self, tmp_path, monkeypatch