feat(core): Implement JIT context memory loading and UI sync (#14469)

This commit is contained in:
Sandy Tao
2025-12-19 07:04:03 -10:00
committed by GitHub
parent 3c92bdb1ad
commit 2e229d3bb6
14 changed files with 292 additions and 91 deletions
@@ -62,6 +62,7 @@ export async function getEnvironmentContext(config: Config): Promise<Part[]> {
const platform = process.platform;
const directoryContext = await getDirectoryContextString(config);
const tempDir = config.storage.getProjectTempDir();
const environmentMemory = config.getEnvironmentMemory();
const context = `
This is the Gemini CLI. We are setting up the context for our chat.
@@ -69,6 +70,8 @@ Today's date is ${today} (formatted according to the user's locale).
My operating system is: ${platform}
The project's temporary directory is: ${tempDir}
${directoryContext}
${environmentMemory}
`.trim();
const initialParts: Part[] = [{ text: context }];