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

推荐订阅源

D
Docker
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - Franky
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
A
About on SuperTechFans
博客园 - 【当耐特】
Microsoft Security Blog
Microsoft Security Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
The GitHub Blog
The GitHub Blog
雷峰网
雷峰网
博客园_首页
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
IT之家
IT之家
博客园 - 叶小钗
Google DeepMind News
Google DeepMind News
aimingoo的专栏
aimingoo的专栏
博客园 - 聂微东
B
Blog RSS Feed
H
Help Net Security
Recent Announcements
Recent Announcements
阮一峰的网络日志
阮一峰的网络日志
D
DataBreaches.Net
L
LangChain Blog
Vercel News
Vercel News

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: dedupe update cli mock reads · openclaw/openclaw@e6...
steipete · 2026-05-13 · via Recent Commits to openclaw:main

@@ -416,8 +416,16 @@ describe("update-cli", () => {

416416

>;

417417

return calls[index]?.[0];

418418

};

419+

const lastNpmPluginUpdateCall = () =>

420+

npmPluginUpdateCall(updateNpmInstalledPlugins.mock.calls.length - 1);

419421420422

const replaceConfigCall = (index = 0) => vi.mocked(replaceConfigFile).mock.calls[index]?.[0];

423+

const lastReplaceConfigCall = () =>

424+

replaceConfigCall(vi.mocked(replaceConfigFile).mock.calls.length - 1);

425+426+

const writeJsonCall = (index = 0) => vi.mocked(defaultRuntime.writeJson).mock.calls[index]?.[0];

427+

const lastWriteJsonCall = () =>

428+

writeJsonCall(vi.mocked(defaultRuntime.writeJson).mock.calls.length - 1);

421429422430

const probeGatewayCall = (index = 0) => probeGateway.mock.calls[index]?.[0];

423431

@@ -1061,16 +1069,12 @@ describe("update-cli", () => {

10611069

},

10621070

);

106310711064-

const jsonOutput = vi.mocked(defaultRuntime.writeJson).mock.calls.at(-1)?.[0] as

1065-

| UpdateRunResult

1066-

| undefined;

1072+

const jsonOutput = lastWriteJsonCall() as UpdateRunResult | undefined;

10671073

expect(jsonOutput?.postUpdate?.plugins?.status).toBe("warning");

10681074

expect(jsonOutput?.postUpdate?.plugins?.warnings?.[0]?.reason).toContain(

10691075

"package.json is missing",

10701076

);

1071-

const updateCall = updateNpmInstalledPlugins.mock.calls.at(-1)?.[0] as

1072-

| { skipIds?: Set<string> }

1073-

| undefined;

1077+

const updateCall = lastNpmPluginUpdateCall() as { skipIds?: Set<string> } | undefined;

10741078

expect(updateCall?.skipIds?.has("demo")).toBe(true);

10751079

});

10761080

