mirror of
https://github.com/garrytan/gstack.git
synced 2026-05-02 03:35:09 +02:00
fix: sidebar agent passes BROWSE_PORT to child claude
Ensures the child claude process connects to the existing headed browse server (port 34567) instead of spawning a new headless one. Without this, sidebar chat commands run in an invisible browser.
This commit is contained in:
@@ -242,6 +242,9 @@ async function askClaude(queueEntry: any): Promise<void> {
|
||||
env: {
|
||||
...process.env,
|
||||
BROWSE_STATE_FILE: stateFile || '',
|
||||
// Connect to the existing headed browse server instead of launching a new one.
|
||||
// Without this, the child claude starts a headless browser on a random port.
|
||||
BROWSE_PORT: process.env.BROWSE_PORT || '34567',
|
||||
// Pin this agent to its tab — prevents cross-tab interference
|
||||
// when multiple agents run simultaneously
|
||||
BROWSE_TAB: String(tid),
|
||||
|
||||
Reference in New Issue
Block a user