fix(core): cache CLI version to ensure consistency during sessions (#18793)

This commit is contained in:
Sehoon Shon
2026-02-11 12:01:50 -05:00
committed by GitHub
parent f5dd1068f6
commit 34a47a51f4
3 changed files with 37 additions and 4 deletions

View File

@@ -18,6 +18,7 @@ import { LoggingContentGenerator } from './loggingContentGenerator.js';
import { loadApiKey } from './apiKeyCredentialStorage.js';
import { FakeContentGenerator } from './fakeContentGenerator.js';
import { RecordingContentGenerator } from './recordingContentGenerator.js';
import { resetVersionCache } from '../utils/version.js';
vi.mock('../code_assist/codeAssist.js');
vi.mock('@google/genai');
@@ -35,6 +36,7 @@ const mockConfig = {
describe('createContentGenerator', () => {
beforeEach(() => {
resetVersionCache();
vi.clearAllMocks();
});