feat(core): Land ContextCompressionService (#24483)

This commit is contained in:
joshualitt
2026-04-02 09:22:04 -07:00
committed by GitHub
parent beff8c91aa
commit e0044f2868
32 changed files with 1160 additions and 229 deletions
+1 -1
View File
@@ -1034,7 +1034,7 @@ Logging in with Google... Restarting Gemini CLI to continue.
let fileCount: number;
if (config.isJitContextEnabled()) {
await config.getContextManager()?.refresh();
await config.getMemoryContextManager()?.refresh();
config.updateSystemInstructionIfInitialized();
flattenedMemory = flattenMemory(config.getUserMemory());
fileCount = config.getGeminiMdFileCount();
@@ -106,7 +106,7 @@ describe('rewindCommand', () => {
},
config: {
getSessionId: () => 'test-session-id',
getContextManager: () => ({ refresh: mockResetContext }),
getMemoryContextManager: () => ({ refresh: mockResetContext }),
getProjectRoot: mockGetProjectRoot,
},
},
@@ -61,7 +61,9 @@ async function rewindConversation(
client.setHistory(clientHistory as Content[]);
// Reset context manager as we are rewinding history
await context.services.agentContext?.config.getContextManager()?.refresh();
await context.services.agentContext?.config
.getMemoryContextManager()
?.refresh();
// Update UI History
// We generate IDs based on index for the rewind history