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

推荐订阅源

腾讯CDC
Microsoft Azure Blog
Microsoft Azure Blog
B
Blog
S
SegmentFault 最新的问题
WordPress大学
WordPress大学
P
Proofpoint News Feed
Hugging Face - Blog
Hugging Face - Blog
MyScale Blog
MyScale Blog
A
About on SuperTechFans
雷峰网
雷峰网
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
T
The Blog of Author Tim Ferriss
MongoDB | Blog
MongoDB | Blog
博客园 - 【当耐特】
The Cloudflare Blog
F
Fortinet All Blogs
小众软件
小众软件
博客园 - 三生石上(FineUI控件)
宝玉的分享
宝玉的分享
罗磊的独立博客
量子位
有赞技术团队
有赞技术团队
V
V2EX
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 non-live object guards · openclaw/openclaw@...
steipete · 2026-05-08 · via Recent Commits to openclaw:main

File tree

  • extensions/memory-wiki/src

  • src

    • gateway

    • infra/net

  • test

  • ui/src/ui

Original file line numberDiff line numberDiff line change

@@ -3,8 +3,9 @@ import type { ResolvedMemoryWikiConfig } from "./config.js";

33

import { createWikiApplyTool } from "./tool.js";

44
55

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

6-

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

6+

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

77

expect(value).not.toBeNull();

8+

expect(Array.isArray(value)).toBe(false);

89

return value as Record<string, unknown>;

910

}

1011
Original file line numberDiff line numberDiff line change

@@ -383,8 +383,11 @@ describe("gateway talk.config", () => {

383383

// the UI keeps the SecretRef context, but every field becomes the

384384

// sentinel so no credential material leaks to read-scope callers.

385385

const redactedApiKey = talk?.providers?.[GENERIC_TALK_PROVIDER_ID]?.apiKey;

386-

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

387-

expect((redactedApiKey as SecretRef).id).toBe("__OPENCLAW_REDACTED__");

386+

expect(redactedApiKey).toEqual({

387+

id: "__OPENCLAW_REDACTED__",

388+

provider: "__OPENCLAW_REDACTED__",

389+

source: "__OPENCLAW_REDACTED__",

390+

});

388391

expect(talk?.resolved?.config?.apiKey).toEqual(redactedApiKey);

389392

});

390393
Original file line numberDiff line numberDiff line change

@@ -74,8 +74,7 @@ function getDispatcherClassName(value: unknown): string | null {

7474

}

7575
7676

function expectDispatcherAttached(value: unknown): void {

77-

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

78-

expect(value).not.toBeNull();

77+

expect(getDispatcherClassName(value)).toMatch(/^(Agent|Mock)$/u);

7978

}

8079
8180

function getSecondRequestHeaders(fetchImpl: ReturnType<typeof vi.fn>): Headers {

Original file line numberDiff line numberDiff line change

@@ -34,9 +34,14 @@ describe("cli json stdout contract", () => {

3434

const stdout = result.stdout.trim();

3535

expect(stdout.length).toBeGreaterThan(0);

3636

const parsed = JSON.parse(stdout) as unknown;

37-

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

37+

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

3838

expect(parsed).not.toBeNull();

3939

expect(Array.isArray(parsed)).toBe(false);

40+

expect(Object.keys(parsed as Record<string, unknown>).sort()).toEqual([

41+

"availability",

42+

"channel",

43+

"update",

44+

]);

4045

expect(stdout).not.toContain("Doctor warnings");

4146

expect(stdout).not.toContain("Doctor changes");

4247

expect(stdout).not.toContain("Config invalid");

Original file line numberDiff line numberDiff line change

@@ -571,17 +571,20 @@ describe("loadSettings default gateway URL derivation", () => {

571571
572572

const persisted = JSON.parse(localStorage.getItem(scopedKey) ?? "{}");

573573
574-

expect(persisted.sessionsByGateway).toBeTypeOf("object");

575-

expect(persisted.sessionsByGateway).not.toBeNull();

576-

const scopes = Object.keys(persisted.sessionsByGateway);

574+

const sessionsByGateway = persisted.sessionsByGateway as unknown;

575+

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

576+

expect(sessionsByGateway).not.toBeNull();

577+

expect(Array.isArray(sessionsByGateway)).toBe(false);

578+

const scopedSessions = sessionsByGateway as Record<string, unknown>;

579+

const scopes = Object.keys(scopedSessions);

577580

expect(scopes).toHaveLength(10);

578581

// oldest stale entries should be evicted

579582

expect(scopes).not.toContain("wss://stale-0.example:8443");

580583

expect(scopes).not.toContain("wss://stale-1.example:8443");

581584

// newest stale entries and the current gateway should be retained

582585

expect(scopes).toContain("wss://stale-10.example:8443");

583586

expect(scopes).toContain("wss://gateway.example:8443");

584-

expect(persisted.sessionsByGateway["wss://gateway.example:8443"]).toEqual({

587+

expect(scopedSessions["wss://gateway.example:8443"]).toEqual({

585588

sessionKey: "agent:current:main",

586589

lastActiveSessionKey: "agent:current:main",

587590

});