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

推荐订阅源

J
Java Code Geeks
美团技术团队
Microsoft Azure Blog
Microsoft Azure Blog
V
Visual Studio Blog
Jina AI
Jina AI
博客园_首页
M
MIT News - Artificial intelligence
D
DataBreaches.Net
L
LangChain Blog
宝玉的分享
宝玉的分享
F
Fortinet All Blogs
A
About on SuperTechFans
月光博客
月光博客
Stack Overflow Blog
Stack Overflow Blog
Google DeepMind News
Google DeepMind News
N
Netflix TechBlog - Medium
Y
Y Combinator Blog
腾讯CDC
Vercel News
Vercel News
雷峰网
雷峰网
GbyAI
GbyAI
aimingoo的专栏
aimingoo的专栏
阮一峰的网络日志
阮一峰的网络日志
博客园 - 【当耐特】

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
feat(browser): add evaluate timeout CLI option (#83696) ·...
clawsweeper · 2026-05-19 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -18,6 +18,7 @@ Docs: https://docs.openclaw.ai

1818

- Skills: add a meme-maker skill for curated template search, local SVG/PNG rendering, Imgflip hosted rendering, and Know Your Meme provenance links.

1919

- Skills CLI: allow `openclaw skills install` and `openclaw skills update` to target shared managed skills with `--global`. (#74466) Thanks @Marvae.

2020

- Browser: surface pending and recently handled modal dialogs in snapshots, return `blockedByDialog` when an action opens a modal, and allow `browser dialog --dialog-id` to answer pending dialogs.

21+

- Browser CLI: add `openclaw browser evaluate --timeout-ms` so long-running page functions can extend both the evaluate action and request timeout budgets. (#83447) Thanks @eefreenyc.

2122

- Codex app-server: scope OpenClaw prompt guidance by runtime surface so native Codex keeps Codex-owned base/personality instructions while OpenClaw contributes only runtime context, delivery guidance, and explicitly scoped command hints. (#83454) Thanks @100yenadmin.

2223

- Agents/tools: shorten built-in tool descriptions and schema hints across media, messaging, sessions, cron, Gateway, web, image/PDF, TTS, nodes, and plan tools while preserving routing guardrails.

2324

- Skills: add node inspector debugging, fused diagram generation, and throwaway spike workflow skills.

Original file line numberDiff line numberDiff line change

@@ -191,8 +191,12 @@ openclaw browser select <ref> OptionA OptionB

191191

openclaw browser fill --fields '[{"ref":"1","value":"Ada"}]'

192192

openclaw browser wait --text "Done"

193193

openclaw browser evaluate --fn '(el) => el.textContent' --ref <ref>

194+

openclaw browser evaluate --timeout-ms 30000 --fn 'async () => { await window.ready; return true; }'

194195

```

195196
197+

Use `evaluate --timeout-ms <ms>` when the page-side function may need longer

198+

than the default evaluate timeout.

199+
196200

Action responses return the current raw `targetId` after action-triggered page

197201

replacement when OpenClaw can prove the replacement tab. Scripts should still

198202

store and pass `suggestedTargetId`/labels for long-lived workflows.

Original file line numberDiff line numberDiff line change

@@ -197,6 +197,7 @@ openclaw browser dialog --dismiss --dialog-id d1

197197

openclaw browser wait --text "Done"

198198

openclaw browser wait "#main" --url "**/dash" --load networkidle --fn "window.ready===true"

199199

openclaw browser evaluate --fn '(el) => el.textContent' --ref 7

200+

openclaw browser evaluate --timeout-ms 30000 --fn 'async () => { await window.ready; return true; }'

200201

openclaw browser highlight e12

201202

openclaw browser trace start

202203

openclaw browser trace stop

@@ -362,6 +363,8 @@ These are useful for "make the site behave like X" workflows:

362363

- `browser act kind=evaluate` / `openclaw browser evaluate` and `wait --fn`

363364

execute arbitrary JavaScript in the page context. Prompt injection can steer

364365

this. Disable it with `browser.evaluateEnabled=false` if you do not need it.

366+

- Use `openclaw browser evaluate --timeout-ms <ms>` when the page-side function

367+

may need longer than the default evaluate timeout.

365368

- For logins and anti-bot notes (X/Twitter, etc.), see [Browser login + X/Twitter posting](/tools/browser-login).

366369

- Keep the Gateway/node host private (loopback or tailnet-only).

367370

- Remote CDP endpoints are powerful; tunnel and protect them.

Original file line numberDiff line numberDiff line change

@@ -65,3 +65,28 @@ describe("browser action input wait command", () => {

6565

expect(options?.timeoutMs).toBeGreaterThan(21000);

6666

});

6767

});

68+
69+

describe("browser action input evaluate command", () => {

70+

beforeEach(() => {

71+

mocks.callBrowserRequest.mockClear();

72+

getBrowserCliRuntimeCapture().resetRuntimeCapture();

73+

});

74+
75+

it("passes timeout-ms through to the evaluate action and outer request", async () => {

76+

const program = createActionInputProgram();

77+
78+

await program.parseAsync(

79+

["browser", "evaluate", "--fn", "() => true", "--timeout-ms", "30000"],

80+

{ from: "user" },

81+

);

82+
83+

const request = mocks.callBrowserRequest.mock.calls.at(-1)?.[1] as

84+

| { body?: { timeoutMs?: number } }

85+

| undefined;

86+

const options = mocks.callBrowserRequest.mock.calls.at(-1)?.[2] as

87+

| { timeoutMs?: number }

88+

| undefined;

89+

expect(request?.body?.timeoutMs).toBe(30000);

90+

expect(options?.timeoutMs).toBeGreaterThan(30000);

91+

});

92+

});

Original file line numberDiff line numberDiff line change

@@ -107,6 +107,11 @@ export function registerBrowserFormWaitEvalCommands(

107107

.description("Evaluate a function against the page or a ref")

108108

.option("--fn <code>", "Function source, e.g. (el) => el.textContent")

109109

.option("--ref <id>", "Ref from snapshot")

110+

.option(

111+

"--timeout-ms <ms>",

112+

"How long to allow the evaluate function to run (default: 20000)",

113+

(v: string) => Number(v),

114+

)

110115

.option("--target-id <id>", "CDP target id (or unique prefix)")

111116

.action(async (opts, cmd) => {

112117

const { parent, profile } = resolveBrowserActionContext(cmd, parentOpts);

@@ -116,6 +121,7 @@ export function registerBrowserFormWaitEvalCommands(

116121

return;

117122

}

118123

try {

124+

const timeoutMs = Number.isFinite(opts.timeoutMs) ? opts.timeoutMs : undefined;

119125

const result = await callBrowserAct<{ result?: unknown }>({

120126

parent,

121127

profile,

@@ -124,7 +130,9 @@ export function registerBrowserFormWaitEvalCommands(

124130

fn: opts.fn,

125131

ref: normalizeOptionalString(opts.ref),

126132

targetId: normalizeOptionalString(opts.targetId),

133+

timeoutMs,

127134

},

135+

timeoutMs,

128136

});

129137

if (parent?.json) {

130138

defaultRuntime.writeJson(result);

Original file line numberDiff line numberDiff line change

@@ -433,6 +433,24 @@ export const configHandlers: GatewayRequestHandlers = {

433433

);

434434

return;

435435

}

436+

const restoredChangedPaths = diffConfigPaths(snapshot.config, restoredMerge.result);

437+

const actor = resolveControlPlaneActor(client);

438+

if (restoredChangedPaths.length === 0) {

439+

context?.logGateway?.info(

440+

`config.patch noop ${formatControlPlaneActor(actor)} (no changed paths)`,

441+

);

442+

respond(

443+

true,

444+

{

445+

ok: true,

446+

noop: true,

447+

path: resolveGatewayConfigPath(snapshot),

448+

config: redactConfigObject(snapshot.config, schemaPatch.uiHints),

449+

},

450+

undefined,

451+

);

452+

return;

453+

}

436454

const validated = validateConfigObjectWithPlugins(restoredMerge.result);

437455

if (!validated.ok) {

438456

respond(

@@ -452,7 +470,6 @@ export const configHandlers: GatewayRequestHandlers = {

452470

return;

453471

}

454472

const changedPaths = diffConfigPaths(snapshot.config, validated.config);

455-

const actor = resolveControlPlaneActor(client);

456473
457474

// No-op: if the validated config is identical to the current config,

458475

// skip the file write and SIGUSR1 restart entirely. This avoids a full