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

推荐订阅源

T
Tailwind CSS Blog
人人都是产品经理
人人都是产品经理
博客园 - 叶小钗
大猫的无限游戏
大猫的无限游戏
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - 【当耐特】
The Cloudflare Blog
博客园 - 聂微东
博客园 - 司徒正美
量子位
博客园 - 三生石上(FineUI控件)
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
G
Google Developers Blog
Apple Machine Learning Research
Apple Machine Learning Research
罗磊的独立博客
酷 壳 – CoolShell
酷 壳 – CoolShell
Y
Y Combinator Blog
S
SegmentFault 最新的问题
T
The Blog of Author Tim Ferriss
P
Proofpoint News Feed
Google DeepMind News
Google DeepMind News
Blog — PlanetScale
Blog — PlanetScale
有赞技术团队
有赞技术团队
A
About on SuperTechFans

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

@@ -30,6 +30,7 @@ vi.mock("../plugins/provider-runtime.js", () => ({

3030

vi.mock("./models-config.providers.js", () => ({

3131

applyNativeStreamingUsageCompat: (providers: unknown) => providers,

3232

enforceSourceManagedProviderSecrets: ({ providers }: { providers: unknown }) => providers,

33+

normalizeProviderCatalogModelsForConfig: (providers: unknown) => providers,

3334

normalizeProviders: ({ providers }: { providers: unknown }) => providers,

3435

resolveImplicitProviders: async ({

3536

explicitProviders,

@@ -272,8 +273,6 @@ function expectCopilotProviderFromPlan(

272273

? (JSON.parse(plan.contents) as { providers?: Record<string, unknown> })

273274

: {};

274275

const provider = parsed.providers?.["github-copilot"];

275-

expect(provider).not.toBeNull();

276-

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

277276

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

278277

throw new Error("Expected GitHub Copilot provider config");

279278

}

Original file line numberDiff line numberDiff line change

@@ -93,8 +93,9 @@ function callArg(mock: { mock: { calls: unknown[][] } }, callIndex: number, argI

9393
9494

function fetchInit(fetchMock: { mock: { calls: unknown[][] } }, callIndex = 0): RequestInit {

9595

const init = callArg(fetchMock, callIndex, 1);

96-

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

97-

expect(init).not.toBeNull();

96+

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

97+

throw new Error(`expected fetch init for call ${callIndex}`);

98+

}

9899

return init as RequestInit;

99100

}

100101
Original file line numberDiff line numberDiff line change

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

5252

};

5353
5454

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

55-

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

56-

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

55+

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

56+

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

57+

}

5758

return value as Record<string, unknown>;

5859

}

5960
Original file line numberDiff line numberDiff line change

@@ -74,8 +74,9 @@ async function invokeWrappedTestStream(

7474

}

7575
7676

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

77-

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

78-

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

77+

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

78+

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

79+

}

7980

return value as Record<string, unknown>;

8081

}

8182
Original file line numberDiff line numberDiff line change

@@ -209,8 +209,6 @@ describe("before_tool_call loop detection behavior", () => {

209209

}

210210
211211

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

212-

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

213-

expect(value).not.toBeNull();

214212

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

215213

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

216214

}

@@ -649,8 +647,6 @@ describe("before_tool_call requireApproval handling", () => {

649647

const mockCallGateway = vi.mocked(callGatewayTool);

650648
651649

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

652-

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

653-

expect(value).not.toBeNull();

654650

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

655651

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

656652

}

Original file line numberDiff line numberDiff line change

@@ -75,9 +75,11 @@ describe("compactSkillPaths", () => {

7575

});

7676
7777

const locationMatch = prompt.match(/<location>([^<]+)<\/location>/);

78-

expect(locationMatch).not.toBeNull();

79-

expect(locationMatch![1]).toContain("~/");

80-

expect(locationMatch![1]).toContain("\\literal-skill");

78+

if (!locationMatch) {

79+

throw new Error("expected prompt location tag");

80+

}

81+

expect(locationMatch[1]).toContain("~/");

82+

expect(locationMatch[1]).toContain("\\literal-skill");

8183

});

8284
8385

it("preserves paths outside home directory", () => {