Repository navigation
fix(windows): keep background startup consoles hidden - #152452
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed September 19, 2026, 1:35 AM ET / 05:35 UTC (Revision 4). ClawSweeper reviewWhat this changesThe PR hides background Windows consoles during startup and runtime-recovery respawns while preserving foreground terminal behavior. Merge readiness✅ Ready for maintainer review The fix remains necessary on fetched main and the latest release. No actionable correctness or security findings remain, and the native Windows evidence supports the intended behavior. Priority: P2 Review scores
Verification
How this fits togetherOpenClaw can restart Node during startup to adjust runtime flags, configure compilation caching, or select a supported runtime. These respawn owners launch the replacement process and preserve its input, output, signals, and exit status. flowchart TD
A[OpenClaw startup] --> B[Runtime or startup adjustment]
B --> C[Existing respawn owners]
C --> D{Input or output is a terminal?}
D -->|Yes| E[Preserve foreground console]
D -->|No| F[Hide Windows child console]
E --> G[Replacement Node process]
F --> G
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +1, Tests +26, Other +2. Total +29 across 5 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep console visibility policy in the existing respawn owners, preserving terminal input, inherited logs, and process lifecycle behavior. Do we have a high-confidence way to reproduce the issue? Yes: background Windows startup reaches two spawn calls that omit window hiding on main, and the submitted native baseline demonstrates the blank console. This review did not execute a fresh reproduction. Is this the best way to solve the issue? Yes: adding the platform spawn option at both existing owners is a narrow repair, with foreground controls and native background proof supporting the chosen terminal policy. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 9f8bb9ebad59. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
History |
|
ClawSweeper status: applying reviewed decision. I am applying the reviewed decision for this pull request: fix(windows): keep background startup consoles hidden This is item 1/1 in the current shard. Shard 1/1. This transient lease prevents a newer review from overlapping label, comment, or close mutations. Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted. |
|
Merged via squash.
|
What Problem This Solves
Background OpenClaw processes can open an unwanted blank console on Windows when startup respawns Node to adjust runtime flags or select a compatible runtime.
User Impact
Background startup stays out of the desktop. Commands launched from a terminal retain their console and input, and background output continues to use the inherited log files.
Why This Change Was Made
Both existing respawn owners now hide the child window when neither stdin nor stdout is a terminal. This preserves the existing terminal policy, process ownership, signal forwarding, and exit handling.
The installed updater still runs its existing helper before replacing the package; this change applies when the candidate's startup helper runs. No runtime-selection or update-policy change is included.
Evidence
[email protected]updater installed the frozen candidate, preserved the synthetic project, and passed both Doctor checks without follow-up repair. This was an isolated Linux package-update test with no live providers.Native proof scope
The fixtures invoke the real startup and recovery owners with a synthetic child; this is not a full packaged CLI or cloud-session run. Owner source matches this PR exactly. The recovery bundle also matches the current dependency build byte-for-byte. The startup fixture retained tslog 5.1.0 while the current checkout uses 5.2.0; a current-dependency rebuild was prepared but did not run before the lease deadline. Current-main tests and the separate package-update run above cover the final commit. Earlier service-preflight and fixture failures are retained separately from the successful six-case run.