Repository navigation
fix: add Windows compatibility for browse server - #25
Closed
DanMcInerney wants to merge 1 commit into
Closed
DanMcInerney wants to merge 1 commit into
DanMcInerney wants to merge 1 commit into
Conversation
Bun's subprocess management hangs when Playwright calls chromium.launch() on Windows. This replaces Bun-specific APIs with cross-runtime equivalents so the server works under both Bun (Unix) and Node (Windows): - Replace Bun.serve() with node:http createServer (works in both runtimes) - Replace Bun.serve() port scanning with node:net createServer - On Windows, spawn server via node:child_process with detached:true (Bun.spawn + unref doesn't properly orphan on Windows) - Build step now also bundles server.js for Node via --target node - Fix resolveServerScript() dev-mode check for Windows paths Co-Authored-By: Claude Opus 4.6 <[email protected]>
Owner
|
Closing — we can't support Windows at this time. The Bun.serve → node:http migration adds significant complexity and a dual-runtime server path. Appreciate the investigation into the Chromium launch hang though. |
Jmeg8r
added a commit
to Jmeg8r/gstack
that referenced
this pull request
Nov 8, 2026
…sing the snapshot' (garrytan#25) from fix/cso-symlink-alias into main
capy-ai Bot
added a commit
that referenced
this pull request
Nov 22, 2026
…ow leads to a /ship sign-off (GST-3546) (#4717) After a pull request's two review rounds, an approved extra check of the fixes now ends in a /ship sign-off instead of a dead end. Why: three projects (gbrain #10068, gskills #23–#25, gstack #4712) had no way to finish after a ruling at the round limit and skipped the sign-off or bent their records. Nothing to do: the next /ship uses it. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> Review-Finding: p1/specialist-batched#1 reader=security Review-Finding: p1/specialist-batched#2 reader=state-machines Review-Finding: p1/specialist-batched#3 reader=state-machines Review-Finding: p1/red-team#1 reader=red-team Review-Finding: p1/red-team#2 reader=red-team Review-Finding: p2/outside-voice#1 reader=outside-voice Review-Finding: p2/outside-voice#2 reader=outside-voice Review-Finding: p2/outside-voice#3 reader=outside-voice Review-Finding: p2/adversarial-native#1 reader=adversarial-native
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
chromium.launch()on Windows. Node.js works fine with the same Playwright code.Bun.serve()withnode:httpcreateServer()— works in both Bun and NodeBun.serve()port scanning withnode:netcreateServer()node:child_processwithdetached: truerunning a pre-bundleddist/server.jsunder Node. On Unix, behavior is unchanged (Bun runs.tssource directly).resolveServerScript()dev-mode path check that excluded Windows pathsHow it works
browse(Bun compiled)bun run src/server.tsbrowse.exe(Bun compiled)node dist/server.jsThe build step now also produces
dist/server.jsviabun build --target node --packages externalfor the Windows/Node path.Test plan
chromium.launch()hangs under Bun on Windows, works under Nodebrowse goto <url>starts server and navigatesbrowse status,browse text,browse screenshot,browse snapshot -iall work🤖 Generated with Claude Code