Skip to content

fix(sdk): hide spawned API server console window on Windows - #1089

Merged
maschwenk merged 1 commit into
mainfrom
fix/api-windows-hide
Nov 25, 2026
Merged

maschwenk merged 1 commit into
mainfrom
fix/api-windows-hide

Conversation

@maschwenk

Copy link
Copy Markdown
Collaborator

using tsrs/sync or tsrs/async from a console-less process on Windows (daemons, detached workers) opened a visible console window for every spawned tsrs.exe, stealing focus.

this adds windowsHide: true to the spawn calls in src/api/async/client.ts and src/api/syncChannel.ts via the SDK patch set in npm/sdk/patches/ and updates npm/tsrs/UPSTREAM.json so sync-upstream.mjs --check stays green. no unit test was added because verifying the Windows console window requires a Windows desktop host and mocking child_process.spawn would only restate the option. fixes #1076

@github-actions

github-actions Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Performance change vs main

Workflow run Β· main 64bd6bfb1cb4 β†’ PR merge 7402e2948036 (head c99357c734c0)

Clef gate: Clef estimated 19.4% default and single-threaded wall time, 16.7% peak RSS, 21.6% single-threaded instruction count impact probability.

The main and PR tsrs release binaries are byte-for-byte identical. No compiler performance difference to measure.

tsrs-lint

The main and PR tsrs-lint binaries are byte-for-byte identical. No lint performance difference to measure.

@codspeed

codspeed Bot commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

Merging this PR will not alter performance

Warning

oxc-project has exceeded the Hobby plan limit of 5 active contributors. Upgrade your plan or apply to the open source program by December 8, 2026 to keep using CodSpeed.

1 warning

⚠️ 4 benchmarks are dominated by system calls

System calls cannot be simulated consistently and are left out of the measure. The reported value understates the real cost. Switch to the Walltime instrument to measure them.

Learn more about system calls

See affected benchmarks

βœ… 8 untouched benchmarks
⏩ 8 skipped benchmarks1


Comparing fix/api-windows-hide (c99357c) with main (64bd6bf)

Open in CodSpeed

Footnotes

  1. 8 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩

@maschwenk
maschwenk marked this pull request as ready for review November 25, 2026 17:19
@maschwenk
maschwenk added this pull request to the merge queue Nov 25, 2026
Merged via the queue into main with commit 982eaf7 Nov 25, 2026
36 checks passed
@maschwenk
maschwenk deleted the fix/api-windows-hide branch November 25, 2026 17:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

Windows: API client spawns tsrs.exe without windowsHide, opening a focused console window from console-less processes

1 participant