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

推荐订阅源

C
Check Point Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
博客园 - 聂微东
月光博客
月光博客
博客园 - 司徒正美
爱范儿
爱范儿
aimingoo的专栏
aimingoo的专栏
量子位
Recent Announcements
Recent Announcements
V
V2EX
P
Proofpoint News Feed
小众软件
小众软件
云风的 BLOG
云风的 BLOG
腾讯CDC
宝玉的分享
宝玉的分享
Microsoft Azure Blog
Microsoft Azure Blog
大猫的无限游戏
大猫的无限游戏
Vercel News
Vercel News
The GitHub Blog
The GitHub Blog
A
About on SuperTechFans
B
Blog
博客园_首页
GbyAI
GbyAI
博客园 - Franky

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: tighten doctor helper assertions · openclaw/opencla...
steipete · 2026-05-10 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -295,12 +295,12 @@ describe("maybeRepairGatewayDaemon", () => {

295295

healthOk: false,

296296

});

297297
298-

expect(readGatewayRestartHandoffSync).toHaveBeenCalledWith(

299-

expect.objectContaining({

300-

OPENCLAW_STATE_DIR: "/tmp/openclaw-service",

301-

OPENCLAW_CONFIG_PATH: "/tmp/openclaw-service/openclaw.json",

302-

}),

303-

);

298+

expect(readGatewayRestartHandoffSync).toHaveBeenCalledOnce();

299+

const [handoffEnv] = readGatewayRestartHandoffSync.mock.calls[0] as unknown as [

300+

{ OPENCLAW_STATE_DIR?: string; OPENCLAW_CONFIG_PATH?: string },

301+

];

302+

expect(handoffEnv?.OPENCLAW_STATE_DIR).toBe("/tmp/openclaw-service");

303+

expect(handoffEnv?.OPENCLAW_CONFIG_PATH).toBe("/tmp/openclaw-service/openclaw.json");

304304

expect(note).toHaveBeenCalledWith(

305305

expect.stringContaining("Recent restart handoff: full-process via systemd"),

306306

"Gateway",

Original file line numberDiff line numberDiff line change

@@ -15,7 +15,12 @@ vi.mock("../terminal/note.js", () => ({

1515

import { noteSessionLockHealth } from "./doctor-session-locks.js";

1616
1717

async function expectPathMissing(targetPath: string): Promise<void> {

18-

await expect(fs.access(targetPath)).rejects.toMatchObject({ code: "ENOENT" });

18+

try {

19+

await fs.access(targetPath);

20+

throw new Error(`expected missing path: ${targetPath}`);

21+

} catch (error) {

22+

expect((error as NodeJS.ErrnoException).code).toBe("ENOENT");

23+

}

1924

}

2025
2126

describe("noteSessionLockHealth", () => {

Original file line numberDiff line numberDiff line change

@@ -90,12 +90,10 @@ describe("doctor session transcript repair", () => {

9090
9191

const result = await repairBrokenSessionTranscriptFile({ filePath, shouldRepair: true });

9292
93-

expect(result).toMatchObject({

94-

broken: true,

95-

repaired: true,

96-

originalEntries: 6,

97-

activeEntries: 3,

98-

});

93+

expect(result.broken).toBe(true);

94+

expect(result.repaired).toBe(true);

95+

expect(result.originalEntries).toBe(6);

96+

expect(result.activeEntries).toBe(3);

9997

if (result.backupPath === undefined) {

10098

throw new Error("expected transcript backup path");

10199

}

Original file line numberDiff line numberDiff line change

@@ -82,8 +82,7 @@ describe("doctor empty allowlist policy scan", () => {

8282
8383

expect(warnings).toEqual(["extra:channels.signal"]);

8484

expect(extraWarningsForAccount).toHaveBeenCalledTimes(1);

85-

expect(extraWarningsForAccount).toHaveBeenCalledWith(

86-

expect.objectContaining({ prefix: "channels.signal" }),

87-

);

85+

const [warningOptions] = extraWarningsForAccount.mock.calls[0] ?? [];

86+

expect(warningOptions?.prefix).toBe("channels.signal");

8887

});

8988

});

Original file line numberDiff line numberDiff line change

@@ -211,9 +211,9 @@ describe("doctor preview warnings", () => {

211211

warning.includes("Telegram allowFrom contains 1") && warning.includes("(e.g. @alice)"),

212212

),

213213

).toBe(true);

214-

expect(warnings).toEqual(

215-

expect.arrayContaining([expect.stringContaining('channels.signal.allowFrom: set to ["*"]')]),

216-

);

214+

expect(

215+

warnings.some((warning) => warning.includes('channels.signal.allowFrom: set to ["*"]')),

216+

).toBe(true);

217217

});

218218
219219

it("sanitizes empty-allowlist warning paths before returning preview output", async () => {