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

推荐订阅源

MyScale Blog
MyScale Blog
人人都是产品经理
人人都是产品经理
云风的 BLOG
云风的 BLOG
小众软件
小众软件
F
Fortinet All Blogs
爱范儿
爱范儿
WordPress大学
WordPress大学
N
Netflix TechBlog - Medium
Recent Announcements
Recent Announcements
Google DeepMind News
Google DeepMind News
C
Check Point Blog
博客园 - 聂微东
D
Docker
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
aimingoo的专栏
aimingoo的专栏
Vercel News
Vercel News
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
A
About on SuperTechFans
博客园 - 【当耐特】
Microsoft Azure Blog
Microsoft Azure Blog
B
Blog
宝玉的分享
宝玉的分享
Jina AI
Jina AI
H
Hackread – Cybersecurity News, Data Breaches, AI and 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: guard command object helpers · openclaw/openclaw@90...
steipete · 2026-05-12 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -124,8 +124,9 @@ function listConfiguredAccountIds(

124124

}

125125
126126

function requireRecord(value: unknown, label: string): Record<string, unknown> {

127-

expect(value, label).toBeTypeOf("object");

128-

expect(value, label).not.toBeNull();

127+

if (!value || typeof value !== "object") {

128+

throw new Error(`expected ${label}`);

129+

}

129130

return value as Record<string, unknown>;

130131

}

131132
Original file line numberDiff line numberDiff line change

@@ -202,8 +202,9 @@ function setupBaseWizardState(config: OpenClawConfig = {}) {

202202

}

203203
204204

function requireRecord(value: unknown, label: string): Record<string, unknown> {

205-

expect(value, label).toBeTypeOf("object");

206-

expect(value, label).not.toBeNull();

205+

if (!value || typeof value !== "object") {

206+

throw new Error(`expected ${label}`);

207+

}

207208

return value as Record<string, unknown>;

208209

}

209210
Original file line numberDiff line numberDiff line change

@@ -195,8 +195,9 @@ function createGatewayCommand(entrypoint: string) {

195195

}

196196
197197

function requireRecord(value: unknown, label: string): Record<string, unknown> {

198-

expect(value, label).toBeTypeOf("object");

199-

expect(value, label).not.toBeNull();

198+

if (!value || typeof value !== "object") {

199+

throw new Error(`expected ${label}`);

200+

}

200201

return value as Record<string, unknown>;

201202

}

202203
Original file line numberDiff line numberDiff line change

@@ -31,7 +31,6 @@ async function readRequiredPersistedInstalledPluginIndex(

3131

stateDir: string,

3232

): Promise<InstalledPluginIndex> {

3333

const persisted = await readPersistedInstalledPluginIndex({ stateDir });

34-

expect(persisted).not.toBeNull();

3534

if (!persisted) {

3635

throw new Error("Expected persisted installed plugin index");

3736

}

Original file line numberDiff line numberDiff line change

@@ -115,7 +115,6 @@ describe("detectLinuxSdBackedStateDir", () => {

115115

},

116116

});

117117
118-

expect(result).not.toBeNull();

119118

if (result === null) {

120119

throw new Error("Expected Linux state storage warning details");

121120

}

Original file line numberDiff line numberDiff line change

@@ -656,7 +656,6 @@ describe("legacy migrate heartbeat config", () => {

656656

});

657657
658658

expect(res.changes).toStrictEqual(["Removed empty top-level heartbeat."]);

659-

expect(res.config).not.toBeNull();

660659

if (res.config === null) {

661660

throw new Error("Expected migrated config");

662661

}

Original file line numberDiff line numberDiff line change

@@ -151,8 +151,6 @@ function expectItemStatus(

151151

}

152152
153153

function requireRecord(value: unknown, label: string): Record<string, unknown> {

154-

expect(typeof value).toBe("object");

155-

expect(value).not.toBeNull();

156154

if (typeof value !== "object" || value === null) {

157155

throw new Error(`${label} was not an object`);

158156

}

Original file line numberDiff line numberDiff line change

@@ -170,8 +170,9 @@ type MockCallSource = {

170170

};

171171
172172

function requireRecord(value: unknown, label: string): Record<string, unknown> {

173-

expect(value, label).toBeTypeOf("object");

174-

expect(value, label).not.toBeNull();

173+

if (!value || typeof value !== "object") {

174+

throw new Error(`expected ${label}`);

175+

}

175176

return value as Record<string, unknown>;

176177

}

177178
Original file line numberDiff line numberDiff line change

@@ -136,15 +136,17 @@ function expectRowFields(

136136
137137

function modelRegistryOptions(index = 0): Record<string, unknown> {

138138

const options = mocks.loadModelRegistry.mock.calls[index]?.[1];

139-

expect(options).toBeTypeOf("object");

140-

expect(options).not.toBeNull();

139+

if (!options || typeof options !== "object") {

140+

throw new Error(`expected model registry options ${index}`);

141+

}

141142

return options as Record<string, unknown>;

142143

}

143144
144145

function providerCatalogOptions(index = 0): Record<string, unknown> {

145146

const options = mocks.loadProviderCatalogModelsForList.mock.calls[index]?.[0];

146-

expect(options).toBeTypeOf("object");

147-

expect(options).not.toBeNull();

147+

if (!options || typeof options !== "object") {

148+

throw new Error(`expected provider catalog options ${index}`);

149+

}

148150

return options as Record<string, unknown>;

149151

}

150152
Original file line numberDiff line numberDiff line change

@@ -264,8 +264,6 @@ function createRuntime() {

264264

}

265265
266266

function requireRecord(value: unknown, label: string): Record<string, unknown> {

267-

expect(typeof value).toBe("object");

268-

expect(value).not.toBeNull();

269267

if (typeof value !== "object" || value === null) {

270268

throw new Error(`${label} was not an object`);

271269

}