Simplify streaming code for code assist server (#4619)

This commit is contained in:
Tommaso Sciortino
2025-07-21 13:44:43 -07:00
committed by GitHub
parent f95674e646
commit d7a57d85a3
10 changed files with 36 additions and 133 deletions

View File

@@ -138,7 +138,9 @@ vi.mock('@google/gemini-cli-core', async (importOriginal) => {
getShowMemoryUsage: vi.fn(() => opts.showMemoryUsage ?? false),
getAccessibility: vi.fn(() => opts.accessibility ?? {}),
getProjectRoot: vi.fn(() => opts.targetDir),
getGeminiClient: vi.fn(() => ({})),
getGeminiClient: vi.fn(() => ({
getUserTier: vi.fn(),
})),
getCheckpointingEnabled: vi.fn(() => opts.checkpointing ?? true),
getAllGeminiMdFilenames: vi.fn(() => ['GEMINI.md']),
setFlashFallbackHandler: vi.fn(),
@@ -639,6 +641,7 @@ describe('App UI', () => {
mockConfig.getGeminiClient.mockReturnValue({
isInitialized: vi.fn(() => true),
getUserTier: vi.fn(),
} as unknown as GeminiClient);
const { unmount, rerender } = render(