Repository navigation
feat(cli): share model options across commands - #1143
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
af2bb4e to
5d31522
Compare
|
@codex review Please review model/effort forwarding, configuration and pricing behavior, and opportunities to simplify shared schemas and types without changing defaults or accepted CLI values. |
|
Codex Review: Didn't find any major issues. What shall we delve into next? Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
Matching commands currently accept and forward whitespace-only model identifiers.
Review effort: Balanced
Findings: 1
What changed in this PR
Adds shared model and reasoning-effort options across model-backed CLI commands and updates pricing metadata.
Changes:
- Shares model option schemas and configuration types.
- Forwards model settings through matching, patching, and verification.
- Adds GPT-6.1 Sol and GPT-6 Luna pricing and documentation.
| File | Description |
|---|---|
sdk/typescript/src/cli.ts |
Shares and forwards model options. |
sdk/typescript/src/cost-model.ts |
Adds model pricing. |
sdk/typescript/src/api.ts |
Reuses model configuration types. |
sdk/typescript/src/classify-severity.ts |
Reuses runtime option types. |
sdk/typescript/src/security-policy.ts |
Shares preflight model fields. |
sdk/typescript/src/suggest-owners.ts |
Shares owner-report model fields. |
sdk/typescript/README.md |
Documents flags, defaults, and pricing. |
sdk/typescript/tests-ts/api.test.ts |
Tests cost preflight models. |
sdk/typescript/tests-ts/cli.test.ts |
Tests scan model selection. |
sdk/typescript/tests-ts/cli-patch.test.ts |
Tests patch configuration forwarding. |
sdk/typescript/tests-ts/cli-skills.test.ts |
Tests skill model options. |
sdk/typescript/tests-ts/cli-verify-fix.test.ts |
Tests verification options. |
sdk/typescript/tests-ts/cli-workbench.test.ts |
Tests matching options. |
sdk/typescript/tests-ts/cost-context.test.ts |
Tests context pricing. |
sdk/typescript/tests-ts/cost-model.property.test.ts |
Tests pricing calculations. |
plugins/codex-security/mcp-app/tests/test_deep_scan_executor.mjs |
Tests concurrent worker settings. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
soyeon-oai
left a comment
There was a problem hiding this comment.
Source review LGTM: traced model/effort forwarding through patch, verification, risk assessment and matching, conflict checks, and resumed/concurrent worker handling. Explicit model-ID passthrough is intentional. No actionable finding. I did not independently execute tests or verify the external pricing source; no node-ci run for this exact head was visible in the inspected workflow/check results.
|
@codex review |
|
Codex Review: Didn't find any major issues. 🎉 Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
…model-options # Conflicts: # sdk/typescript/README.md # sdk/typescript/src/cli.ts
|
@codex review |
|
Codex Review: Didn't find any major issues. Delightful! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
…model-options # Conflicts: # sdk/typescript/src/cli.ts # sdk/typescript/tests-ts/cli-skills.test.ts
…to mdangelo/codex/unify-model-options
…model-options # Conflicts: # plugins/codex-security/mcp-app/tests/test_deep_scan_executor.mjs # sdk/typescript/src/cost-model.ts # sdk/typescript/tests-ts/api.test.ts # sdk/typescript/tests-ts/cost-context.test.ts
|
@codex review |
|
Codex Review: Didn't find any major issues. Already looking forward to the next diff. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |

Summary
Patching and validation required a TOML override to choose a model, while scan commands exposed
--modeldirectly. Add consistent model options to these commands and saved-scan matching, while preserving their defaults.Changes
--model MODELtopatch,validate, andverify-fixalongside--effort. Apply the selected settings to patch-risk assessments too.--model MODELand--effort minimal|low|medium|high|xhigh|maxtoscans matchandscans compare, includingscans match --all. Cached matches still require--forceto recompute.--max-cost, including long-context rates from OpenAI's published pricing.Testing
0092098: 44 jobs passed and two were skipped.0092098, 296 focused configuration, pricing, CLI, and API tests passed, including default-model and model-option coverage. Synthetic worker tests passed for fresh, resumed, and concurrent discovery and reducer workers.git diff --checkpassed.0092098passed for all 528 archive entries. An actual npm installation passed imports, NodeNext types, CLI, SDK lifecycle, credential locking, 142 bundled plugin files, MCP initialization, bundled native execution, dashboard assets, and nested-worker checks.865d1df: 3,368 passed, 51 skipped, and no failures per run (seeds12345and506805859; 73,303 assertions across 156 files). Those runs preceded main’s dedupe attribution and default-model updates; the final-head checks above cover the later integration. All 37 dedupe tests also passed after the attribution merge.0092098completed with no findings.Risk and rollout
The new flags are optional. Scans, validation, patching, and verification keep
gpt-5.6-solwithxhigheffort; matching uses Codex's configured model withmediumeffort. Existing--codexsettings and conflict checks remain supported. Model IDs continue to pass through to Codex, so availability depends on credentials and provider access.Public disclosure review