Repository navigation
refactor: reuse scan settings for comparison and validation - #1146
Conversation
|
@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". |
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. |
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
Injected Codex callers with an empty or partial configuration now fail before execution because defaults are no longer merged.
Review effort: Balanced
Findings: 1
Open (1)
What changed in this PR
Carries captured scan settings into comparison, validation, and MCP discovery helpers.
Changes:
- Reuses scan configuration for read-only comparison clients.
- Keeps validation’s plugin override local.
- Adds MCP configuration propagation and regression coverage.
| File | Description |
|---|---|
sdk/typescript/src/scan-comparison.ts |
Propagates settings into comparison and MCP execution. |
sdk/typescript/src/api.ts |
Passes captured settings into validation and MCP discovery. |
sdk/typescript/tests-ts/scan-comparison.test.ts |
Updates and expands settings propagation tests. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
alandelong-oai
left a comment
There was a problem hiding this comment.
Reviewed the read-only helper change at 098d0553aee2a8320a54e40e71910c4765740c94 with three independent passes and root verification. The injected-client defaults regression remains, with this precise failing case: supplying codex and config: { codexOverrides: {} } (or an override containing only reasoning effort) now throws that the model must be a nonempty string before the injected client runs. The same probe succeeds against the base. config: {} alone does not throw, but loses the previous model and effort defaults.
The comparison suite passes: 71 tests, 3 skipped. No duplicate inline finding added.
7666804 to
ab664f3
Compare
098d055 to
6d05960
Compare
alandelong-oai
left a comment
There was a problem hiding this comment.
Three independent re-review passes and root reconciliation are complete for this restacked head.
The injected-client reproduction now reaches the client with empty and reasoning-only overrides while preserving configured defaults.
Approval is for this change. Integrated-tip validation passed 1,357 SDK tests (31 skipped), 105 MCP tests (2 skipped), portable checks, types/builds and installed-package smoke. Other stack findings and known CI fixture failures still prevent the stack from being mergeable.
6d05960 to
b2da405
Compare
ab664f3 to
86f0929
Compare
There was a problem hiding this comment.
Re-reviewed the real PR diff at b2da4053f09b6559dd675bf79bc7fd5c52737444. The patch is unchanged from the prior three-pass review. I reconciled the inherited changes in touched files and retained the prior verified findings and tests.
No serious outstanding finding identified in this patch; prior conclusions remain consistent with the unchanged change or the current re-review.
Validation across touched paths at branch tip 06e75cfe: 1,356 SDK tests, 867 Python tests plus 100 subtests, and 108 MCP tests passed; builds, types, portable checks and installed-package checks passed. These are integration checks at the branch tip, not a claim that every intermediate PR or its CI is clean. Latest workflow runs for this unchanged head were verified successful at 2026-10-02 01:26 UTC. Earlier failed or canceled job records are superseded; this CI status correction does not alter the review decision.
86f0929 to
9d264c7
Compare
657a8ba to
2f0fbe5
Compare
9d264c7 to
234087b
Compare
alandelong-oai
left a comment
There was a problem hiding this comment.
Retained the three independent passes for the identical patch and reconciled inherited touched-file changes at 2f0fbe5e6139.
No actionable introduced finding survives the independent reviews and root reconciliation of this exact patch, touched-file changes, and current integration checks.
Current tip 355ec321 passed 75 report-projection tests, portable source checks, SDK build:ci and plugin build. The immediately preceding tip fec36f1d passed 1,360 SDK tests, 873 Python tests plus 100 subtests, 109 MCP tests, builds/types and the clean 600-entry installed-package check. Only report_projection.py and its test changed between those tips; SDK/MCP runtime files are byte-identical. Both descend from main 008a8b4d. These are integration checks, separate from own-head probes. No native Windows local run.
No serious outstanding finding introduced by this PR. Code review approval does not establish CI or merge readiness.
2f0fbe5 to
ead8344
Compare
alandelong-oai
left a comment
There was a problem hiding this comment.
Retained the three independent passes for the verified identical patch and reconciled inherited touched-file changes at ead8344a797d.
No actionable introduced finding survives the independent reviews and root reconciliation of this exact patch and inherited changes in touched files.
Integrated tip 6ef8cbb8, based on 008a8b4d, passed 1,388 SDK tests, 879 Python tests plus 100 subtests, 109 MCP tests, portable checks, builds and the clean 600-entry installed-package check. These are branch-tip integration checks, separate from own-head probes; no local Windows execution was performed.
No serious outstanding finding introduced by this PR. Code approval is separate from CI and merge readiness.
46974dd to
d76ccce
Compare
ead8344 to
1dc2a39
Compare
alandelong-oai
left a comment
There was a problem hiding this comment.
Retained three prior independent passes for the verified identical patch and reconciled inherited touched-file changes at 1dc2a390fc7b.
No actionable introduced finding survives the independent reviews and root reconciliation of this exact patch and inherited changes in touched files.
Branch tip 3e0083d9, based on 008a8b4d, passed 1,392 SDK tests, 881 Python tests plus 100 subtests, 109 MCP tests, builds, portable source checks and the 600-entry installed-package check. These are tip checks, separate from own-head probes. No local Windows run was performed. The tip excludes the dependency update merged separately in #1184; combined validation remains outstanding.
No serious outstanding finding introduced by this PR. Code approval is separate from CI and merge readiness.
Consolidate approved Deep Scan changes into the parent topic branch.
e5d28ba
into
mdangelo/codex/pr939-split-22-prepared-worker-settings
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f1786eed6e
ℹ️ 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".
| return resolveTrustedExecutable( | ||
| expandHome(resolveCodexPath(environment), environment), | ||
| environment, | ||
| platform, | ||
| originalCwd, | ||
| )) { | ||
| if (platform === "win32" && isWindowsAppsPath(candidate)) continue; | ||
| const codex = await resolveTrustedExecutable( | ||
| candidate, | ||
| environment, | ||
| protectedRoot, | ||
| ); | ||
| if (codex !== null) return codex; | ||
| } | ||
| return null; | ||
| protectedRoot, |
There was a problem hiding this comment.
Keep WindowsApps aliases out of Codex resolution
On Windows hosts where %LOCALAPPDATA%\Microsoft\WindowsApps precedes a real Codex installation on PATH, this delegation can select a codex.exe app-execution alias because resolveTrustedExecutable does not exclude WindowsApps entries. The removed resolver explicitly skipped these aliases, so native Deep Scans can now launch a non-runnable/store alias or fail instead of continuing to the valid Codex executable later on PATH; preserve that exclusion in the shared resolution path and cover the worker boundary.
AGENTS.md reference: AGENTS.md:L29-L35
Useful? React with 👍 / 👎.

Part 23 of 46. Previous: #1141 · Next: #1147 · Stack index
Summary
Use the scan's selected settings when starting comparison and validation helpers. Prepared helpers reuse that configuration instead of rereading the Codex home, while standalone comparisons still resolve their own settings.
Changes
Testing
Local checks for the implementation:
Checks against the complete stack passed: SDK and MCP typechecks, formatting, Ruff, the SDK build, portable plugin compatibility and its tests, focused recovery/accounting tests, and local-artifact package smoke using exact cached dependencies. The package check was not a clean registry install. See this PR’s Checks tab for CI results for its current commit.
Risk and rollout
Comparison and validation startup change immediately. Prepared helpers retain the scan's selected authentication and permissions; their helper-specific overrides remain local.
Public disclosure review