mirror of https://github.com/garrytan/gstack.git
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:
parent
b4deb0b81e
commit
256a72a378
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Reference in New Issue