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 <adh@google.com>
This commit is contained in:
Akhil Appana 2025-08-06 10:19:43 -07:00 committed by GitHub
parent ca4c745e3b
commit 487818df27
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 1 deletions

View File

@ -336,5 +336,8 @@ export async function loadServerHierarchicalMemory(
logger.debug( logger.debug(
`Combined instructions (snippet): ${combinedInstructions.substring(0, 500)}...`, `Combined instructions (snippet): ${combinedInstructions.substring(0, 500)}...`,
); );
return { memoryContent: combinedInstructions, fileCount: filePaths.length }; return {
memoryContent: combinedInstructions,
fileCount: contentsWithPaths.length,
};
} }