镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

feat(cli): share model options across commands - #1143

Merged
mldangelo-oai merged 7 commits into
mainfrom
mdangelo/codex/unify-model-options
Oct 1, 2026
Merged

mldangelo-oai merged 7 commits into
mainfrom
mdangelo/codex/unify-model-options

Conversation

@mldangelo-oai

@mldangelo-oai mldangelo-oai commented Oct 1, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Patching and validation required a TOML override to choose a model, while scan commands exposed --model directly. Add consistent model options to these commands and saved-scan matching, while preserving their defaults.

Changes

  • Add --model MODEL to patch, validate, and verify-fix alongside --effort. Apply the selected settings to patch-risk assessments too.
  • Add --model MODEL and --effort minimal|low|medium|high|xhigh|max to scans match and scans compare, including scans match --all. Cached matches still require --force to recompute.
  • Share option schemas and configuration types across the CLI, and test settings at fresh, resumed, and concurrent Deep Scan worker boundaries.
  • Add GPT-6.1 Sol and GPT-6 Luna prices for cost estimates and --max-cost, including long-context rates from OpenAI's published pricing.

Testing

  • Hosted node-ci passed on 0092098: 44 jobs passed and two were skipped.
  • On 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.
  • All five portable plugin checks passed, including nine compatibility tests. Bundled-plugin and SDK builds, types, formatting, and git diff --check passed.
  • Package validation on 0092098 passed 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.
  • Both full SDK runs passed on 865d1df: 3,368 passed, 51 skipped, and no failures per run (seeds 12345 and 506805859; 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.
  • Three fresh native reviews and independent verification of 0092098 completed with no findings.

Risk and rollout

The new flags are optional. Scans, validation, patching, and verification keep gpt-5.6-sol with xhigh effort; matching uses Codex's configured model with medium effort. Existing --codex settings and conflict checks remain supported. Model IDs continue to pass through to Codex, so availability depends on credentials and provider access.

Public disclosure review

  • No customer, partner, prospect, or user identities, data, or identifying details are included.
  • No credentials, personal data, private source, scan findings, or nonpublic links or tickets are included.
  • I reviewed the branch name, title, description, commits, changes, comments, logs, screenshots, attachments, and links for public disclosure.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 1, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-01T22:00:44.123554Z 0092098 Manual request
🔒 Security Review ✅ Completed 2026-10-01T22:02:15.701578Z 0092098 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@mldangelo-oai
mldangelo-oai force-pushed the mdangelo/codex/unify-model-options branch from af2bb4e to 5d31522 Compare October 1, 2026 06:07
@mldangelo-oai
mldangelo-oai changed the base branch from mdangelo/codex/simplify-deep-scan to main October 1, 2026 06:07
@github-actions github-actions Bot added the enhancement New feature or request label Oct 1, 2026
@mldangelo-oai

Copy link
Copy Markdown
Collaborator Author

@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.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. What shall we delve into next?

Reviewed commit: 5d31522d6d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

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".

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

Matching commands currently accept and forward whitespace-only model identifiers.

Review effort: Balanced
Findings: 1 Medium severity

Open (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.

Comment thread sdk/typescript/src/cli.ts Resolved

@soyeon-oai soyeon-oai left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@mldangelo-oai

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🎉

Reviewed commit: 5d31522d6d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

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".

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

The shared option plumbing, pricing updates, documentation, and relevant execution paths are coherently covered by tests.

Review effort: Balanced
Findings: None

Resolved since last review (1)

…model-options

# Conflicts:
#	sdk/typescript/README.md
#	sdk/typescript/src/cli.ts
@mldangelo-oai

Copy link
Copy Markdown
Collaborator Author

@codex review

@mldangelo-oai
mldangelo-oai requested a balanced review from Copilot October 1, 2026 19:01
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Delightful!

Reviewed commit: de9dac7203

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

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".

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

The shared options are propagated consistently and covered across CLI, pricing, and worker boundaries.

Review effort: Balanced
Findings: None

mldangelo-oai and others added 5 commits October 1, 2026 20:15
…model-options

# Conflicts:
#	sdk/typescript/src/cli.ts
#	sdk/typescript/tests-ts/cli-skills.test.ts
…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
@mldangelo-oai

Copy link
Copy Markdown
Collaborator Author

@codex review

@mldangelo-oai
mldangelo-oai requested a balanced review from Copilot October 1, 2026 21:58
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Already looking forward to the next diff.

Reviewed commit: 00920985d3

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

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".

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

Model settings are propagated consistently and covered across CLI, pricing, and worker boundaries.

Review effort: Balanced
Findings: None

@mldangelo-oai
mldangelo-oai merged commit 336fbb9 into main Oct 1, 2026
59 checks passed
@mldangelo-oai
mldangelo-oai deleted the mdangelo/codex/unify-model-options branch October 1, 2026 22:29
@github-actions github-actions Bot mentioned this pull request Oct 1, 2026
3 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants