OpenAI's Codex Security CLI and TypeScript SDK for finding, validating, and fixing security vulnerabilities. npm: https://www.npmjs.com/package/@openai/codex-security
TypeScript ai-securityapplication-securityclicode-scanningcodexcodex-securitycybersecuritydevsecopsnodejsnpmopenaisdksecuritytypescriptvulnerability-scanning
feat(hosted): remove reasoning effort allowlist (#1712)
mluck-openaid5a33512f5b0
diff --git a/AGENTS.md b/AGENTS.mdindex 0fe76e32d..4c427a140 100644--- a/AGENTS.md+++ b/AGENTS.md@@ -11,6 +11,9 @@ Codex Security is a thin wrapper around Codex and its security plugin.- Keep credential access, storage, and configuration protections, unsafe-pathchecks, and settings the user explicitly requests.- Prefer straightforward code and tests for real behavior.+- Accept reasoning-effort values as strings and pass them through unchanged.+ Do not add wrapper-owned enums or allowlists; let the selected model/provider+ determine which values it supports.- Mention another `openai/` repository in comments or pull request descriptionsonly after checking that it is public. If you cannot confirm its visibility,leave it out.diff --git a/sdk/typescript/src/hosted-scan.ts b/sdk/typescript/src/hosted-scan.tsindex e14966a53..321d34cfa 100644--- a/sdk/typescript/src/hosted-scan.ts+++ b/sdk/typescript/src/hosted-scan.ts@@ -30,7 +30,7 @@ export const HostedScanInputSchema = z.strictObject({outputDirectory: z.string().min(1),stateDirectory: z.string().min(1),model: z.string().min(1),- reasoningEffort: z.enum(["low", "medium", "high", "xhigh"]),+ reasoningEffort: z.string(),identity: z.strictObject({runId: z.string().min(1),attemptId: z.string().min(1),diff --git a/sdk/typescript/tests-ts/hosted-scan.test.ts b/sdk/typescript/tests-ts/hosted-scan.test.tsindex 763b3b979..27ad07681 100644--- a/sdk/typescript/tests-ts/hosted-scan.test.ts+++ b/sdk/typescript/tests-ts/hosted-scan.test.ts@@ -522,9 +522,10 @@ test.each([});test.each([false, true])(- "CLI pipes retain progress and execution receipts, including cancellation (%p)",+ "CLI pipes retain reasoning effort, progress and execution receipts, including cancellation (%p)",async (cancel) => {const input = await fixture();+ if (!cancel) input.reasoningEffort = "synthetic-future-effort";const child = spawn(process.execPath,[join(import.meta.dirname, "../src/cli.ts"), "scan", "--host"],@@ -554,6 +555,7 @@ test.each([false, true])(const message = JSON.parse(line);messages.push(message);if (message.method === "execution.run") {+ expect(message.params.reasoningEffort).toBe(input.reasoningEffort);requestId = message.params.requestId;for (const event of [progressEvent, { invalid: true }])send(child.stdin, {