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

推荐订阅源

H
Help Net Security
月光博客
月光博客
IT之家
IT之家
B
Blog RSS Feed
T
Tailwind CSS Blog
The GitHub Blog
The GitHub Blog
博客园 - 三生石上(FineUI控件)
MyScale Blog
MyScale Blog
J
Java Code Geeks
Stack Overflow Blog
Stack Overflow Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
博客园 - Franky
博客园 - 叶小钗
阮一峰的网络日志
阮一峰的网络日志
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
U
Unit 42
博客园_首页
B
Blog
V
V2EX
腾讯CDC
Vercel News
Vercel News
量子位
Microsoft Security Blog
Microsoft Security Blog

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
test: check node wake dynamic values · openclaw/openclaw@...
shakkernerd · 2026-05-11 · via Recent Commits to openclaw:main

@@ -96,6 +96,36 @@ function expectRecordFields(

9696

return record;

9797

}

989899+

function requireString(value: unknown, label: string): string {

100+

expect(typeof value, `${label} must be a string`).toBe("string");

101+

return value as string;

102+

}

103+104+

function isLowerHex(value: string): boolean {

105+

return [...value].every((char) => (char >= "0" && char <= "9") || (char >= "a" && char <= "f"));

106+

}

107+108+

function isUuidV4(value: string): boolean {

109+

const parts = value.split("-");

110+

if (parts.length !== 5) {

111+

return false;

112+

}

113+

const [part0, part1, part2, part3, part4] = parts;

114+

if (

115+

part0?.length !== 8 ||

116+

part1?.length !== 4 ||

117+

part2?.length !== 4 ||

118+

part3?.length !== 4 ||

119+

part4?.length !== 12

120+

) {

121+

return false;

122+

}

123+

if (part2[0] !== "4" || !part3[0] || !"89ab".includes(part3[0])) {

124+

return false;

125+

}

126+

return parts.every(isLowerHex);

127+

}

128+99129

function requireRespondPayload(call: RespondCall | undefined, label: string) {

100130

expect(call?.[0], `${label} success`).toBe(true);

101131

return requireRecord(call?.[1], `${label} payload`);

@@ -317,18 +347,22 @@ describe("node plugin surface refresh", () => {

317347

context: {} as never,

318348

});

319349320-

expect(respond).toHaveBeenCalledWith(

321-

true,

322-

{

323-

surface: "canvas",

324-

pluginSurfaceUrls: {

325-

canvas: expect.stringContaining("/__openclaw__/cap/"),

326-

},

327-

expiresAtMs: 1_100,

328-

},

329-

undefined,

330-

);

331-

expect(client.pluginSurfaceUrls.canvas).not.toContain("old-token");

350+

expect(respond).toHaveBeenCalledTimes(1);

351+

const call = respond.mock.calls[0] as RespondCall | undefined;

352+

expect(call?.[0]).toBe(true);

353+

expect(call?.[2]).toBeUndefined();

354+

const payload = requireRecord(call?.[1], "refresh payload");

355+

expect(payload.surface).toBe("canvas");

356+

expect(payload.expiresAtMs).toBe(1_100);

357+

const pluginSurfaceUrls = requireRecord(payload.pluginSurfaceUrls, "refresh surface urls");

358+

const canvasUrl = requireString(pluginSurfaceUrls.canvas, "refresh canvas url");

359+

const parsedCanvasUrl = new URL(canvasUrl);

360+

expect(parsedCanvasUrl.origin).toBe("http://127.0.0.1:18789");

361+

expect(parsedCanvasUrl.pathname.startsWith("/__openclaw__/cap/")).toBe(true);

362+

const capabilityToken = parsedCanvasUrl.pathname.slice("/__openclaw__/cap/".length);

363+

expect(capabilityToken.length).toBeGreaterThan(0);

364+

expect(capabilityToken).not.toBe("old-token");

365+

expect(client.pluginSurfaceUrls.canvas).toBe(canvasUrl);

332366

});

333367

});

334368

@@ -684,15 +718,11 @@ describe("node.invoke APNs wake path", () => {

684718

paramsJSON: JSON.stringify({ url: "http://example.com/" }),

685719

});

686720687-

const queuedActionId = (pullPayload.actions as Array<{ id?: string }> | undefined)?.[0]?.id;

688-

expect(queuedActionId).toEqual(

689-

expect.stringMatching(

690-

/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/u,

691-

),

721+

const queuedActionId = requireString(

722+

(pullPayload.actions as Array<{ id?: string }> | undefined)?.[0]?.id,

723+

"queued action id",

692724

);

693-

if (queuedActionId === undefined) {

694-

throw new Error("expected queued action id");

695-

}

725+

expect(isUuidV4(queuedActionId)).toBe(true);

696726697727

const ackRespond = await ackPending("ios-node-queued", [queuedActionId], ["canvas.navigate"]);

698728

const ackCall = ackRespond.mock.calls[0] as RespondCall | undefined;