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

推荐订阅源

freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
T
Tailwind CSS Blog
J
Java Code Geeks
Microsoft Azure Blog
Microsoft Azure Blog
GbyAI
GbyAI
爱范儿
爱范儿
量子位
Martin Fowler
Martin Fowler
V
V2EX
博客园 - 三生石上(FineUI控件)
I
InfoQ
MongoDB | Blog
MongoDB | Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
N
Netflix TechBlog - Medium
D
DataBreaches.Net
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Last Week in AI
Last Week in AI
U
Unit 42
Apple Machine Learning Research
Apple Machine Learning Research
H
Help Net Security
T
The Blog of Author Tim Ferriss
Hugging Face - Blog
Hugging Face - Blog
美团技术团队
Engineering at Meta
Engineering at Meta

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 json runtime assertions · openclaw/o...
steipete · 2026-05-10 · via Recent Commits to openclaw:main

@@ -79,28 +79,27 @@ describe("status-json-runtime", () => {

7979

includeSecurityAudit: true,

8080

suppressHealthErrors: undefined,

8181

});

82-

expect(mocks.buildStatusJsonPayload).toHaveBeenCalledWith(

83-

expect.objectContaining({

84-

surface: expect.objectContaining({

85-

gatewayConnection: { url: "ws://127.0.0.1:18789", urlSource: "config" },

86-

gatewayProbeAuth: { token: "tok" },

87-

gatewayService: { label: "LaunchAgent" },

88-

nodeService: { label: "node" },

89-

}),

90-

securityAudit: { summary: { critical: 1 } },

91-

usage: { providers: [] },

92-

health: { ok: true },

93-

lastHeartbeat: { status: "ok" },

94-

pluginCompatibility: [

95-

{

96-

pluginId: "legacy",

97-

code: "legacy-before-agent-start",

98-

severity: "warn",

99-

message: "warn",

100-

},

101-

],

102-

}),

103-

);

82+

expect(mocks.buildStatusJsonPayload).toHaveBeenCalledOnce();

83+

const payloadInput = mocks.buildStatusJsonPayload.mock.calls[0]?.[0];

84+

expect(payloadInput.surface.gatewayConnection).toStrictEqual({

85+

url: "ws://127.0.0.1:18789",

86+

urlSource: "config",

87+

});

88+

expect(payloadInput.surface.gatewayProbeAuth).toStrictEqual({ token: "tok" });

89+

expect(payloadInput.surface.gatewayService).toStrictEqual({ label: "LaunchAgent" });

90+

expect(payloadInput.surface.nodeService).toStrictEqual({ label: "node" });

91+

expect(payloadInput.securityAudit).toStrictEqual({ summary: { critical: 1 } });

92+

expect(payloadInput.usage).toStrictEqual({ providers: [] });

93+

expect(payloadInput.health).toStrictEqual({ ok: true });

94+

expect(payloadInput.lastHeartbeat).toStrictEqual({ status: "ok" });

95+

expect(payloadInput.pluginCompatibility).toStrictEqual([

96+

{

97+

pluginId: "legacy",

98+

code: "legacy-before-agent-start",

99+

severity: "warn",

100+

message: "warn",

101+

},

102+

]);

104103

expect(result).toEqual({

105104

built: true,

106105

input: mocks.buildStatusJsonPayload.mock.calls[0][0],

@@ -134,18 +133,14 @@ describe("status-json-runtime", () => {

134133

includeSecurityAudit: false,

135134

suppressHealthErrors: undefined,

136135

});

137-

expect(mocks.buildStatusJsonPayload).toHaveBeenCalledWith(

138-

expect.objectContaining({

139-

surface: expect.objectContaining({

140-

gatewayProbeAuth: { token: "tok" },

141-

}),

142-

securityAudit: undefined,

143-

usage: undefined,

144-

health: undefined,

145-

lastHeartbeat: null,

146-

pluginCompatibility: undefined,

147-

}),

148-

);

136+

expect(mocks.buildStatusJsonPayload).toHaveBeenCalledOnce();

137+

const payloadInput = mocks.buildStatusJsonPayload.mock.calls[0]?.[0];

138+

expect(payloadInput.surface.gatewayProbeAuth).toStrictEqual({ token: "tok" });

139+

expect(payloadInput.securityAudit).toBeUndefined();

140+

expect(payloadInput.usage).toBeUndefined();

141+

expect(payloadInput.health).toBeUndefined();

142+

expect(payloadInput.lastHeartbeat).toBeNull();

143+

expect(payloadInput.pluginCompatibility).toBeUndefined();

149144

});

150145151146

it("suppresses health errors when requested", async () => {

@@ -165,14 +160,10 @@ describe("status-json-runtime", () => {

165160

suppressHealthErrors: true,

166161

});

167162168-

expect(mocks.buildStatusJsonPayload).toHaveBeenCalledWith(

169-

expect.objectContaining({

170-

surface: expect.objectContaining({

171-

gatewayProbeAuth: { token: "tok" },

172-

}),

173-

health: undefined,

174-

}),

175-

);

163+

expect(mocks.buildStatusJsonPayload).toHaveBeenCalledOnce();

164+

const payloadInput = mocks.buildStatusJsonPayload.mock.calls[0]?.[0];

165+

expect(payloadInput.surface.gatewayProbeAuth).toStrictEqual({ token: "tok" });

166+

expect(payloadInput.health).toBeUndefined();

176167

expect(mocks.resolveStatusRuntimeSnapshot).toHaveBeenCalledWith({

177168

config: { update: { channel: "stable" }, gateway: {} },

178169

sourceConfig: { gateway: {} },