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

推荐订阅源

月光博客
月光博客
小众软件
小众软件
爱范儿
爱范儿
Y
Y Combinator Blog
博客园 - Franky
美团技术团队
博客园 - 【当耐特】
The Cloudflare Blog
罗磊的独立博客
Hugging Face - Blog
Hugging Face - Blog
Jina AI
Jina AI
IT之家
IT之家
人人都是产品经理
人人都是产品经理
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
大猫的无限游戏
大猫的无限游戏
Apple Machine Learning Research
Apple Machine Learning Research
博客园 - 聂微东
WordPress大学
WordPress大学
V
Visual Studio Blog
博客园_首页
阮一峰的网络日志
阮一峰的网络日志
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
有赞技术团队
有赞技术团队

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 extension helper null checks · openclaw/openc...
steipete · 2026-05-12 · via Recent Commits to openclaw:main

File tree

  • extensions

    • browser/src/browser/routes

    • codex/src/app-server

    • diffs/src

    • feishu/src

    • file-transfer/src/shared

    • matrix/src/matrix

      • monitor

    • qa-channel/src

    • slack/src

    • voice-call/src

    • zalouser/src

Original file line numberDiff line numberDiff line change

@@ -107,8 +107,9 @@ function getActPostHandler() {

107107

}

108108
109109

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

110-

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

111-

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

110+

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

111+

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

112+

}

112113

return value as Record<string, unknown>;

113114

}

114115
Original file line numberDiff line numberDiff line change

@@ -35,8 +35,6 @@ async function expectSetupErrorStatus(

3535

}

3636
3737

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

38-

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

39-

expect(value).not.toBeNull();

4038

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

4139

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

4240

}

Original file line numberDiff line numberDiff line change

@@ -69,8 +69,9 @@ function expectInputText(text: string) {

6969

}

7070
7171

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

72-

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

73-

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

72+

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

73+

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

74+

}

7475

return value as Record<string, unknown>;

7576

}

7677
Original file line numberDiff line numberDiff line change

@@ -21,8 +21,6 @@ function createContractTool(overrides: Partial<AnyAgentTool>): AnyAgentTool {

2121

}

2222
2323

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

24-

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

25-

expect(value).not.toBeNull();

2624

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

2725

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

2826

}

Original file line numberDiff line numberDiff line change

@@ -50,8 +50,9 @@ function compileManifestConfigSchema() {

5050

}

5151
5252

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

53-

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

54-

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

53+

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

54+

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

55+

}

5556

return value as Record<string, unknown>;

5657

}

5758
Original file line numberDiff line numberDiff line change

@@ -1282,7 +1282,6 @@ describe("handleFeishuMessage command authorization", () => {

12821282

expect(finalized.OriginatingTo).toBe("chat:oc-group");

12831283

expect(finalized.SenderId).toBe("ou-allowed");

12841284

const groupSessionKey = resolveGroupSessionKey(finalized as never);

1285-

expect(groupSessionKey).not.toBeNull();

12861285

if (!groupSessionKey) {

12871286

throw new Error("Expected group session key");

12881287

}

Original file line numberDiff line numberDiff line change

@@ -64,8 +64,9 @@ type ToolResultWithDetails = {

6464

const WORKSPACE_ROOT = path.resolve("/workspace");

6565
6666

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

67-

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

68-

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

67+

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

68+

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

69+

}

6970

return value as Record<string, unknown>;

7071

}

7172
Original file line numberDiff line numberDiff line change

@@ -108,8 +108,6 @@ function createCtx(overrides: {

108108

}

109109
110110

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

111-

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

112-

expect(value).not.toBeNull();

113111

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

114112

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

115113

}

Original file line numberDiff line numberDiff line change

@@ -51,8 +51,6 @@ function withConfig(fileTransfer: Record<string, unknown> | undefined) {

5151

}

5252
5353

function expectResultFields(result: unknown, fields: Record<string, unknown>) {

54-

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

55-

expect(result).not.toBeNull();

5654

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

5755

throw new Error("policy result was not an object");

5856

}

Original file line numberDiff line numberDiff line change

@@ -47,8 +47,6 @@ class MockMatrixClient {

4747

}

4848
4949

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

50-

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

51-

expect(value).not.toBeNull();

5250

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

5351

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

5452

}