Skip to content

fix(cli): hide the Windows console for the port lookup and clipboard - #6449

Merged
miguel-heygen merged 1 commit into
mainfrom
fix/windows-hide-port-clipboard
Oct 26, 2026
Merged

miguel-heygen merged 1 commit into
mainfrom
fix/windows-hide-port-clipboard

Conversation

@miguel-heygen

Copy link
Copy Markdown
Collaborator

What

The CLI's Windows port lookup (netstat in server/portUtils.ts) and the clipboard provider probe and copy (utils/clipboard.ts) now pass windowsHide: true, so they no longer flash a console window on Windows.

Why

Re-lands #3960 by @lorenzozanee, which was approved but closed after it went stale and conflicted with main. The telemetry spawn from that PR has since landed on main on its own, so this carries the two remaining sites and their tests.

How

One option on each spawn call. The clipboard conflict with main's newer stdio/timeout options is resolved by keeping both.

Test plan

  • portUtils.windowsHide.test.ts and clipboard.windowsHide.test.ts (from the original PR): 2/2, 3 runs. With main's portUtils.ts and clipboard.ts restored, both fail.
  • oxfmt, oxlint and the comment ratchet: clean.

Why under 100 lines of source: it is two call-site options; the rest is the tests.

Co-authored-by: lorenzozanee <lorenzozanee@users.noreply.github.com>
@github-actions

Copy link
Copy Markdown
Contributor

Edit accuracy: accurate 271 (base branch 271), smooth 169 of those

The gate passes.
Smoothness is reported in the artifact, not gated. A case fails only if it fails 2 of 3 runs.

Quarantined, measured but not gated (0)

@heygengenesis heygengenesis Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: APPROVE · 0 blocker · 0 important · 0 nits · head 6db421f4

windowsHide: true is now on every spawn in portUtils.ts and clipboard.ts that can run on Windows (netstat, the where probe, and the clip.exe copy). Main's stdio/timeout options are kept. CI is green on this head.

— Genesis

@miguel-heygen
miguel-heygen added this pull request to the merge queue Oct 26, 2026
Merged via the queue into main with commit 37543d2 Oct 26, 2026
70 checks passed
@miguel-heygen
miguel-heygen deleted the fix/windows-hide-port-clipboard branch October 26, 2026 17:42
SanHsien added a commit to SanHsien/hyperframes that referenced this pull request Oct 26, 2026
Merge 20 more upstream commits (acd0bc3..ad4d3fa, v0.8.205: heygen-com#6403,
heygen-com#6363, heygen-com#6209, heygen-com#6395, heygen-com#6424, heygen-com#6426, heygen-com#6442, heygen-com#6430, heygen-com#6402, heygen-com#6435, heygen-com#6439,
heygen-com#6449, heygen-com#5436, heygen-com#6455 and docs). No conflicts. Record the 11 open PRs
heygen-com#6440-heygen-com#6458 and issue heygen-com#6443 in docs/DECISIONS.md (none adopted), re-check
the earlier open PRs, and advance the commit watermark to ad4d3fa, the
PR watermark to heygen-com#6458 and the issue watermark to heygen-com#6443.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant