Skip to content
Closed
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
10 changes: 5 additions & 5 deletions browse/src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -842,11 +842,11 @@ Refs: After 'snapshot', use @e1, @e2... as selectors:
BROWSE_PORT: '34567',
BROWSE_SIDEBAR_CHAT: '1',
};
// If parent explicitly set BROWSE_PARENT_PID=0 (pair-agent disabling
// self-termination), pass it through so startServer doesn't override it.
if (process.env.BROWSE_PARENT_PID === '0') {
serverEnv.BROWSE_PARENT_PID = '0';
}
// Headed mode: disable parent-process watchdog. The browser is meant to
// outlive the CLI process — the user is looking at it. Without this, the
// server detects the CLI exit and shuts down Chromium within 15 seconds.
// Also honor explicit BROWSE_PARENT_PID=0 from pair-agent.
serverEnv.BROWSE_PARENT_PID = '0';
const newState = await startServer(serverEnv);

// Print connected status
Expand Down