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

推荐订阅源

Hugging Face - Blog
Hugging Face - Blog
宝玉的分享
宝玉的分享
G
Google Developers Blog
T
Tailwind CSS Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
V
V2EX
V
Visual Studio Blog
博客园 - Franky
S
SegmentFault 最新的问题
Jina AI
Jina AI
爱范儿
爱范儿
The Cloudflare Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
D
DataBreaches.Net
C
Check Point Blog
月光博客
月光博客
P
Proofpoint News Feed
T
The Blog of Author Tim Ferriss
罗磊的独立博客
H
Hackread – Cybersecurity News, Data Breaches, AI and More
MongoDB | Blog
MongoDB | Blog
The GitHub Blog
The GitHub Blog
Y
Y Combinator Blog
Martin Fowler
Martin Fowler

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: require core weak guard lookups · openclaw/openclaw...
steipete · 2026-05-09 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -15,6 +15,17 @@ function toolNames(tools: ReturnType<typeof createOpenClawTools>): string[] {

1515

return tools.map((tool) => tool.name);

1616

}

1717
18+

function expectToolNamed(

19+

tools: ReturnType<typeof createOpenClawTools>,

20+

name: string,

21+

): ReturnType<typeof createOpenClawTools>[number] {

22+

const tool = tools.find((candidate) => candidate.name === name);

23+

if (!tool) {

24+

throw new Error(`Expected tool ${name} to be registered`);

25+

}

26+

return tool;

27+

}

28+
1829

function openAiGpt5Params(

1930

config: OpenClawConfig,

2031

overrides: Partial<UpdatePlanGatingParams> = {},

@@ -67,13 +78,9 @@ describe("openclaw-tools update_plan gating", () => {

6778

wrapBeforeToolCallHook: false,

6879

});

6980
81+

expect(isToolWrappedWithBeforeToolCallHook(expectToolNamed(tools, "sessions_list"))).toBe(true);

7082

expect(

71-

isToolWrappedWithBeforeToolCallHook(tools.find((tool) => tool.name === "sessions_list")!),

72-

).toBe(true);

73-

expect(

74-

isToolWrappedWithBeforeToolCallHook(

75-

unwrappedTools.find((tool) => tool.name === "sessions_list")!,

76-

),

83+

isToolWrappedWithBeforeToolCallHook(expectToolNamed(unwrappedTools, "sessions_list")),

7784

).toBe(false);

7885

});

7986
Original file line numberDiff line numberDiff line change

@@ -12,6 +12,14 @@ import {

1212
1313

type TestConfig = Record<string, unknown>;

1414
15+

function parseLastJsonLine(raw: string): unknown {

16+

const lastLine = raw.trim().split("\n").at(-1);

17+

if (!lastLine) {

18+

throw new Error("Expected audit log to contain at least one JSON line");

19+

}

20+

return JSON.parse(lastLine) as unknown;

21+

}

22+
1523

const mockConfig = vi.hoisted(() => {

1624

const initial = {};

1725

const state = {

@@ -550,7 +558,7 @@ describe("parseCrestodianOperation", () => {

550558

});

551559

expect(lines.join("\n")).toContain("[crestodian] done: doctor.fix");

552560

const auditPath = path.join(tempDir, "audit", "crestodian.jsonl");

553-

const audit = JSON.parse((await fs.readFile(auditPath, "utf8")).trim().split("\n").at(-1)!);

561+

const audit = parseLastJsonLine(await fs.readFile(auditPath, "utf8"));

554562

expect(audit).toMatchObject({

555563

operation: "doctor.fix",

556564

summary: "Ran doctor repairs",

Original file line numberDiff line numberDiff line change

@@ -14,7 +14,7 @@ describe("security audit deep probe failure", () => {

1414

close?: { code: number; reason: string } | null;

1515

};

1616

};

17-

expectedError?: string;

17+

expectedError: string;

1818

}> = [

1919

{

2020

name: "probe returns failed result",

@@ -50,7 +50,8 @@ describe("security audit deep probe failure", () => {

5050

findings.some((finding) => finding.checkId === "gateway.probe_failed"),

5151

testCase.name,

5252

).toBe(true);

53-

expect(findings[0]?.detail).toContain(testCase.expectedError!);

53+

const probeFailure = findings.find((finding) => finding.checkId === "gateway.probe_failed");

54+

expect(probeFailure?.detail, testCase.name).toContain(testCase.expectedError);

5455

}

5556

});

5657

});