fix: hash full content in tool_add_drawer drawer ID (#716)

* fix: hash full content in tool_add_drawer drawer ID

* style: apply ruff format

* style: fix ruff format for CI ruff 0.4.x
This commit is contained in:
shafdev
2026-04-13 10:10:46 +05:30
committed by GitHub
parent 3a50966766
commit f4226047cb
2 changed files with 26 additions and 1 deletions
+3 -1
View File
@@ -481,7 +481,9 @@ def tool_add_drawer(
if not col:
return _no_palace()
drawer_id = f"drawer_{wing}_{room}_{hashlib.sha256((wing + room + content[:100]).encode()).hexdigest()[:24]}"
drawer_id = (
f"drawer_{wing}_{room}_{hashlib.sha256((wing + room + content).encode()).hexdigest()[:24]}"
)
_wal_log(
"add_drawer",