fix(windows): avoid PowerShell WindowStyle argv under Bun - #1674
Conversation
|
✅ Deterministic PR hygiene checks passed. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (12)
💤 Files with no reviewable changes (3)
📝 WalkthroughWalkthroughRemoved ChangesWindows PowerShell process handling
Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk: 🟡 Moderate · up to This change removes incompatible PowerShell command-line arguments from several Windows paths, but merge should wait for Windows CI and a Windows 11 smoke test because the affected Bun-on-Windows behavior cannot be validated on Linux. Possibly related PRs
Suggested labels: Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
lidge-jun
left a comment
There was a problem hiding this comment.
[Repository bug audit · 2026-08-14]
The change is internally consistent: direct PowerShell child argv drops -WindowStyle Hidden, process-level hiding remains in place, the trusted executable/timeouts are preserved, and the regression coverage prevents the incompatible pair from returning. Cross-platform CI and React Doctor are green on this exact head.
Recommended merge order: land this before #1678 and rebase #1678 afterward, because both touch windowsIdentityPowerShellCommand; the localized-path fix must retain its deterministic Base64/UTF-16 output while inheriting this PR's argv contract.
|
Cherry-picked onto dev as part of the bug resolution campaign (commit-and-merge loop). Changes verified with typecheck and focused tests. |
Summary
-WindowStyle Hiddenfrom direct Bun/Node PowerShell child invocations used by identity, ACL principal, process inspection, config PID validation, tray, and update pathswindowsHide: true, hidden VBS/.NET launch behavior, trusted System32 PowerShell resolution, non-interactive flags, and existing timeoutsStart-Process -WindowStyle Hiddencalls unchanged because the reported failure is specific to the direct PowerShell CLI argv under BunFixes #1589.
Verification
bun x tsc --noEmit— passedbun run privacy:scan— passedgit diff --check— passedWindowStyleuses are only innerStart-Process, .NET ProcessStartInfo, PowerShell script, or VBS window-style controlsPlatform note
The affected Bun 1.3.14 + Windows 11 execution path cannot be reproduced on this Linux host. Exact-head Windows CI and a reporter/maintainer Windows smoke test are required before merge.
Scope
Windows bug fix and architecture documentation only. No GUI direction or unrelated text change.
Summary by CodeRabbit
Bug Fixes
Documentation
Tests