From 747e8a313f03d47e4c0d6dea774985becfa4532e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=89=BE=E6=A3=AE?= Date: Tue, 10 Mar 2026 16:01:21 +0800 Subject: [PATCH] feat: include memory ID in store/update response text Include the full memory ID in the response text of `memory_store` and `memory_update` tools so the AI model can verify successful persistence and reference specific entries. - `memory_store`: add `(ID: )` to response text - `memory_update`: show full ID instead of truncated 8-char prefix Closes #139 --- src/tools.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tools.ts b/src/tools.ts index 4736c27..21d56ec 100644 --- a/src/tools.ts +++ b/src/tools.ts @@ -664,7 +664,7 @@ export function registerMemoryStoreTool( content: [ { type: "text", - text: `Stored: "${text.slice(0, 100)}${text.length > 100 ? "..." : ""}" in scope '${targetScope}'`, + text: `Stored: "${text.slice(0, 100)}${text.length > 100 ? "..." : ""}" (ID: ${entry.id}) in scope '${targetScope}'`, }, ], details: { @@ -996,7 +996,7 @@ export function registerMemoryUpdateTool( content: [ { type: "text", - text: `Updated memory ${updated.id.slice(0, 8)}...: "${updated.text.slice(0, 80)}${updated.text.length > 80 ? "..." : ""}"`, + text: `Updated memory (ID: ${updated.id}): "${updated.text.slice(0, 80)}${updated.text.length > 80 ? "..." : ""}"`, }, ], details: {