feat: ensure codebase investigator uses preview model when main agent does (#14412)

This commit is contained in:
Abhi
2025-12-09 16:07:50 -05:00
committed by GitHub
parent 2800187355
commit aced401071
9 changed files with 55 additions and 14 deletions
@@ -12,7 +12,7 @@ import {
LS_TOOL_NAME,
READ_FILE_TOOL_NAME,
} from '../tools/tool-names.js';
import { DEFAULT_GEMINI_MODEL } from '../config/models.js';
import { GEMINI_MODEL_ALIAS_PRO } from '../config/models.js';
describe('CodebaseInvestigatorAgent', () => {
it('should have the correct agent definition', () => {
@@ -26,7 +26,7 @@ describe('CodebaseInvestigatorAgent', () => {
).toBe(true);
expect(CodebaseInvestigatorAgent.outputConfig?.outputName).toBe('report');
expect(CodebaseInvestigatorAgent.modelConfig?.model).toBe(
DEFAULT_GEMINI_MODEL,
GEMINI_MODEL_ALIAS_PRO,
);
expect(CodebaseInvestigatorAgent.toolConfig?.tools).toEqual([
LS_TOOL_NAME,