The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test(state): keep two invariant tests for pruned tool payload dedupe
kshitijk4poorc0ab194f2562
diff --git a/tests/hermes_state/test_display_dedupe_pruned_tool_payload.py b/tests/hermes_state/test_display_dedupe_pruned_tool_payload.pyindex 105f782fe7c..1e353793247 100644--- a/tests/hermes_state/test_display_dedupe_pruned_tool_payload.py+++ b/tests/hermes_state/test_display_dedupe_pruned_tool_payload.py@@ -10,9 +10,6 @@ tests pin both directions (rewritten copies collapse, genuinely distinct callsdo not merge)."""import json-import os-import tempfile-from pathlib import Pathimport pytest@@ -73,18 +70,3 @@ def test_distinct_assistant_calls_with_same_args_are_not_merged(db):for cid in ("call-1", "call-2")])msgs = db.get_messages(sid, include_compacted=True)assert len(msgs) == 2---def test_tool_row_without_call_id_keeps_content_key(db):- """A legacy tool row with no tool_call_id must not lose its content key:- two such rows with different payloads stay separate."""- sid = "legacy-no-call-id"- db.create_session(sid, source="test")- db._execute_write(lambda conn: [- conn.execute(- "INSERT INTO messages (session_id, role, content, tool_name, timestamp,"- " active, compacted) VALUES (?, ?, ?, ?, ?, 1, 0)",- (sid, "tool", content, "demo_tool", 1700000000.0))- for content in ("result one", "result two")])- msgs = db.get_messages(sid, include_compacted=True)- assert len(msgs) == 2