mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-31 00:16:52 +00:00
fix(browser): add browser session selection
This commit is contained in:
@@ -164,6 +164,7 @@ async function readBrowserProxyStatus(params: {
|
||||
const body = response.body as Record<string, unknown>;
|
||||
return {
|
||||
running: body.running,
|
||||
transport: body.transport,
|
||||
cdpHttp: body.cdpHttp,
|
||||
cdpReady: body.cdpReady,
|
||||
cdpUrl: body.cdpUrl,
|
||||
@@ -194,6 +195,9 @@ function formatBrowserProxyTimeoutMessage(params: {
|
||||
`cdpHttp=${String(params.status.cdpHttp)}`,
|
||||
`cdpReady=${String(params.status.cdpReady)}`,
|
||||
];
|
||||
if (typeof params.status.transport === "string" && params.status.transport.trim()) {
|
||||
statusParts.push(`transport=${params.status.transport}`);
|
||||
}
|
||||
if (typeof params.status.cdpUrl === "string" && params.status.cdpUrl.trim()) {
|
||||
statusParts.push(`cdpUrl=${params.status.cdpUrl}`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user