fix(infra): make browser relay bind address configurable

Add browser.relayBindHost config option so the Chrome extension relay
server can bind to a non-loopback address (e.g. 0.0.0.0 for WSL2).
Defaults to 127.0.0.1 when unset, preserving current behavior.

Closes #39214

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Matt Van Horn
2026-03-07 18:00:58 -08:00
committed by Peter Steinberger
parent 0692f71c6f
commit 436ae8a07c
7 changed files with 53 additions and 3 deletions

View File

@@ -66,4 +66,10 @@ export type BrowserConfig = {
* Example: ["--window-size=1920,1080", "--disable-infobars"]
*/
extraArgs?: string[];
/**
* Bind address for the Chrome extension relay server.
* Default: "127.0.0.1". Set to "0.0.0.0" for WSL2 or other environments where
* the relay must be reachable from a different network namespace.
*/
relayBindHost?: string;
};

View File

@@ -372,6 +372,7 @@ export const OpenClawSchema = z
)
.optional(),
extraArgs: z.array(z.string()).optional(),
relayBindHost: z.string().optional(),
})
.strict()
.optional(),