Repository navigation
fix: preserve dots in Codex configuration keys - #1140
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. |
|
@codex review |
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
The key serialization and unresolved-profile behaviors need focused regression coverage.
Review effort: Balanced
Findings: 2
Open (2)
What changed in this PR
Preserves literal Codex configuration keys during Deep Scan worker setup.
Changes:
- Centralizes configuration override serialization with quoted non-bare keys.
- Retains unresolved profile selections for native Codex resolution.
| File | Description |
|---|---|
sdk/typescript/src/config.ts |
Adds serialization and adjusts profile resolution. |
sdk/typescript/src/permission-profile.ts |
Uses centralized serialization for worker overrides. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| delete resolved["profile"]; | ||
| const selected = selectedScanProfile(config); | ||
| const resolved = deepMerge(cloneJson(config), selected ?? {}); | ||
| if (selected !== undefined) delete resolved["profile"]; |
| ...Object.entries((config ?? {}) as JsonObject).map( | ||
| ([name, value]) => `${name}=${inlineToml(value)}`, | ||
| ), | ||
| ...codexConfigOverrides((config ?? {}) as JsonObject), |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 45a300dc16
ℹ️ 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".
| ...Object.entries((config ?? {}) as JsonObject).map( | ||
| ([name, value]) => `${name}=${inlineToml(value)}`, | ||
| ), | ||
| ...codexConfigOverrides((config ?? {}) as JsonObject), |
There was a problem hiding this comment.
Cover literal settings at the worker boundary
This changes how configuration is forwarded to every permission-checked Deep Scan worker, but the commit adds no worker-launch regression coverage for literal dotted provider names, filesystem paths, or unresolved profiles. The existing launch test uses only simple keys and checks process ordering/resumption, so a serialization error affecting fresh or resumed discovery/reducer workers would go undetected; add assertions against the emitted --config arguments for inherited literal values and intentional turn-level overrides.
AGENTS.md reference: AGENTS.md:L30-L34
Useful? React with 👍 / 👎.
faizan-oai
left a comment
There was a problem hiding this comment.
Reviewed the literal-key quoting and profile-selection changes at 45a300d. Configuration tests pass on the integrated stack; current-head CI also passed. No new issue found.
alandelong-oai
left a comment
There was a problem hiding this comment.
Reviewed the profile and literal-key change at 45a300dc163f22323158cfebc5559887ba45fd92 with three independent passes and root verification. No serious actionable findings. The focused configuration/preflight/permission suites pass (45 tests, 3 skipped), and separate probes verify resolved/unresolved profile handling and TOML round trips for literal keys. Existing regression-coverage suggestions remain useful; they do not establish a runtime defect in this diff.
718d2f8 to
dc9dfec
Compare
45a300d to
22c019e
Compare
alandelong-oai
left a comment
There was a problem hiding this comment.
The previously completed three independent passes carry forward after verifying the patch is identical; root reconciled the current base and discussion.
No serious outstanding finding was identified in this change. The scoped prior review and current diff remain consistent.
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.
dc9dfec to
d9bc13e
Compare
22c019e to
b404833
Compare
There was a problem hiding this comment.
Re-reviewed the real PR diff at b404833a6aef4f44aa14ad4bfba0b5f9a9c7d499. 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.
b404833 to
d75c4fd
Compare
c3f46fd to
a3f0652
Compare
d75c4fd to
8ca7ef6
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 8ca7ef618dea.
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.
8ca7ef6 to
8311e7c
Compare
a3f0652 to
27f214e
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 8311e7c8e4eb.
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.
8311e7c to
ba67e0d
Compare
27f214e to
45a4b91
Compare
|
Codex Review: Something went wrong. Try again later by commenting “@codex review”. ℹ️ 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". |
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 ba67e0d2f3f0.
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.
45a4b91 to
e863285
Compare
ba67e0d to
68e772b
Compare
alandelong-oai
left a comment
There was a problem hiding this comment.
Reviewed exact head 68e772bc8917b214d85446df0c916989e16e86b5 against base e8632855b945645edc4ae39a7fdc2948f9407c1d.
Three fresh independent HIGH passes reviewed the complete actual 60-line diff, both touched source files and captured instructions, followed by root synthesis. No changed tests or fixtures are present. No actionable introduced finding was established in this contribution. Native configuration behavior outside the touched scope remains a review limitation.
This head still inherits the separate #1123 source findings: saved replay can import the current ambient knowledge base when the saved selection is empty, and native preparation rejects a redundant absolute glob allow grant despite required root read. This approval covers this PR contribution; those inherited findings remain open.
Hosted CI for this exact head was green in the observation from 2026-10-04 13:55:27.631308 UTC to 13:55:51.281423 UTC. Completed raw job evidence retains its original collection times. No local tests, builds, model calls, native execution, Windows/Linux execution, clean install, whole-stack integration or deployment validation was performed in this review. Source approval, hosted CI and whole-stack integration remain separate.
51cfc35
into
mdangelo/codex/pr939-split-20-installed-types

Part 21 of 46. Previous: #1139 · Next: #1141 · Stack index
Summary
Quote literal configuration keys when building Codex command-line overrides, so a dotted key remains one key. Keep an unresolved profile selection available for Codex to resolve.
Changes
profileonly when its selection was resolved locally.Testing
At the rebuilt #1141 integration, configuration, comparison, execution-preparation, and actual worker-launch coverage passed within 123 SDK tests (three platform skips). SDK and MCP types and the SDK CI build passed.
Risk and rollout
The serializer change applies to existing permission-checked launches. It adds no settings or flags. Fresh and resumed discovery/merge worker assertions are exercised with the SDK activation in part 39.
Public disclosure review