fix(shell-env): hide Windows login shell probe#78266
Conversation
There was a problem hiding this comment.
Pull request overview
This PR fixes a Windows UX regression in the shell environment fallback/login-shell probe by ensuring the spawned probe process uses windowsHide: true, preventing a brief console window flash during gateway startup or shell-env refreshes.
Changes:
- Add
windowsHide: trueto the login-shell environment probeexecFileSyncoptions. - Tighten unit tests to assert
windowsHide: trueis present in the fallback/trusted-shell exec options. - Add an Unreleased changelog entry for #78159.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| src/infra/shell-env.ts | Adds windowsHide: true to the login-shell env probe exec options to prevent Windows console flashing. |
| src/infra/shell-env.test.ts | Updates assertions to ensure exec calls include windowsHide: true. |
| CHANGELOG.md | Documents the Windows shell-env probe console-flash fix (Fixes #78159). |
|
Codex review: needs maintainer review before merge. Summary Reproducibility: Do we have a high-confidence way to reproduce the issue? Yes from source: current main and Real behavior proof Next step before merge Security Review detailsBest possible solution: Land the narrow Do we have a high-confidence way to reproduce the issue? Do we have a high-confidence way to reproduce the issue? Yes from source: current main and Is this the best way to solve the issue? Is this the best way to solve the issue? Yes, adding What I checked:
Likely related people:
Remaining risk / open question:
Codex review notes: model gpt-5.5, reasoning high; reviewed against 132bcebe4110. Re-review progress:
|
5527f4d to
deb6ffb
Compare
|
Maintainer prep refresh for #78266. Prepared head: What I changed:
Verification:
Fresh CI should start on the prepared head. Not merging until required/full checks are green. |
Fixes openclaw#78159. - Add `windowsHide: true` to the login-shell env probe used by shell-env fallback on Windows. - Cover the fallback and trusted-shell paths with focused tests. - Add the changelog attribution for openclaw#78266. Verification: - `pnpm vitest run src/infra/shell-env.test.ts` - `pnpm build` - `pnpm check` - Full GitHub CI green at `deb6ffbd3c203fc52f5b320fe5ca5aafa11ade57`.
Fixes openclaw#78159. - Add `windowsHide: true` to the login-shell env probe used by shell-env fallback on Windows. - Cover the fallback and trusted-shell paths with focused tests. - Add the changelog attribution for openclaw#78266. Verification: - `pnpm vitest run src/infra/shell-env.test.ts` - `pnpm build` - `pnpm check` - Full GitHub CI green at `deb6ffbd3c203fc52f5b320fe5ca5aafa11ade57`.
Summary
windowsHide: trueto the login-shell env probe used by shell-env fallbackFixes #78159.
Verification
pnpm install --frozen-lockfilepnpm test src/infra/shell-env.test.tspnpm exec oxfmt --check --threads=1 CHANGELOG.md src/infra/shell-env.ts src/infra/shell-env.test.tspnpm check:changedNotes
Windows live visual confirmation was not run from this macOS maintainer workspace; this is the narrow source-backed fix ClawSweeper identified.