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

推荐订阅源

Y
Y Combinator Blog
GbyAI
GbyAI
U
Unit 42
WordPress大学
WordPress大学
Last Week in AI
Last Week in AI
P
Proofpoint News Feed
D
DataBreaches.Net
N
Netflix TechBlog - Medium
H
Hackread – Cybersecurity News, Data Breaches, AI and More
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
C
Check Point Blog
Martin Fowler
Martin Fowler
月光博客
月光博客
MongoDB | Blog
MongoDB | Blog
MyScale Blog
MyScale Blog
The Cloudflare Blog
Apple Machine Learning Research
Apple Machine Learning Research
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
M
MIT News - Artificial intelligence
云风的 BLOG
云风的 BLOG
罗磊的独立博客
B
Blog RSS Feed
J
Java Code Geeks
The GitHub Blog
The GitHub Blog

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 status and onboarding assertions · openclaw...
steipete · 2026-05-10 · via Recent Commits to openclaw:main

@@ -9,67 +9,60 @@ import {

99

createStatusCommandOverviewRowsParams,

1010

} from "./status.test-support.ts";

111112+

function findRowValue(rows: Array<{ Item: string; Value: string }>, item: string) {

13+

return rows.find((row) => row.Item === item)?.Value;

14+

}

15+1216

describe("status-overview-rows", () => {

1317

it("builds command overview rows from the shared surface", () => {

14-

expect(buildStatusCommandOverviewRows(createStatusCommandOverviewRowsParams())).toEqual(

15-

expect.arrayContaining([

16-

{ Item: "OS", Value: `macOS · node ${process.versions.node}` },

17-

{

18-

Item: "Memory",

19-

Value:

20-

"1 files · 2 chunks · plugin memory · ok(vector ready) · warn(fts ready) · muted(cache warm)",

21-

},

22-

{ Item: "Plugin compatibility", Value: "warn(1 notice · 1 plugin)" },

23-

{ Item: "Sessions", Value: "2 active · default gpt-5.5 (12k ctx) · store.json" },

24-

]),

18+

const rows = buildStatusCommandOverviewRows(createStatusCommandOverviewRowsParams());

19+20+

expect(findRowValue(rows, "OS")).toBe(`macOS · node ${process.versions.node}`);

21+

expect(findRowValue(rows, "Memory")).toBe(

22+

"1 files · 2 chunks · plugin memory · ok(vector ready) · warn(fts ready) · muted(cache warm)",

23+

);

24+

expect(findRowValue(rows, "Plugin compatibility")).toBe("warn(1 notice · 1 plugin)");

25+

expect(findRowValue(rows, "Sessions")).toBe(

26+

"2 active · default gpt-5.5 (12k ctx) · store.json",

2527

);

2628

});

27292830

it("marks skipped memory inspection as not checked in fast status output", () => {

29-

expect(

30-

buildStatusCommandOverviewRows(

31-

createStatusCommandOverviewRowsParams({

32-

memory: null,

33-

memoryPlugin: { enabled: true, slot: "memory-lancedb-pro" },

34-

}),

35-

),

36-

).toEqual(

37-

expect.arrayContaining([

38-

{

39-

Item: "Memory",

40-

Value: "muted(enabled (plugin memory-lancedb-pro) · not checked)",

41-

},

42-

]),

31+

const rows = buildStatusCommandOverviewRows(

32+

createStatusCommandOverviewRowsParams({

33+

memory: null,

34+

memoryPlugin: { enabled: true, slot: "memory-lancedb-pro" },

35+

}),

36+

);

37+38+

expect(findRowValue(rows, "Memory")).toBe(

39+

"muted(enabled (plugin memory-lancedb-pro) · not checked)",

4340

);

4441

});

45424643

it("builds status-all overview rows from the shared surface", () => {

47-

expect(

48-

buildStatusAllOverviewRows({

49-

surface: {

50-

...baseStatusOverviewSurface,

51-

tailscaleMode: "off",

52-

tailscaleHttpsUrl: null,

53-

gatewayConnection: { url: "wss://gateway.example.com", urlSource: "config" },

54-

},

55-

osLabel: "macOS",

56-

configPath: "/tmp/openclaw.json",

57-

secretDiagnosticsCount: 2,

58-

agentStatus: {

59-

bootstrapPendingCount: 1,

60-

totalSessions: 2,

61-

agents: [{ id: "main", lastActiveAgeMs: 60_000 }],

62-

},

63-

tailscaleBackendState: "Running",

64-

}),

65-

).toEqual(

66-

expect.arrayContaining([

67-

{ Item: "Version", Value: VERSION },

68-

{ Item: "OS", Value: "macOS" },

69-

{ Item: "Config", Value: "/tmp/openclaw.json" },

70-

{ Item: "Security", Value: "Run: openclaw security audit --deep" },

71-

{ Item: "Secrets", Value: "2 diagnostics" },

72-

]),

73-

);

44+

const rows = buildStatusAllOverviewRows({

45+

surface: {

46+

...baseStatusOverviewSurface,

47+

tailscaleMode: "off",

48+

tailscaleHttpsUrl: null,

49+

gatewayConnection: { url: "wss://gateway.example.com", urlSource: "config" },

50+

},

51+

osLabel: "macOS",

52+

configPath: "/tmp/openclaw.json",

53+

secretDiagnosticsCount: 2,

54+

agentStatus: {

55+

bootstrapPendingCount: 1,

56+

totalSessions: 2,

57+

agents: [{ id: "main", lastActiveAgeMs: 60_000 }],

58+

},

59+

tailscaleBackendState: "Running",

60+

});

61+62+

expect(findRowValue(rows, "Version")).toBe(VERSION);

63+

expect(findRowValue(rows, "OS")).toBe("macOS");

64+

expect(findRowValue(rows, "Config")).toBe("/tmp/openclaw.json");

65+

expect(findRowValue(rows, "Security")).toBe("Run: openclaw security audit --deep");

66+

expect(findRowValue(rows, "Secrets")).toBe("2 diagnostics");

7467

});

7568

});