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

推荐订阅源

L
LangChain Blog
博客园 - 司徒正美
美团技术团队
Martin Fowler
Martin Fowler
雷峰网
雷峰网
aimingoo的专栏
aimingoo的专栏
博客园 - 三生石上(FineUI控件)
Vercel News
Vercel News
酷 壳 – CoolShell
酷 壳 – CoolShell
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
爱范儿
爱范儿
U
Unit 42
Y
Y Combinator Blog
月光博客
月光博客
Hugging Face - Blog
Hugging Face - Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
有赞技术团队
有赞技术团队
GbyAI
GbyAI
H
Help Net Security
量子位
Last Week in AI
Last Week in AI
博客园_首页
腾讯CDC
小众软件
小众软件

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 remaining UI assertions · openclaw/openclaw...
steipete · 2026-05-11 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -841,12 +841,13 @@ describe("connectGateway", () => {

841841

},

842842

});

843843
844-

expect(host.chatSideResult).toMatchObject({

845-

kind: "btw",

846-

runId: "btw-run-1",

847-

question: "what changed?",

848-

text: "Only the UI layer is missing support.",

849-

});

844+

const sideResult = host.chatSideResult as

845+

| { kind?: string; runId?: string; question?: string; text?: string }

846+

| undefined;

847+

expect(sideResult?.kind).toBe("btw");

848+

expect(sideResult?.runId).toBe("btw-run-1");

849+

expect(sideResult?.question).toBe("what changed?");

850+

expect(sideResult?.text).toBe("Only the UI layer is missing support.");

850851

expect(host.chatSideResultTerminalRuns.has("btw-run-1")).toBe(true);

851852

});

852853
Original file line numberDiff line numberDiff line change

@@ -260,10 +260,11 @@ describe("renderApp assistant avatar routing", () => {

260260

quickSettingsProps.current?.onToolProfileChange?.("full");

261261
262262

expect(state.configForm?.browser).toEqual({ enabled: true });

263-

expect(state.configForm?.tools).toMatchObject({

264-

profile: "full",

265-

exec: { security: "full" },

266-

});

263+

const tools = state.configForm?.tools as

264+

| { profile?: string; exec?: { security?: string } }

265+

| undefined;

266+

expect(tools?.profile).toBe("full");

267+

expect(tools?.exec?.security).toBe("full");

267268

});

268269
269270

it("renders stale cron state containing a job without a payload", () => {

Original file line numberDiff line numberDiff line change

@@ -251,12 +251,13 @@ describe("context notice", () => {

251251

contextTokens: 200_000,

252252

};

253253

const lowUsage = getContextNoticeViewModel(lowUsageSession, 200_000);

254-

expect(lowUsage).toMatchObject({

255-

pct: 23,

256-

detail: "46k / 200k",

257-

warning: false,

258-

compactRecommended: false,

259-

});

254+

if (!lowUsage) {

255+

throw new Error("expected low usage context notice");

256+

}

257+

expect(lowUsage.pct).toBe(23);

258+

expect(lowUsage.detail).toBe("46k / 200k");

259+

expect(lowUsage.warning).toBe(false);

260+

expect(lowUsage.compactRecommended).toBe(false);

260261

render(renderContextNotice(lowUsageSession, 200_000), container);

261262

expect(container.textContent).toContain("23% context used");

262263

expect(container.textContent).toContain("46k / 200k");

Original file line numberDiff line numberDiff line change

@@ -9,10 +9,9 @@ describe("slash command browser import", () => {

99

it("builds fallback commands from the browser-safe shared registry", async () => {

1010

const mod = (await import(browserImportPath)) as SlashCommandsModule;

1111
12-

expect(mod.SLASH_COMMANDS.find((command) => command.name === "think")).toMatchObject({

13-

name: "think",

14-

category: "model",

15-

});

12+

const thinkCommand = mod.SLASH_COMMANDS.find((command) => command.name === "think");

13+

expect(thinkCommand?.name).toBe("think");

14+

expect(thinkCommand?.category).toBe("model");

1615

});

1716
1817

it("keeps provider thinking runtime out of the Control UI import path", async () => {

Original file line numberDiff line numberDiff line change

@@ -178,12 +178,11 @@ describe("tool-cards", () => {

178178

expect(sidebarButton?.classList.contains("chat-tool-card__action-btn")).toBe(true);

179179

sidebarButton!.click();

180180
181-

expect(onOpenSidebar).toHaveBeenCalledWith(

182-

expect.objectContaining({

183-

kind: "canvas",

184-

docId: "cv_sidebar",

185-

entryUrl: "/__openclaw__/canvas/documents/cv_sidebar/index.html",

186-

}),

187-

);

181+

const sidebar = onOpenSidebar.mock.calls[0]?.[0] as

182+

| { kind?: string; docId?: string; entryUrl?: string }

183+

| undefined;

184+

expect(sidebar?.kind).toBe("canvas");

185+

expect(sidebar?.docId).toBe("cv_sidebar");

186+

expect(sidebar?.entryUrl).toBe("/__openclaw__/canvas/documents/cv_sidebar/index.html");

188187

});

189188

});

Original file line numberDiff line numberDiff line change

@@ -371,11 +371,8 @@ describe("saveAgentsConfig", () => {

371371
372372

await saveAgentsConfig(state);

373373
374-

expect(request).toHaveBeenNthCalledWith(

375-

1,

376-

"config.set",

377-

expect.objectContaining({ baseHash: "hash-1" }),

378-

);

374+

expect(request.mock.calls[0]?.[0]).toBe("config.set");

375+

expect(request.mock.calls[0]?.[1]?.baseHash).toBe("hash-1");

379376

expect(JSON.parse(request.mock.calls[0]?.[1]?.raw as string)).toEqual({

380377

agents: { list: [{ id: "main" }] },

381378

});

Original file line numberDiff line numberDiff line change

@@ -324,12 +324,10 @@ describe("control UI routing", () => {

324324

await nextFrame();

325325

await app.updateComplete;

326326
327-

expect(request).toHaveBeenCalledWith(

328-

"config.patch",

329-

expect.objectContaining({

330-

baseHash: "hash-1",

331-

}),

332-

);

327+

const patchCall = request.mock.calls.find((call) => call[0] === "config.patch") as

328+

| [string, { baseHash?: string }]

329+

| undefined;

330+

expect(patchCall?.[1].baseHash).toBe("hash-1");

333331

});

334332
335333

it("renders the refreshed top navigation shell", async () => {