Skip to content

OpenAI's Codex Security CLI and TypeScript SDK for finding, validating, and fixing security vulnerabilities. npm: https://www.npmjs.com/package/@openai/codex-security

revert: restore GPT-5.6 Sol as the default model (#1181)

mluck-openai794e04645675
diff --git a/docs/examples/codex-security.json b/docs/examples/codex-security.json
index 5cabafb84..84eda53b6 100644
--- a/docs/examples/codex-security.json
+++ b/docs/examples/codex-security.json
@@ -5,7 +5,7 @@
"scope": { "paths": ["sdk/typescript/src"] }
},
"codex": {
- "model": "gpt-6-sol",
+ "model": "gpt-5.6-sol",
"model_reasoning_effort": "xhigh"
},
"policy": { "fail_on_severity": "high" }
diff --git a/docs/examples/codex-security.yaml b/docs/examples/codex-security.yaml
index efdce14ba..e7b888818 100644
--- a/docs/examples/codex-security.yaml
+++ b/docs/examples/codex-security.yaml
@@ -5,7 +5,7 @@ scan:
scope:
paths: [sdk/typescript/src]
codex:
- model: gpt-6-sol
+ model: gpt-5.6-sol
model_reasoning_effort: xhigh
policy:
fail_on_severity: high
diff --git a/docs/project-configuration.md b/docs/project-configuration.md
index 1d131fec6..6433cfdda 100644
--- a/docs/project-configuration.md
+++ b/docs/project-configuration.md
@@ -43,7 +43,7 @@ scan:
paths: [src]
knowledge_base: [SECURITY.md, docs/architecture.md]
codex:
- model: gpt-6-sol
+ model: gpt-5.6-sol
model_reasoning_effort: xhigh
policy:
fail_on_severity: high
diff --git a/plugins/codex-security/mcp-app/tests/test_deep_scan_executor.mjs b/plugins/codex-security/mcp-app/tests/test_deep_scan_executor.mjs
index 384e5b3f0..868c92bde 100644
--- a/plugins/codex-security/mcp-app/tests/test_deep_scan_executor.mjs
+++ b/plugins/codex-security/mcp-app/tests/test_deep_scan_executor.mjs
@@ -1179,7 +1179,7 @@ async function testWorkerRuntimeSettings() {
};
syncBuiltinESMExports();
const executor = new CodexSdkWorkerExecutor({
- model: "gpt-6-sol",
+ model: "gpt-5.6-sol",
reasoningEffort: "xhigh",
parentSandbox: trustedParentSandboxWithDenials,
artifactContext: {
@@ -1264,7 +1264,7 @@ async function testWorkerRuntimeSettings() {
invocation.argv.includes('model_reasoning_effort="xhigh"'),
true,
);
- assertFlagPair(invocation.argv, "--model", "gpt-6-sol");
+ assertFlagPair(invocation.argv, "--model", "gpt-5.6-sol");
assert.equal(invocation.configPath, configPath);
const preflight = JSON.parse(
await readFile(fixture.preflightMarkerPath, "utf8"),
diff --git a/sdk/typescript/README.md b/sdk/typescript/README.md
index fd03cb2ac..fc00bf583 100644
--- a/sdk/typescript/README.md
+++ b/sdk/typescript/README.md
@@ -533,7 +533,7 @@ scan:
scope:
paths: [src]
codex:
- model: gpt-6-sol
+ model: gpt-5.6-sol
model_reasoning_effort: xhigh
policy:
fail_on_severity: high
@@ -843,7 +843,7 @@ configuration:
approval_policy = "on-request"
approvals_reviewer = "auto_review"
cli_auth_credentials_store = "auto"
-model = "gpt-6-sol"
+model = "gpt-5.6-sol"
model_reasoning_effort = "xhigh"
model_reasoning_summary = "detailed" # "none" for amazon-bedrock
show_raw_agent_reasoning = true
diff --git a/sdk/typescript/src/config.ts b/sdk/typescript/src/config.ts
index 05e034322..9d28e61df 100644
--- a/sdk/typescript/src/config.ts
+++ b/sdk/typescript/src/config.ts
@@ -55,7 +55,7 @@ export const DEFAULT_CODEX_CONFIG: Readonly<JsonObject> = {
approval_policy: "on-request",
approvals_reviewer: "auto_review",
cli_auth_credentials_store: "auto",
- model: "gpt-6-sol",
+ model: "gpt-5.6-sol",
model_reasoning_effort: "xhigh",
model_reasoning_summary: "detailed",
show_raw_agent_reasoning: true,
diff --git a/sdk/typescript/src/cost-model.ts b/sdk/typescript/src/cost-model.ts
index a9f01736c..3d1f22eab 100644
--- a/sdk/typescript/src/cost-model.ts
+++ b/sdk/typescript/src/cost-model.ts
@@ -53,7 +53,6 @@ const MODEL_PRICING_NANODOLLARS: Readonly<Record<string, ModelPricing>> = {
// GPT-5.5 has no additional cache-write charge.
"gpt-5.5": [5_000, 500, 5_000, 30_000],
"gpt-5.5-2026-04-23": [5_000, 500, 5_000, 30_000],
- "gpt-6-sol": [2_000, 200, 2_500, 10_000],
"gpt-6-astra": [10_000, 1_000, 12_500, 50_000],
"gpt-5.6": [4_000, 400, 5_000, 20_000],
"gpt-5.6-sol": [4_000, 400, 5_000, 20_000],
@@ -73,7 +72,6 @@ const LONG_CONTEXT_PRICING_NANODOLLARS: Readonly<Record<string, ModelPricing>> =
{
"gpt-5.5": [10_000, 1_000, 10_000, 45_000],
"gpt-5.5-2026-04-23": [10_000, 1_000, 10_000, 45_000],
- "gpt-6-sol": [4_000, 400, 5_000, 15_000],
"gpt-6-astra": [20_000, 2_000, 25_000, 75_000],
"gpt-5.6": [8_000, 800, 10_000, 30_000],
"gpt-5.6-sol": [8_000, 800, 10_000, 30_000],
@@ -198,7 +196,7 @@ export function estimateScanCost(
source: pricingModel.startsWith("gpt-5.5")
? "https://developers.openai.com/api/docs/models/gpt-5.5"
: "https://developers.openai.com/api/docs/pricing",
- asOf: pricingModel === "gpt-6-sol" ? "2026-09-28" : "2026-09-14",
+ asOf: "2026-09-14",
serviceTier: "standard",
context: "short",
usdPerMillionTokens: usdPerMillionTokens(pricing),
diff --git a/sdk/typescript/tests-ts/api-policy.test.ts b/sdk/typescript/tests-ts/api-policy.test.ts
index cdb8ae307..f69bc8fdf 100644
--- a/sdk/typescript/tests-ts/api-policy.test.ts
+++ b/sdk/typescript/tests-ts/api-policy.test.ts
@@ -259,7 +259,7 @@ describe("CodexSecurity policy API", () => {
expect(preflight.targetPath).toBe(
join(f.repository, "component", "SECURITY.md"),
);
- expect(preflight.model).toBe("gpt-6-sol");
+ expect(preflight.model).toBe("gpt-5.6-sol");
expect(prepared).toBe(false);
expect(await readdir(f.outputDir)).toEqual([]);
await f.security.close();
@@ -1187,10 +1187,7 @@ describe("CodexSecurity policy API", () => {
});
test("uses the shared runtime for three fresh, scoped, structured turns", async () => {
- const f = await setup({
- surface: "cli",
- config: { codexOverrides: { model: "gpt-5.6-sol" } },
- });
+ const f = await setup({ surface: "cli" });
await writeFile(
join(f.repository, "SECURITY.md"),
"# Existing policy\nKeep the reporting channel.\n",
@@ -1542,9 +1539,7 @@ describe("CodexSecurity policy API", () => {
});
test("enforces one cost budget across stages and preserves completed evidence", async () => {
- const f = await setup({
- config: { codexOverrides: { model: "gpt-5.6-sol" } },
- });
+ const f = await setup();
await expect(
f.security.generatePolicy(f.repository, {
outputDir: f.outputDir,
diff --git a/sdk/typescript/tests-ts/api.test.ts b/sdk/typescript/tests-ts/api.test.ts
index 57c7c7c91..03ae0aad5 100644
--- a/sdk/typescript/tests-ts/api.test.ts
+++ b/sdk/typescript/tests-ts/api.test.ts
@@ -888,7 +888,7 @@ describe("CodexSecurity orchestration", () => {
source: "OPENAI_API_KEY",
verified: false,
},
- model: "gpt-6-sol",
+ model: "gpt-5.6-sol",
reasoningEffort: "xhigh",
});
await expect(
@@ -998,7 +998,7 @@ describe("CodexSecurity orchestration", () => {
await expect(
client.preflight(repository, { maxCostUsd: 5 }),
- ).resolves.toMatchObject({ model: "gpt-6-sol", maxCostUsd: 5 });
+ ).resolves.toMatchObject({ model: "gpt-5.6-sol", maxCostUsd: 5 });
for (const maxCostUsd of [0, -1, Number.NaN, Number.POSITIVE_INFINITY]) {
await expect(
client.preflight(repository, { maxCostUsd }),
@@ -4543,7 +4543,7 @@ describe("CodexSecurity orchestration", () => {
let starts = 0;
let budgetSignal: AbortSignal | undefined;
const client = new TestClient(
- { codexOverrides: { model: "gpt-5.6-sol" } },
+ {},
{
environment: {},
prepareRuntime: async () => preparedRuntime(codexHome),
@@ -4663,7 +4663,7 @@ describe("CodexSecurity orchestration", () => {
let reportedLimit: number | undefined;
let budgetSignal: AbortSignal | undefined;
const client = new TestClient(
- { codexOverrides: { model: "gpt-5.6-sol" } },
+ {},
{
environment: {},
prepareRuntime: async () => preparedRuntime(codexHome),
@@ -4801,7 +4801,7 @@ describe("CodexSecurity orchestration", () => {
output_tokens: 30,
})!;
const client = new TestClient(
- { codexOverrides: { model: "gpt-5.6-sol" } },
+ {},
{
environment: {},
prepareRuntime: async () => preparedRuntime(codexHome),
@@ -4934,7 +4934,7 @@ describe("CodexSecurity orchestration", () => {
const warnings: string[] = [];
let turns = 0;
const client = new TestClient(
- { codexOverrides: { model: "gpt-5.6-sol" } },
+ {},
{
environment: {},
prepareRuntime: async () => preparedRuntime(codexHome),
diff --git a/sdk/typescript/tests-ts/cli-fixtures.ts b/sdk/typescript/tests-ts/cli-fixtures.ts
index f2a617b63..185bd26f9 100644
--- a/sdk/typescript/tests-ts/cli-fixtures.ts
+++ b/sdk/typescript/tests-ts/cli-fixtures.ts
@@ -98,7 +98,7 @@ export function fakePreflight(
mode: "standard",
outputDir: null,
authentication: { method: "stored_credentials", verified: false },
- model: "gpt-6-sol",
+ model: "gpt-5.6-sol",
reasoningEffort: "xhigh",
};
}
diff --git a/sdk/typescript/tests-ts/cli-skills.test.ts b/sdk/typescript/tests-ts/cli-skills.test.ts
index fb9bbbed7..e5f310837 100644
--- a/sdk/typescript/tests-ts/cli-skills.test.ts
+++ b/sdk/typescript/tests-ts/cli-skills.test.ts
@@ -92,7 +92,7 @@ describe("CLI skill commands", () => {
? []
: ["--ephemeral", "--color", "never", "--json"]),
"--config",
- 'model="gpt-6-sol"',
+ 'model="gpt-5.6-sol"',
"--config",
'model_reasoning_effort="xhigh"',
"--config",
diff --git a/sdk/typescript/tests-ts/cli.test.ts b/sdk/typescript/tests-ts/cli.test.ts
index e240fa94b..b04b831ef 100644
--- a/sdk/typescript/tests-ts/cli.test.ts
+++ b/sdk/typescript/tests-ts/cli.test.ts
@@ -1161,7 +1161,7 @@ describe("CLI", () => {
cliVersion: VERSION,
codexVersion: CODEX_EXECUTABLE_VERSION,
codexSdkVersion: CODEX_SDK_VERSION,
- model: "gpt-6-sol",
+ model: "gpt-5.6-sol",
reasoningEffort: "xhigh",
nextStep: "codex-security scan . --dry-run",
});
@@ -1567,7 +1567,7 @@ describe("CLI", () => {
),
).toBe(0);
expect(JSON.parse(stdout.text())).toEqual({
- model: "gpt-6-sol",
+ model: "gpt-5.6-sol",
reasoningEffort: "xhigh",
nextStep: "codex-security scan . --dry-run",
});
@@ -3509,7 +3509,7 @@ describe("CLI", () => {
).toBe(0);
expect(JSON.parse(stdout.text())).toEqual({ dryRun: true, ...preflight });
expect(stderr.text()).toContain(
- 'codex-security: debug: scan.preflight.completed model="gpt-6-sol" reasoning_effort="xhigh" method="api_key" source="OPENAI_API_KEY" verified=false',
+ 'codex-security: debug: scan.preflight.completed model="gpt-5.6-sol" reasoning_effort="xhigh" method="api_key" source="OPENAI_API_KEY" verified=false',
);
expect(stderr.text()).not.toContain("codex-security: debug: scan.started");
expect(stderr.text()).not.toContain("SYNTHETIC_DRY_RUN_SECRET");
diff --git a/sdk/typescript/tests-ts/config.test.ts b/sdk/typescript/tests-ts/config.test.ts
index fe332c683..b8194c636 100644
--- a/sdk/typescript/tests-ts/config.test.ts
+++ b/sdk/typescript/tests-ts/config.test.ts
@@ -351,7 +351,7 @@ describe("Codex configuration", () => {
},
});
expect(merged["agents"]).toBeUndefined();
- expect(merged["model"]).toBe("gpt-6-sol");
+ expect(merged["model"]).toBe("gpt-5.6-sol");
expect(merged["model_reasoning_effort"]).toBe("high");
expect(merged["model_reasoning_summary"]).toBe("concise");
expect(merged["show_raw_agent_reasoning"]).toBe(false);
@@ -789,7 +789,7 @@ describe("Codex configuration", () => {
},
});
expect(await mergedCodexConfig({})).toMatchObject({
- model: "gpt-6-sol",
+ model: "gpt-5.6-sol",
model_reasoning_effort: "xhigh",
model_reasoning_summary: "detailed",
show_raw_agent_reasoning: true,
diff --git a/sdk/typescript/tests-ts/cost-context.test.ts b/sdk/typescript/tests-ts/cost-context.test.ts
index 107783abb..dfdd69277 100644
--- a/sdk/typescript/tests-ts/cost-context.test.ts
+++ b/sdk/typescript/tests-ts/cost-context.test.ts
@@ -9,7 +9,6 @@ import {
test.each([
["gpt-5.5", [5, 0.5, 5, 30], [10, 1, 10, 45]],
["gpt-5.5-2026-04-23", [5, 0.5, 5, 30], [10, 1, 10, 45]],
- ["gpt-6-sol", [2, 0.2, 2.5, 10], [4, 0.4, 5, 15]],
["gpt-6-astra", [10, 1, 12.5, 50], [20, 2, 25, 75]],
["gpt-5.6", [4, 0.4, 5, 20], [8, 0.8, 10, 30]],
["gpt-5.6-sol", [4, 0.4, 5, 20], [8, 0.8, 10, 30]],