Restore Checkpoint Feature (#934)

This commit is contained in:
Louis Jimenez 2025-06-11 15:33:09 -04:00 committed by GitHub
parent f75c48323c
commit e0f4f428fc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
19 changed files with 837 additions and 63 deletions

View file

@ -63,6 +63,7 @@ interface MockServerConfig {
getVertexAI: Mock<() => boolean | undefined>;
getShowMemoryUsage: Mock<() => boolean>;
getAccessibility: Mock<() => AccessibilitySettings>;
getProjectRoot: Mock<() => string | undefined>;
}
// Mock @gemini-cli/core and its Config class
@ -120,7 +121,9 @@ vi.mock('@gemini-cli/core', async (importOriginal) => {
getVertexAI: vi.fn(() => opts.vertexai),
getShowMemoryUsage: vi.fn(() => opts.showMemoryUsage ?? false),
getAccessibility: vi.fn(() => opts.accessibility ?? {}),
getProjectRoot: vi.fn(() => opts.projectRoot),
getGeminiClient: vi.fn(() => ({})),
getCheckpointEnabled: vi.fn(() => opts.checkpoint ?? true),
};
});
return {