Repository navigation
fix(cli): normalize empty Windows profile before imports - #2482
Conversation
Follow up on #2345 and its import-time home lookup diagnosis by @gefrezim. Reuse the existing setup home-fallback acceptance test in the real Windows curated CI lane. Verified real Windows Node 24.18.0 CLI empty/unset/nonempty controls, setup dry-run home selection and unchanged configuration, and SDK MCP catalog parity. Nine focused tests and static/docs checks passed. No IDA or Ghidra engine was used; resource observations and limits are recorded in experiments/analysis-efficiency/windows-empty-profile.md.
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
|
@codex review Please check the earliest import boundary, preservation of nonempty caller selections, and reuse of the existing public setup regression in the real Windows lane. Real baseline/fixed CLI and MCP controls plus resource measurement limits are recorded in the PR. |
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.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e3ce11c7b7
ℹ️ 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".
Register the existing acceptance test in SCOPES.package alongside its Windows curated execution entry. This fixes the review finding and original CI ownership failure. All 84 CI scope checks and two curated-path checks pass; runtime code and real-Windows verification remain unchanged.
|
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". |
Summary
Follow-up to #2345; thanks to @gefrezim for identifying the import-time Windows home lookup failure.
USERPROFILE=""as unset at the executable dispatcher, before dependency imports. Windows Node otherwise throwsuv_os_homedirduring Incur import, before REA's existing account-home fallback can run.tests/acceptance/setup/homeDirectoryFallback.test.tsin the actual Windows curated CI lane. Its public setup dry-run already covers the failure; no duplicate startup test is added.Real Windows verification
Fresh main baseline
172407787f1842dedbcd27b5385177595f786ce4, Windows 11 10.0.22631.0, official Windows x64 Node 24.18.0, locked production dependencies:HOMEempty)uv_os_homedirEfficiency and limits
Verification and resource record pins the tested dispatcher digest and scope. Version/help replies remain 6 / 15,497 bytes. Corrected single-CLI exit-time resource observations range from 7.968–9.874 seconds CPU and 299,956–301,852 KiB peak working set; these exclude the probe parent. Probes ran serially, BelowNormal, one CPU, 512 MiB child heaps. Baseline resources were not paired and caches were not normalized: no latency, CPU or memory improvement is claimed. Bytes are not model tokens; actual model usage was not measured. Personal paths and ambient environment were not included in the record.
Review / CI follow-up
The original CI shard correctly rejected our missing package-scope registration for the added Windows test entry. Fixed in
aca75a5f0by registering the path inSCOPES.package. All 84 CI scope tests and two curated-path checks now pass. Runtime source and its real-Windows tested dispatcher digest are unchanged.Final current-head verification: Windows lane executes the home-fallback regression (one Windows test passes; the POSIX lifecycle case is intentionally skipped). The unrelated in-memory server identity 10-second timeout passed on a failed-job rerun without source changes; the current-head CI and coverage gates are green. Current-head Codex review completed with no further findings and the ownership thread is resolved.