@@ -1274,9 +1278,7 @@ describe("update-cli", () => {

1274127812751279

await updateCommand({ json: true, restart: false });

127612801277-

const jsonOutput = vi.mocked(defaultRuntime.writeJson).mock.calls.at(-1)?.[0] as

1278-

| UpdateRunResult

1279-

| undefined;

1281+

const jsonOutput = lastWriteJsonCall() as UpdateRunResult | undefined;

12801282

expect(defaultRuntime.exit).not.toHaveBeenCalledWith(1);

12811283

expect(jsonOutput?.status).toBe("ok");

12821284

expect(jsonOutput?.reason).toBeUndefined();

@@ -1347,13 +1349,9 @@ describe("update-cli", () => {

1347134913481350

await updateCommand({ json: true, restart: false });

134913511350-

const updateCall = updateNpmInstalledPlugins.mock.calls.at(-1)?.[0] as

1351-

| { skipIds?: Set<string> }

1352-

| undefined;

1352+

const updateCall = lastNpmPluginUpdateCall() as { skipIds?: Set<string> } | undefined;

13531353

expect(updateCall?.skipIds?.has("demo")).toBe(true);

1354-

const jsonOutput = vi.mocked(defaultRuntime.writeJson).mock.calls.at(-1)?.[0] as

1355-

| UpdateRunResult

1356-

| undefined;

1354+

const jsonOutput = lastWriteJsonCall() as UpdateRunResult | undefined;

13571355

expect(jsonOutput?.status).toBe("ok");

13581356

expect(jsonOutput?.postUpdate?.plugins?.status).toBe("warning");

13591357

expect(pluginWarning(jsonOutput)?.pluginId).toBe("demo");

@@ -1413,9 +1411,7 @@ describe("update-cli", () => {

1413141114141412

await updateCommand({ json: true, restart: false });

141514131416-

const jsonOutput = vi.mocked(defaultRuntime.writeJson).mock.calls.at(-1)?.[0] as

1417-

| UpdateRunResult

1418-

| undefined;

1414+

const jsonOutput = lastWriteJsonCall() as UpdateRunResult | undefined;

14191415

expect(jsonOutput?.postUpdate?.plugins?.status).toBe("warning");

14201416

expect(pluginWarning(jsonOutput)?.pluginId).toBe("demo");

14211417

expect(pluginWarning(jsonOutput)?.guidance).toEqual([

@@ -1499,9 +1495,7 @@ describe("update-cli", () => {

1499149515001496

await updateCommand({ yes: true, json: true, restart: false });

150114971502-

const jsonOutput = vi.mocked(defaultRuntime.writeJson).mock.calls.at(-1)?.[0] as

1503-

| UpdateRunResult

1504-

| undefined;

1498+

const jsonOutput = lastWriteJsonCall() as UpdateRunResult | undefined;

15051499

expect(defaultRuntime.exit).not.toHaveBeenCalledWith(1);

15061500

expect(jsonOutput?.status).toBe("ok");

15071501

expect(jsonOutput?.reason).toBeUndefined();

@@ -1564,10 +1558,7 @@ describe("update-cli", () => {

15641558

await updateStatusCommand({ json: true });

15651559

},

15661560

assert: () => {

1567-

const last = requireValue(

1568-

vi.mocked(defaultRuntime.writeJson).mock.calls.at(-1)?.[0],

1569-

"update status JSON output",

1570-

);

1561+

const last = requireValue(lastWriteJsonCall(), "update status JSON output");

15711562

const parsed = last as Record<string, unknown>;

15721563

const channel = parsed.channel as { value?: unknown };

15731564

expect(channel.value).toBe(isBetaTag(VERSION) ? "beta" : "stable");

@@ -1587,10 +1578,7 @@ describe("update-cli", () => {

1587157815881579

await updateStatusCommand({ json: true });

158915801590-

const last = requireValue(

1591-

vi.mocked(defaultRuntime.writeJson).mock.calls.at(-1)?.[0],

1592-

"update status JSON output",

1593-

);

1581+

const last = requireValue(lastWriteJsonCall(), "update status JSON output");

15941582

const parsed = last as Record<string, unknown>;

15951583

const channel = parsed.channel as { value?: unknown; config?: unknown };

15961584

expect(channel.value).toBe("dev");

@@ -2536,10 +2524,7 @@ describe("update-cli", () => {

25362524

await updateCommand({ json: true });

25372525

},

25382526

assert: () => {

2539-

requireValue(

2540-

vi.mocked(defaultRuntime.writeJson).mock.calls.at(-1)?.[0],

2541-

"update JSON output",

2542-

);

2527+

requireValue(lastWriteJsonCall(), "update JSON output");

25432528

},

25442529

},

25452530

{

@@ -2839,7 +2824,7 @@ describe("update-cli", () => {

2839282428402825

await updateCommand({ channel: "beta", yes: true });

284128262842-

const lastWrite = vi.mocked(replaceConfigFile).mock.calls.at(-1)?.[0] as

2827+

const lastWrite = lastReplaceConfigCall() as

28432828

| { nextConfig?: { update?: { channel?: string } } }

28442829

| undefined;

28452830

expect(lastWrite?.nextConfig?.update?.channel).toBe("beta");