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

推荐订阅源

量子位
博客园_首页
罗磊的独立博客
云风的 BLOG
云风的 BLOG
J
Java Code Geeks
Last Week in AI
Last Week in AI
D
DataBreaches.Net
Jina AI
Jina AI
博客园 - Franky
大猫的无限游戏
大猫的无限游戏
Apple Machine Learning Research
Apple Machine Learning Research
V
V2EX
D
Docker
MongoDB | Blog
MongoDB | Blog
B
Blog RSS Feed
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
宝玉的分享
宝玉的分享
Engineering at Meta
Engineering at Meta
The Cloudflare Blog
博客园 - 三生石上(FineUI控件)
有赞技术团队
有赞技术团队
人人都是产品经理
人人都是产品经理
H
Help Net Security
T
The Blog of Author Tim Ferriss

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 read-only channel assertions · openclaw/ope...
steipete · 2026-05-11 · via Recent Commits to openclaw:main

@@ -26,6 +26,15 @@ function pluginIds(plugins: ReturnType<typeof listReadOnlyChannelPluginsForConfi

2626

return plugins.map((entry) => entry.id);

2727

}

282829+

function expectRecordFields(record: unknown, expected: Record<string, unknown>) {

30+

expect(record).toBeDefined();

31+

const actual = record as Record<string, unknown>;

32+

for (const [key, value] of Object.entries(expected)) {

33+

expect(actual[key]).toEqual(value);

34+

}

35+

return actual;

36+

}

37+2938

vi.mock("../../plugins/bundled-dir.js", async (importOriginal) => {

3039

const actual = await importOriginal<typeof import("../../plugins/bundled-dir.js")>();

3140

return {

@@ -584,8 +593,8 @@ describe("listReadOnlyChannelPluginsForConfig", () => {

584593

"alpha-chat": { token: "alpha-token" },

585594

"beta-chat": { token: "beta-token" },

586595

},

587-

} as never),

588-

).toMatchObject({ token: "beta-token" });

596+

} as never).token,

597+

).toBe("beta-token");

589598

expect(fs.existsSync(setupMarker)).toBe(true);

590599

expect(fs.existsSync(fullMarker)).toBe(false);

591600

});

@@ -627,8 +636,8 @@ describe("listReadOnlyChannelPluginsForConfig", () => {

627636

channels: {

628637

"beta-chat": { token: "beta-token" },

629638

},

630-

} as never),

631-

).toMatchObject({ token: "beta-token" });

639+

} as never).token,

640+

).toBe("beta-token");

632641

expect(fs.existsSync(setupMarker)).toBe(true);

633642

expect(fs.existsSync(fullMarker)).toBe(false);

634643

});

@@ -718,26 +727,24 @@ describe("listReadOnlyChannelPluginsForConfig", () => {

718727

expect(plugin?.meta.label).toBe("External Chat Manifest");

719728

expect(plugin?.meta.blurb).toBe("manifest config");

720729

expect(plugin?.meta.preferOver).toEqual(["legacy-external-chat"]);

721-

expect(plugin?.configSchema?.schema).toMatchObject({

722-

properties: {

723-

token: { type: "string" },

724-

},

725-

});

726-

expect(plugin?.configSchema?.uiHints?.token).toMatchObject({

730+

const schema = plugin?.configSchema?.schema as

731+

| { properties?: Record<string, { type?: string }> }

732+

| undefined;

733+

expect(schema?.properties?.token?.type).toBe("string");

734+

expectRecordFields(plugin?.configSchema?.uiHints?.token, {

727735

label: "Token",

728736

sensitive: true,

729737

});

730738

expect(

731739

plugin?.config.listAccountIds({ channels: { "external-chat": { token: "t" } } } as never),

732740

).toEqual(["default"]);

733-

expect(

734-

plugin?.config.resolveAccount({

735-

channels: { "external-chat": { token: "configured" } },

736-

} as never),

737-

).toMatchObject({

741+

const account = plugin?.config.resolveAccount({

742+

channels: { "external-chat": { token: "configured" } },

743+

} as never);

744+

const accountFields = expectRecordFields(account, {

738745

accountId: "default",

739-

config: { token: "configured" },

740746

});

747+

expectRecordFields(accountFields.config, { token: "configured" });

741748

expect(fs.existsSync(setupMarker)).toBe(false);

742749

expect(fs.existsSync(fullMarker)).toBe(false);

743750

});

@@ -830,13 +837,15 @@ describe("listReadOnlyChannelPluginsForConfig", () => {

830837

}).find((entry) => entry.id === "external-chat");

831838832839

expect(plugin?.config.listAccountIds(cfg)).toEqual(["default", "named"]);

833-

expect(plugin?.config.resolveAccount(cfg, "__proto__")).toMatchObject({

840+

const defaultAccount = plugin?.config.resolveAccount(cfg, "__proto__");

841+

const defaultFields = expectRecordFields(defaultAccount, {

834842

accountId: "default",

835-

config: { token: "default-token" },

836-

});

837-

expect(plugin?.config.resolveAccount(cfg, "inherited")).not.toMatchObject({

838-

config: { token: "prototype-token" },

839843

});

844+

expectRecordFields(defaultFields.config, { token: "default-token" });

845+

const inheritedAccount = plugin?.config.resolveAccount(cfg, "inherited") as

846+

| { config?: { token?: string } }

847+

| undefined;

848+

expect(inheritedAccount?.config?.token).not.toBe("prototype-token");

840849

});

841850842851

it("keeps setup-entry precedence when channel config descriptors are not runtime cutoffs", () => {