Repository navigation
fix(setup): reject NUL bytes in registration environments - #4335
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. |
[Medium impact] No code defect was found that blocks merging; the required CI gate still needs to pass. SummaryRejects NUL bytes in registration environment names and values before the known-setting schema drops custom keys.
Reviews (2) · Last reviewed commit: "Merge remote-tracking branch 'origin/mai..." · Reviewed by Greptile |
…n-nul-environment
|
Thanks for tightening registration handling, @ShuaixinHuang. Rejecting NUL bytes at the shared environment parser prevents malformed custom settings from slipping past known-setting checks, and keeps their supplied values out of diagnostics. |
Summary
Reject NUL bytes in registration environment names and values before known-setting parsing drops custom keys.
doctorreports configuration drift;setup --yesreportsneeds_humanwithout writing configuration or backup files. Ordinary custom strings, empty values and repaired registrations remain accepted; rejected values are omitted from diagnostics.The shared environment parser owns byte admission. DSH forwards unresolved expression names to that owner without evaluating expressions. Four changed files; no PR-specific dependency, schema, provider or generated-metadata changes. No target execution or new capability.
Executed evidence
Latest synchronized head:
2e8b0fa6cf9dac516c5c2329a47a0998df13ad98, including upstream main8ab5024and its shared browser/MCP lifecycle fixes. Pinned Windows Node 24.18.0/npm 11.16.0 and matching locked dependencies.npm run check: 6/6 tasks and architecture guards passed.git diff --checkpassed.No external MCP client or real analysis engine was exercised. Current-head GitHub CI passed, including all five Linux shards and the required aggregate. Codex review completed with no findings; Greptile check passed.
Author readiness
Human owner: @ShuaixinHuang
Before merge