Skip to content

Commit 9870a4e

Browse files
garrytanclaude
andauthored
fix: Windows browse — stdio array format for Bun compatibility (v0.11.18.2) (#468)
* fix: use stdio array format for Bun Windows compatibility Bun on Windows requires stdio as ['ignore','ignore','ignore'] array, not 'ignore' string. Fixes #448, #454, #458. Closes #444. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * chore: bump version and changelog (v0.11.18.2) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 70c51d5 commit 9870a4e

3 files changed

Lines changed: 9 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## [0.11.18.2] - 2026-03-24
4+
5+
### Fixed
6+
7+
- **Windows browse daemon fixed.** The browse server wouldn't start on Windows because Bun requires `stdio` as an array (`['ignore', 'ignore', 'ignore']`), not a string (`'ignore'`). Fixes #448, #454, #458.
8+
39
## [0.11.18.1] - 2026-03-24
410

511
### Changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.11.18.1
1+
0.11.18.2

browse/src/cli.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,9 +234,9 @@ async function startServer(): Promise<ServerState> {
234234
const launcherCode =
235235
`const{spawn}=require('child_process');` +
236236
`spawn(process.execPath,[${JSON.stringify(NODE_SERVER_SCRIPT)}],` +
237-
`{detached:true,stdio:'ignore',env:Object.assign({},process.env,` +
237+
`{detached:true,stdio:['ignore','ignore','ignore'],env:Object.assign({},process.env,` +
238238
`{BROWSE_STATE_FILE:${JSON.stringify(config.stateFile)}})}).unref()`;
239-
Bun.spawnSync(['node', '-e', launcherCode], { stdio: 'ignore' });
239+
Bun.spawnSync(['node', '-e', launcherCode], { stdio: ['ignore', 'ignore', 'ignore'] });
240240
} else {
241241
// macOS/Linux: Bun.spawn + unref works correctly
242242
proc = Bun.spawn(['bun', 'run', SERVER_SCRIPT], {

0 commit comments

Comments
 (0)