diff --git a/src/openhuman/memory/ops/tool_memory.rs b/src/openhuman/memory/ops/tool_memory.rs index c68868a71..d3a6e5822 100644 --- a/src/openhuman/memory/ops/tool_memory.rs +++ b/src/openhuman/memory/ops/tool_memory.rs @@ -175,6 +175,8 @@ pub async fn tool_rules_json(params: ToolRuleListParams) -> Result String { - let short = &uuid::Uuid::new_v4().as_simple().to_string()[..12]; - format!("toolmem{short}") + static NEXT_TOOL_ID: AtomicUsize = AtomicUsize::new(1); + let id = NEXT_TOOL_ID.fetch_add(1, Ordering::Relaxed); + format!("toolmem_test_{id}") } #[tokio::test]