惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Y
Y Combinator Blog
有赞技术团队
有赞技术团队
J
Java Code Geeks
H
Hackread – Cybersecurity News, Data Breaches, AI and More
美团技术团队
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Hugging Face - Blog
Hugging Face - Blog
人人都是产品经理
人人都是产品经理
酷 壳 – CoolShell
酷 壳 – CoolShell
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
C
Check Point Blog
博客园 - 【当耐特】
The GitHub Blog
The GitHub Blog
Recent Announcements
Recent Announcements
The Cloudflare Blog
Microsoft Azure Blog
Microsoft Azure Blog
腾讯CDC
Vercel News
Vercel News
IT之家
IT之家
MyScale Blog
MyScale Blog
博客园_首页
Martin Fowler
Martin Fowler
WordPress大学
WordPress大学
罗磊的独立博客

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
fix(browser): extend existing-session status probe · open...
2026-05-10 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -323,6 +323,12 @@ describe("browser client", () => {

323323

expect.stringMatching(/\/doctor\?profile=openclaw&deep=true$/),

324324

]),

325325

);

326+

const status = calls.find((c) => c.url.endsWith("/"));

327+

expect(status?.init?.timeoutMs).toBe(7_500);

328+

const doctor = calls.find((c) => c.url.endsWith("/doctor"));

329+

expect(doctor?.init?.timeoutMs).toBe(7_500);

330+

const deepDoctor = calls.find((c) => c.url.endsWith("/doctor?profile=openclaw&deep=true"));

331+

expect(deepDoctor?.init?.timeoutMs).toBe(10_000);

326332

const open = calls.find((c) => c.url.endsWith("/tabs/open"));

327333

expect(open?.init?.method).toBe("POST");

328334
Original file line numberDiff line numberDiff line change

@@ -11,6 +11,10 @@ import type { BrowserDoctorReport } from "./doctor.js";

1111

export type { BrowserStatus, BrowserTab, BrowserTransport } from "./client.types.js";

1212

export type { BrowserDoctorCheck, BrowserDoctorReport } from "./doctor.js";

1313
14+

const BROWSER_STATUS_REQUEST_TIMEOUT_MS = 7_500;

15+

const BROWSER_DOCTOR_REQUEST_TIMEOUT_MS = 7_500;

16+

const BROWSER_DEEP_DOCTOR_REQUEST_TIMEOUT_MS = 10_000;

17+
1418

export type ProfileStatus = {

1519

name: string;

1620

transport?: BrowserTransport;

@@ -71,7 +75,7 @@ export async function browserStatus(

7175

timeoutMs:

7276

typeof opts?.timeoutMs === "number" && Number.isFinite(opts.timeoutMs)

7377

? Math.max(1, Math.floor(opts.timeoutMs))

74-

: 1500,

78+

: BROWSER_STATUS_REQUEST_TIMEOUT_MS,

7579

});

7680

}

7781

@@ -88,7 +92,9 @@ export async function browserDoctor(

8892

}

8993

const q = params.size ? `?${params.toString()}` : "";

9094

return await fetchBrowserJson<BrowserDoctorReport>(withBaseUrl(baseUrl, `/doctor${q}`), {

91-

timeoutMs: opts?.deep ? 10000 : 3000,

95+

timeoutMs: opts?.deep

96+

? BROWSER_DEEP_DOCTOR_REQUEST_TIMEOUT_MS

97+

: BROWSER_DOCTOR_REQUEST_TIMEOUT_MS,

9298

});

9399

}

94100
Original file line numberDiff line numberDiff line change

@@ -302,6 +302,7 @@ describe("basic browser routes", () => {

302302
303303

expect(response.statusCode).toBe(200);

304304

expect(isTransportAvailable).toHaveBeenCalledTimes(1);

305+

expect(isTransportAvailable).toHaveBeenCalledWith(5_000);

305306

expect(isHttpReachable).not.toHaveBeenCalled();

306307

expect(response.body).toMatchObject({

307308

cdpHttp: true,

Original file line numberDiff line numberDiff line change

@@ -17,6 +17,10 @@ import {

1717

toStringOrEmpty,

1818

} from "./utils.js";

1919
20+

const STATUS_CDP_HTTP_TIMEOUT_MS = 300;

21+

const STATUS_CDP_TRANSPORT_TIMEOUT_MS = 600;

22+

const STATUS_CHROME_MCP_TRANSPORT_TIMEOUT_MS = 5_000;

23+
2024

function handleBrowserRouteError(res: BrowserResponse, err: unknown) {

2125

const mapped = toBrowserErrorResponse(err);

2226

if (mapped) {

@@ -72,10 +76,13 @@ async function buildBrowserStatus(req: BrowserRequest, ctx: BrowserRouteContext)

7276

const capabilities = getBrowserProfileCapabilities(profileCtx.profile);

7377

const [cdpHttp, cdpReady] = capabilities.usesChromeMcp

7478

? await (async () => {

75-

const ready = await profileCtx.isTransportAvailable(600);

79+

const ready = await profileCtx.isTransportAvailable(STATUS_CHROME_MCP_TRANSPORT_TIMEOUT_MS);

7680

return [ready, ready] as const;

7781

})()

78-

: await Promise.all([profileCtx.isHttpReachable(300), profileCtx.isTransportAvailable(600)]);

82+

: await Promise.all([

83+

profileCtx.isHttpReachable(STATUS_CDP_HTTP_TIMEOUT_MS),

84+

profileCtx.isTransportAvailable(STATUS_CDP_TRANSPORT_TIMEOUT_MS),

85+

]);

7986
8087

const profileState = current.profiles.get(profileCtx.profile.name);

8188

let detectedBrowser: string | null = null;