fix(update): hide post-core update and completion cache child windows on Windows#79694
fix(update): hide post-core update and completion cache child windows on Windows#79694XuZehan-iCenter wants to merge 1 commit intoopenclaw:mainfrom
Conversation
|
Codex review: needs real behavior proof before merge. Summary Reproducibility: no. high-confidence live reproduction is available. Source inspection on current Real behavior proof Next step before merge Security Review detailsBest possible solution: Land this scoped update-cli option change after redacted live Windows proof confirms the child windows no longer appear, with the normal maintainer-owned changelog entry added at merge time. Do we have a high-confidence way to reproduce the issue? No high-confidence live reproduction is available. Source inspection on current Is this the best way to solve the issue? Yes from a code perspective: adding Acceptance criteria:
What I checked:
Likely related people:
Remaining risk / open question:
Codex review notes: model gpt-5.5, reasoning high; reviewed against b4376a8bcda5. Re-review progress:
|
Two
spawn/spawnSynccalls insrc/cli/update-cli/were missingwindowsHide: truewhile sibling calls in the same directory already have it.update-command.ts:1854—continuePostCoreUpdateInFreshProcessshared.ts:274—tryWriteCompletionCacheThis follows the same pattern as #78483 (
fix(update): pipe post-core child stdio on Windows) which fixed related Windows console-handle behavior in the same directory.No functional change on non-Windows platforms.
Real behavior proof
Behavior or issue addressed: On Windows,
child_process.spawn/spawnSyncwithoutwindowsHide: truecreate visible console windows. Two call sites insrc/cli/update-cli/were missing this flag while sibling calls already have it.Real environment tested: Source inspection on current main; Windows behavior validated by logic (the flag is documented in Node.js child_process as Windows-only — no functional change on other platforms).
Exact steps or command run after this patch:
pnpm test src/cli/update-cli/update-command.test.ts --reporter=verboseEvidence after fix (terminal output):
Observed result after fix: All four spawn/spawnSync calls in
src/cli/update-cli/now consistently suppress console windows on Windows.What was not tested: Live Windows console execution. This is a consistency fix following the same pattern as merged fix(update): pipe post-core child stdio on Windows to prevent terminal hang (#78445) #78483.