Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion browse/src/browser-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,18 @@ export class BrowserManager {
private dialogPromptText: string | null = null;

async launch() {
this.browser = await chromium.launch({ headless: true });
const isWindows = process.platform === 'win32';

if (isWindows) {
// Bun's pipe transport hangs on Windows (garrytan/gstack#77).
// Use websocket transport instead of the default pipe.
this.browser = await chromium.launch({
headless: true,
args: ['--remote-debugging-port=0'],
});
} else {
this.browser = await chromium.launch({ headless: true });
}

// Chromium crash → exit with clear message
this.browser.on('disconnected', () => {
Expand Down