Skip to content

armgit / strix

Public Imported from GitHub
0

Open-source AI penetration testing tool to find and fix your app’s vulnerabilities.

Align note IDs with todo IDs (6-char hex)

0xallam940319f28a18
diff --git a/strix/tools/notes/tools.py b/strix/tools/notes/tools.py
index aa21928e..9027a6fc 100644
--- a/strix/tools/notes/tools.py
+++ b/strix/tools/notes/tools.py
@@ -176,14 +176,7 @@ def _create_note_impl(
"note_id": None,
}
- note_id = ""
- for _ in range(20):
- candidate = str(uuid.uuid4())[:5]
- if candidate not in _notes_storage:
- note_id = candidate
- break
- if not note_id:
- return {"success": False, "error": "Failed to allocate note ID", "note_id": None}
+ note_id = str(uuid.uuid4())[:6]
timestamp = datetime.now(UTC).isoformat()
note = {