From 0c7ea8d563e956a23cee8a11dd2b16ad56e6d272 Mon Sep 17 00:00:00 2001 From: matevip Date: Tue, 30 Jun 2026 09:25:15 +0800 Subject: [PATCH] docs(memory): clarify session_search conversation-id source in English Translate the inline comment on the ToolContext-derived conversation id to English per code style; no behavior change. --- .../main/java/vip/mate/memory/search/SessionSearchTool.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mateclaw-server/src/main/java/vip/mate/memory/search/SessionSearchTool.java b/mateclaw-server/src/main/java/vip/mate/memory/search/SessionSearchTool.java index 12bc7c7d..dfc22605 100644 --- a/mateclaw-server/src/main/java/vip/mate/memory/search/SessionSearchTool.java +++ b/mateclaw-server/src/main/java/vip/mate/memory/search/SessionSearchTool.java @@ -51,7 +51,8 @@ public class SessionSearchTool { mode = "recent"; } - // 从 ToolContext 强制读取当前会话 ID(替代 LLM 自传,防止并发会话记忆混乱) + // Read the current conversation id from the ToolContext rather than trusting + // the LLM to pass it, so concurrent sessions of the same agent stay isolated. String currentConversationId = ""; if (toolContext != null) { String fromOrigin = ChatOrigin.from(toolContext).conversationId();