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

推荐订阅源

WordPress大学
WordPress大学
腾讯CDC
阮一峰的网络日志
阮一峰的网络日志
GbyAI
GbyAI
B
Blog RSS Feed
Engineering at Meta
Engineering at Meta
Google DeepMind News
Google DeepMind News
MyScale Blog
MyScale Blog
Last Week in AI
Last Week in AI
F
Fortinet All Blogs
云风的 BLOG
云风的 BLOG
N
Netflix TechBlog - Medium
G
Google Developers Blog
博客园_首页
有赞技术团队
有赞技术团队
V
V2EX
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
MongoDB | Blog
MongoDB | Blog
H
Help Net Security
aimingoo的专栏
aimingoo的专栏
月光博客
月光博客
Hugging Face - Blog
Hugging Face - Blog
The GitHub Blog
The GitHub Blog
S
SegmentFault 最新的问题

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 core agent null helpers · openclaw/openclaw@b...
steipete · 2026-05-12 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -93,8 +93,6 @@ async function readSessionFileJsonLines<T>(sessionFile: string): Promise<T[]> {

9393

}

9494
9595

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

96-

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

97-

expect(value).not.toBeNull();

9896

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

9997

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

10098

}

Original file line numberDiff line numberDiff line change

@@ -30,8 +30,6 @@ const overrideBoundaryAwareStreamFnOnce = (streamFn: StreamFn): void => {

3030

};

3131
3232

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

33-

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

34-

expect(value).not.toBeNull();

3533

if (!value || typeof value !== "object" || Array.isArray(value)) {

3634

throw new Error(`expected ${label} to be an object`);

3735

}

Original file line numberDiff line numberDiff line change

@@ -27,7 +27,6 @@ async function expectPathMissing(targetPath: string): Promise<void> {

2727

function expectBudgetResult(

2828

result: Awaited<ReturnType<typeof enforceSessionDiskBudget>>,

2929

): asserts result is NonNullable<Awaited<ReturnType<typeof enforceSessionDiskBudget>>> {

30-

expect(result).not.toBeNull();

3130

if (result === null) {

3231

throw new Error("expected disk budget enforcement result");

3332

}

Original file line numberDiff line numberDiff line change

@@ -132,7 +132,6 @@ describe("Crestodian assistant", () => {

132132

removeTempDir: async () => {},

133133

},

134134

});

135-

expect(result).not.toBeNull();

136135

if (result === null) {

137136

throw new Error("Expected planner result");

138137

}

@@ -214,7 +213,6 @@ describe("Crestodian assistant", () => {

214213

removeTempDir: async () => {},

215214

},

216215

});

217-

expect(result).not.toBeNull();

218216

if (result === null) {

219217

throw new Error("Expected planner result");

220218

}

@@ -266,7 +264,6 @@ describe("Crestodian assistant", () => {

266264

removeTempDir: async () => {},

267265

},

268266

});

269-

expect(result).not.toBeNull();

270267

if (result === null) {

271268

throw new Error("Expected planner result");

272269

}

Original file line numberDiff line numberDiff line change

@@ -17,8 +17,6 @@ function parseLastJsonLine(raw: string): unknown {

1717

}

1818
1919

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

20-

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

21-

expect(value).not.toBeNull();

2220

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

2321

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

2422

}

Original file line numberDiff line numberDiff line change

@@ -99,9 +99,10 @@ describeLive("Crestodian live rescue channel smoke", () => {

9999
100100

const config = JSON.parse(await fs.readFile(configPath, "utf8")) as OpenClawConfig;

101101

const defaultModel = config.agents?.defaults?.model;

102-

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

103-

expect(defaultModel).not.toBeNull();

104-

expect((defaultModel as { primary?: unknown }).primary).toBe("openai/gpt-5.5");

102+

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

103+

throw new Error("expected default model object");

104+

}

105+

expect(defaultModel.primary).toBe("openai/gpt-5.5");

105106

const auditPath = path.join(tempDir, "audit", "crestodian.jsonl");

106107

const auditLines = (await fs.readFile(auditPath, "utf8")).trim().split("\n");

107108

expect(auditLines.some((line) => line.includes('"operation":"config.setDefaultModel"'))).toBe(

Original file line numberDiff line numberDiff line change

@@ -68,7 +68,8 @@ describe("runCrestodianTui", () => {

6868

expect(options.historyLimit).toBe(200);

6969

expect(options.config).toEqual({});

7070

expect(options.title).toBe("openclaw crestodian");

71-

expect(typeof options.backend).toBe("object");

72-

expect(options.backend).not.toBeNull();

71+

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

72+

throw new Error("expected crestodian TUI backend");

73+

}

7374

});

7475

});

Original file line numberDiff line numberDiff line change

@@ -184,8 +184,9 @@ function makeBaseParams(overrides: {

184184

}

185185
186186

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

187-

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

188-

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

187+

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

188+

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

189+

}

189190

return value as Record<string, unknown>;

190191

}

191192
Original file line numberDiff line numberDiff line change

@@ -13,7 +13,6 @@ import {

1313

type CliRespawnPlan = NonNullable<ReturnType<typeof buildCliRespawnPlan>>;

1414
1515

function expectCliRespawnPlan(plan: ReturnType<typeof buildCliRespawnPlan>): CliRespawnPlan {

16-

expect(plan).not.toBeNull();

1716

if (plan === null) {

1817

throw new Error("Expected CLI respawn plan");

1918

}

Original file line numberDiff line numberDiff line change

@@ -81,7 +81,9 @@ vi.mock("./channel-tools.js", () => ({

8181
8282

async function waitForTransport(): Promise<{ onclose?: (() => void) | undefined }> {

8383

await vi.waitFor(() => {

84-

expect(transportState.lastTransport).not.toBeNull();

84+

if (transportState.lastTransport === null) {

85+

throw new Error("MCP stdio transport was not created");

86+

}

8587

});

8688

if (!transportState.lastTransport) {

8789

throw new Error("MCP stdio transport was not created");