The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test(compression): trim batch clarify coverage to two invariants
Teknium3026f4a9938c
diff --git a/contributors/emails/[email protected] b/contributors/emails/[email protected]new file mode 100644index 00000000000..d277865ea14--- /dev/null+++ b/contributors/emails/[email protected]@@ -0,0 +1,2 @@+gaoanze888+# PR #106089 salvagediff --git a/tests/agent/test_context_compressor.py b/tests/agent/test_context_compressor.pyindex 0e83f80b720..8c81452b8f0 100644--- a/tests/agent/test_context_compressor.py+++ b/tests/agent/test_context_compressor.py@@ -266,18 +266,6 @@ class TestSummarizeToolResultClarify:assert "Choice A" in summaryassert "Choice B" in summary- def test_batch_with_only_sentinel_falls_back_to_generic(self):- """A batch where every response is a timeout sentinel must not be quoted as a user answer."""- content = json.dumps({- "responses": [- {"question": "Q?", "user_response": "[user did not respond within 15m]"},- ]- })-- summary = _summarize_tool_result("clarify", "{}", content)-- assert summary == "[clarify] asked user a question"-class TestShouldCompress:def test_below_threshold(self, compressor):