test(websearch): cover disabled launch snapshots

This commit is contained in:
Tam Nhu Tran committed 2026-07-29 13:22:21 -04:00
1 parent abc3002e89
commit 9f5706c275
6 files changed
+159 -29

No files matched your search

@@ -1,5 +1,6 @@
import { describe, expect, it } from 'bun:test';
import {
buildCopilotClaudeLaunchArgs,
generateCopilotEnv,
resolveCopilotImageAnalysisEnv,
} from '../../../src/copilot/copilot-executor';
@@ -15,6 +16,13 @@ const baseConfig: CopilotConfig = {
model: 'gpt-4.1',
};
it('disallows native WebSearch without CCS steering when the Copilot snapshot is disabled', () => {
const args = buildCopilotClaudeLaunchArgs(['smoke'], false, false);
expect(args).toContain('--disallowedTools');
expect(args).toContain('WebSearch');
expect(args).not.toContain('--append-system-prompt');
});
describe('generateCopilotEnv', () => {
it('normalizes deprecated raptor-mini model selections to the safe default', () => {
const env = generateCopilotEnv({