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

@@ -4,6 +4,7 @@ import * as os from 'os';
import * as path from 'path';
import {
buildCursorClaudeLaunchArgs,
executeCursorProfile,
generateCursorEnv,
resolveCursorImageAnalysisEnv,
@@ -19,6 +20,13 @@ const BASE_CONFIG: CursorConfig = {
model: 'gpt-5.3-codex',
};
it('disallows native WebSearch without CCS steering when the Cursor snapshot is disabled', () => {
const args = buildCursorClaudeLaunchArgs(['smoke'], false);
expect(args).toContain('--disallowedTools');
expect(args).toContain('WebSearch');
expect(args).not.toContain('--append-system-prompt');
});
describe('cursor-profile-executor', () => {
let originalCcsHome: string | undefined;
let tempDir: string;