From 487818df276dc66827ce0f469f84bcae56a70801 Mon Sep 17 00:00:00 2001 From: Akhil Appana Date: Wed, 6 Aug 2025 10:19:43 -0700 Subject: [PATCH] fix: improve error handling and path processing in memory discovery (#5175) Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> Co-authored-by: Allen Hutchison --- packages/core/src/utils/memoryDiscovery.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/core/src/utils/memoryDiscovery.ts b/packages/core/src/utils/memoryDiscovery.ts index f53d27a9..fcb1abdd 100644 --- a/packages/core/src/utils/memoryDiscovery.ts +++ b/packages/core/src/utils/memoryDiscovery.ts @@ -336,5 +336,8 @@ export async function loadServerHierarchicalMemory( logger.debug( `Combined instructions (snippet): ${combinedInstructions.substring(0, 500)}...`, ); - return { memoryContent: combinedInstructions, fileCount: filePaths.length }; + return { + memoryContent: combinedInstructions, + fileCount: contentsWithPaths.length, + }; }