fix(gateway): hide child process windows to prevent startup flicker on Windows #70238#70308
fix(gateway): hide child process windows to prevent startup flicker on Windows #70238#70308PratikRai0101 wants to merge 2 commits intoopenclaw:mainfrom
Conversation
Greptile SummaryThis PR adds Confidence Score: 4/5The change is a no-op on Windows due to the early-return guard; safe to merge in the sense it cannot regress, but it does not fix the reported issue. One unresolved P1 finding: the added option is unreachable on Windows, so the stated bug is not actually fixed. src/infra/process-respawn.ts — the Windows platform guard and spawn call need to be restructured for the fix to take effect.
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c2685fae99
ℹ️ 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".
c2685fa to
19f82f2
Compare
|
Heyyy, I did a full audit of the actual Windows-supervised spawn paths (windows-task-restart.ts, daemon/schtasks.ts, and update-cli/restart-helper.ts) and verified that they already have windowsHide: true applied correctly. I am leaving windowsHide: true here on the detached spawn as a defensive guardrail. If this spawn path is ever reached on a Windows-like environment (e.g., WSL interop, MSYS) or if the early return guard is refactored in the future, this ensures the flicker regression won't occur. Since Node silently ignores the windowsHide flag on non-Windows operating systems, it is completely safe to include here for future-proofing. |
85faa18 to
f7c2284
Compare
|
Closing this as duplicate or superseded after Codex automated review. PR #70308 should close in favor of the canonical linked bug #70238. Current main shows the proposed Best possible solution: Close this PR and keep #70238 as the canonical tracker for the reported Windows gateway flicker. A real fix should start from a current Windows repro and target the actual scheduled-task/gateway startup path; defensive What I checked:
So I’m closing this here and keeping the remaining discussion on the canonical linked item. Codex Review notes: model gpt-5.5, reasoning high; reviewed against c74fb781943f. |
The execLoginShellEnvZero helper was missing windowsHide: true, causing a PowerShell console window to flash briefly during gateway startup on Windows. This completes the fix started in openclaw#48320 and openclaw#70308 for the v2026.5.4 code path. Closes openclaw#78159
Summary
cmd.exewindows during startup due to missing spawn options, causing screen flickering.windowsHide: trueto thechild_process.spawn()options in the gateway process launcher.Change Type (select all)
Scope (select all touched areas)
Linked Issue/PR
Root Cause
child_process.spawn()was invoked withoutwindowsHide: true, causing Windows to create a visible console window for each child process.Regression Test Plan
Coverage level that should have caught this:
Target test or file:
Scenario the test should lock in:
Why this is the smallest reliable guardrail:
Existing test that already covers this (if any):
If no new test is added, why not:
User-visible / Behavior Changes
Diagram