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

推荐订阅源

D
Docker
V
V2EX
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
云风的 BLOG
云风的 BLOG
Blog — PlanetScale
Blog — PlanetScale
Recent Announcements
Recent Announcements
Last Week in AI
Last Week in AI
博客园 - Franky
Microsoft Security Blog
Microsoft Security Blog
Hugging Face - Blog
Hugging Face - Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Vercel News
Vercel News
MyScale Blog
MyScale Blog
大猫的无限游戏
大猫的无限游戏
罗磊的独立博客
H
Help Net Security
月光博客
月光博客
Martin Fowler
Martin Fowler
博客园 - 【当耐特】
宝玉的分享
宝玉的分享
P
Proofpoint News Feed
GbyAI
GbyAI
腾讯CDC
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More

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 command assertions · openclaw/openclaw@8aa2864
steipete · 2026-05-11 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -336,10 +336,15 @@ describe("acp translator stable lifecycle handlers", () => {

336336

const result = await agent.resumeSession(createResumeSessionRequest("agent:main:work"));

337337
338338

expect(result.modes?.currentModeId).toBe("adaptive");

339+

expect(result.configOptions).toBeDefined();

340+

if (!result.configOptions) {

341+

throw new Error("expected resume session config options");

342+

}

339343

const thoughtLevelOption = result.configOptions.find((option) => option.id === "thought_level");

340344

expect(thoughtLevelOption?.currentValue).toBe("adaptive");

341345

expect(sessionStore.getSession("agent:main:work")?.sessionKey).toBe("agent:main:work");

342-

expect(request.mock.calls.map((call) => call[0])).not.toContain("sessions.get");

346+

const requestCalls = (request as unknown as { mock: { calls: Array<[string]> } }).mock.calls;

347+

expect(requestCalls.map((call) => call[0])).not.toContain("sessions.get");

343348

expect(sessionUpdate).toHaveBeenCalledWith({

344349

sessionId: "agent:main:work",

345350

update: {

Original file line numberDiff line numberDiff line change

@@ -207,11 +207,7 @@ function expectSetupSnapshotDoesNotScopeToPlugin(params: {

207207

workspaceDir: "/tmp/openclaw-workspace",

208208

});

209209
210-

expect(loadOpenClawPlugins).toHaveBeenCalledWith(

211-

expect.not.objectContaining({

212-

onlyPluginIds: [params.pluginId],

213-

}),

214-

);

210+

expect(loadOpenClawPlugins).toHaveBeenCalledTimes(1);

215211

const firstLoadCall = vi.mocked(loadOpenClawPlugins).mock.calls[0]?.[0] as

216212

| { onlyPluginIds?: string[] }

217213

| undefined;

Original file line numberDiff line numberDiff line change

@@ -1455,11 +1455,9 @@ describe("doctor config flow", () => {

14551455

});

14561456
14571457

expect(noteImplicitFallbackClobberWarningsMock).toHaveBeenCalledTimes(1);

1458-

expect(noteImplicitFallbackClobberWarningsMock).toHaveBeenCalledWith(

1459-

expect.objectContaining({

1460-

agents: config.agents,

1461-

}),

1462-

);

1458+

const [[warningParams]] = noteImplicitFallbackClobberWarningsMock.mock

1459+

.calls as unknown as Array<[{ agents?: unknown }]>;

1460+

expect(warningParams.agents).toStrictEqual(config.agents);

14631461

const doctorWarnings = terminalNoteMock.mock.calls

14641462

.filter(([, title]) => title === "Doctor warnings")

14651463

.map(([message]) => message);

Original file line numberDiff line numberDiff line change

@@ -398,18 +398,20 @@ describe("gateway-status command", () => {

398398

expect(runtimeErrors).toHaveLength(0);

399399

const parsed = JSON.parse(runtimeLogs.join("\n")) as {

400400

degraded?: boolean;

401-

warnings?: Array<{ code?: string; message?: string }>;

401+

warnings?: Array<{ code?: string; message?: string; targetIds?: string[] }>;

402402

};

403403

expect(parsed.degraded).toBe(true);

404-

expect(parsed.warnings).toEqual(

405-

expect.arrayContaining([

406-

expect.objectContaining({

407-

code: "model_pricing_degraded",

408-

message:

409-

"Model pricing degraded: OpenRouter pricing fetch failed: TypeError: fetch failed",

410-

}),

411-

]),

412-

);

404+

const pricingWarnings =

405+

parsed.warnings?.filter((warning) => warning.code === "model_pricing_degraded") ?? [];

406+

expect(pricingWarnings).toHaveLength(2);

407+

expect(pricingWarnings.map((warning) => warning.message)).toEqual([

408+

"Model pricing degraded: OpenRouter pricing fetch failed: TypeError: fetch failed",

409+

"Model pricing degraded: OpenRouter pricing fetch failed: TypeError: fetch failed",

410+

]);

411+

expect(pricingWarnings.map((warning) => warning.targetIds)).toEqual([

412+

["sshTunnel"],

413+

["configRemote"],

414+

]);

413415

});

414416
415417

it("includes diagnostic next steps when no gateway is reachable or discoverable", async () => {

Original file line numberDiff line numberDiff line change

@@ -209,11 +209,10 @@ describe("status-json-payload", () => {

209209

secretDiagnostics: [],

210210

});

211211
212-

expect(payload.gateway).toMatchObject({

213-

modelPricing: {

214-

state: "degraded",

215-

detail: "OpenRouter pricing fetch failed: TypeError: fetch failed",

216-

},

217-

});

212+

const modelPricing = payload.gateway.modelPricing as

213+

| { state?: string; detail?: string }

214+

| undefined;

215+

expect(modelPricing?.state).toBe("degraded");

216+

expect(modelPricing?.detail).toBe("OpenRouter pricing fetch failed: TypeError: fetch failed");

218217

});

219218

});

Original file line numberDiff line numberDiff line change

@@ -85,13 +85,9 @@ describe("buildStatusCommandReportData", () => {

8585

}),

8686

);

8787
88-

expect(result.overviewRows).toEqual(

89-

expect.arrayContaining([

90-

{

91-

Item: "Model pricing",

92-

Value: "warn(degraded · OpenRouter pricing fetch failed: TypeError: fetch failed)",

93-

},

94-

]),

95-

);

88+

expect(result.overviewRows).toContainEqual({

89+

Item: "Model pricing",

90+

Value: "warn(degraded · OpenRouter pricing fetch failed: TypeError: fetch failed)",

91+

});

9692

});

9793

});