Problem
After upgrading gstack to v0.15.16.0, the browse server fails to start on Windows:
[browse] Starting server...
[browse] Server failed to start within 15s
Root Cause
Two issues from the ngrok integration for pair-agent:
1. Build error
browse/scripts/build-node-server.sh uses --outfile (single-file mode). On Windows, @ngrok/ngrok includes a native binary that Bun treats as a second output file, causing: cannot write multiple output files without an output directory
2. bun:sqlite stub not applied
The perl regex that stubs bun:sqlite fails on Windows due to brace escaping. Node.js then crashes with ERR_UNSUPPORTED_ESM_URL_SCHEME.
Fix
Add --external "@ngrok/ngrok" to the bun build command in browse/scripts/build-node-server.sh line 17. For the perl issue, use sed as fallback on Windows.
Environment
- Windows 11 Pro (Git Bash), Bun 1.3.11, Node v24.13.0, gstack v0.15.16.0
Note
Even after fix, browse CLI server launcher still fails (likely #486). Workaround: pre-start with node server-node.mjs.
Problem
After upgrading gstack to v0.15.16.0, the browse server fails to start on Windows:
Root Cause
Two issues from the ngrok integration for pair-agent:
1. Build error
browse/scripts/build-node-server.shuses--outfile(single-file mode). On Windows,@ngrok/ngrokincludes a native binary that Bun treats as a second output file, causing:cannot write multiple output files without an output directory2. bun:sqlite stub not applied
The perl regex that stubs
bun:sqlitefails on Windows due to brace escaping. Node.js then crashes withERR_UNSUPPORTED_ESM_URL_SCHEME.Fix
Add
--external "@ngrok/ngrok"to the bun build command inbrowse/scripts/build-node-server.shline 17. For the perl issue, use sed as fallback on Windows.Environment
Note
Even after fix, browse CLI server launcher still fails (likely #486). Workaround: pre-start with
node server-node.mjs.