codex/sdk/typescript/tests
mldangelo-oai 6b4daafdb4 Add per-turn Cyber access program selection to exec and the SDK (#49939)
## Why

`codex exec` and the TypeScript SDK need a way to request a Cyber access program for an individual turn. Resuming with an API key can also leave compaction using a saved program that the current credentials cannot access.

## What changed

- Add `--cyber-access-program` with `standard`, `daybreak_blue`, and `daybreak_red`, and expose the equivalent `cyberAccessProgram` turn option and `CyberAccessProgram` type in the TypeScript SDK.
- Apply explicit selections to new, resumed, and prompted fork turns. Override automatic Daybreak selection for that turn without changing the saved choice. Reject the flag for review and forks without a prompt.
- Filter Cyber programs by the built-in OpenAI provider when starting turns and restoring previous-turn settings for compaction.
- Allow previous-model compaction fallback with API-key authentication, comparing both model and program so a program change can trigger a retry with the current pair even when the model is unchanged.

## Testing

Add CLI help, argument parsing, exec, and SDK coverage for per-turn selection and unsupported commands. Extend core tests for API-key compaction retries, denied explicit selections, custom-provider filtering, remote compaction, and WebSocket response reuse.

GitOrigin-RevId: 586f25b621924f3bc509c9a39b39fe2020ff9cd2
History 2026-10-01 08:57:53 +00:00
..
abort.test.ts Standardize shell execution on unified exec (#39757) 2026-08-20 17:46:05 +00:00
codexExecSpy.ts feat(ts-sdk): allow overriding CLI environment (#6648) 2025-11-14 19:44:19 +00:00
exec.test.ts Allow exec callers to classify new threads (#40161) 2026-08-23 00:27:02 +00:00
mcpConformance.test.ts Add MCP client conformance regression gates (#36810) 2026-08-03 23:20:41 +00:00
responsesProxy.ts Standardize shell execution on unified exec (#39757) 2026-08-20 17:46:05 +00:00
run.test.ts Add per-turn Cyber access program selection to exec and the SDK (#49939) 2026-10-01 08:57:53 +00:00
runStreamed.test.ts Track prompt cache write token usage (#33454) 2026-07-16 00:22:53 +00:00
setupCodexHome.ts Prefer websockets when providers support them (#13592) 2026-03-17 19:46:44 -07:00
testCodex.ts Add raw config overrides to the TypeScript SDK (#38817) 2026-08-16 00:31:54 +00:00