From 6f3046a6b48352abcd6a49037aa1eae3ec171047 Mon Sep 17 00:00:00 2001 From: qbit-mirror-bot Date: Thu, 2 Jul 2026 01:49:40 +0000 Subject: [PATCH] fix: hashlib.md5 FIPS crash in context_compressor.py --- agent/context_compressor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agent/context_compressor.py b/agent/context_compressor.py index 6ee5d6cffea5..524985736cbb 100644 --- a/agent/context_compressor.py +++ b/agent/context_compressor.py @@ -1226,7 +1226,7 @@ def _prune_old_tool_results( continue if len(content) < 200: continue - h = hashlib.md5(content.encode("utf-8", errors="replace")).hexdigest()[:12] + h = hashlib.md5(content.encode("utf-8", errors="replace"), usedforsecurity=False).hexdigest()[:12] if h in content_hashes: # This is an older duplicate — replace with back-reference result[i] = {**msg, "content": "[Duplicate tool output — same content as a more recent call]"}