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

推荐订阅源

freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
H
Help Net Security
云风的 BLOG
云风的 BLOG
Apple Machine Learning Research
Apple Machine Learning Research
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Hugging Face - Blog
Hugging Face - Blog
博客园_首页
D
Docker
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Blog — PlanetScale
Blog — PlanetScale
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
GbyAI
GbyAI
博客园 - Franky
B
Blog RSS Feed
Stack Overflow Blog
Stack Overflow Blog
L
LangChain Blog
量子位
V
Visual Studio Blog
Y
Y Combinator Blog
小众软件
小众软件
N
Netflix TechBlog - Medium
博客园 - 三生石上(FineUI控件)
Microsoft Security Blog
Microsoft Security Blog
雷峰网
雷峰网

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
ci(release): isolate channel live qa from provider latenc...
steipete · 2026-04-29 · via Recent Commits to openclaw:main

@@ -7,8 +7,6 @@ const resolveAgentConfigMock = vi.hoisted(() => vi.fn());

77

const resolveDefaultAgentIdMock = vi.hoisted(() => vi.fn());

88

const resolveAgentWorkspaceDirMock = vi.hoisted(() => vi.fn());

99

const getChannelPluginMock = vi.hoisted(() => vi.fn());

10-

const getActivePluginChannelRegistryVersionMock = vi.hoisted(() => vi.fn());

11-

const requireActivePluginChannelRegistryMock = vi.hoisted(() => vi.fn(() => ({})));

12101311

vi.mock("../../agents/agent-scope.js", () => ({

1412

resolveAgentConfig: resolveAgentConfigMock,

@@ -20,11 +18,6 @@ vi.mock("./index.js", () => ({

2018

getChannelPlugin: getChannelPluginMock,

2119

}));

222023-

vi.mock("../../plugins/runtime.js", () => ({

24-

getActivePluginChannelRegistryVersion: getActivePluginChannelRegistryVersionMock,

25-

requireActivePluginChannelRegistry: requireActivePluginChannelRegistryMock,

26-

}));

27-2821

function createConfig(options?: { bindingAgentId?: string; accountId?: string }) {

2922

return {

3023

agents: {

@@ -95,8 +88,6 @@ describe("configured binding registry", () => {

9588

resolveDefaultAgentIdMock.mockReset().mockReturnValue("main");

9689

resolveAgentWorkspaceDirMock.mockReset().mockReturnValue("/tmp/workspace");

9790

getChannelPluginMock.mockReset();

98-

getActivePluginChannelRegistryVersionMock.mockReset().mockReturnValue(1);

99-

requireActivePluginChannelRegistryMock.mockReset().mockReturnValue({});

10091

ensureConfiguredBindingBuiltinsRegistered();

10192

});

10293

@@ -144,7 +135,7 @@ describe("configured binding registry", () => {

144135

});

145136

});

146137147-

it("primes compiled ACP bindings from the already loaded channel registry once", async () => {

138+

it("primes compiled ACP bindings from the already loaded channel registry", async () => {

148139

const plugin = createDiscordAcpPlugin();

149140

const cfg = createConfig({ bindingAgentId: "codex" });

150141

getChannelPluginMock.mockReturnValue(plugin);

@@ -161,7 +152,6 @@ describe("configured binding registry", () => {

161152162153

expect(primed).toEqual({ bindingCount: 1, channelCount: 1 });

163154

expect(resolved?.statefulTarget.agentId).toBe("codex");

164-

expect(plugin.bindings?.compileConfiguredBinding).toHaveBeenCalledTimes(1);

165155166156

const second = bindingRegistry.resolveConfiguredBindingRecord({

167157

cfg: cfg as never,

@@ -205,33 +195,27 @@ describe("configured binding registry", () => {

205195

expect(resolved).toBeNull();

206196

});

207197208-

it("rebuilds the compiled registry when the active plugin registry version changes", async () => {

209-

const plugin = createDiscordAcpPlugin();

210-

getChannelPluginMock.mockReturnValue(plugin);

211-

getActivePluginChannelRegistryVersionMock.mockReturnValue(10);

198+

it("uses the current loaded channel plugin on each resolve", async () => {

199+

const firstPlugin = createDiscordAcpPlugin();

200+

const secondPlugin = createDiscordAcpPlugin();

201+

getChannelPluginMock.mockReturnValueOnce(firstPlugin).mockReturnValueOnce(secondPlugin);

212202

const cfg = createConfig();

213203214-

bindingRegistry.resolveConfiguredBindingRecord({

215-

cfg: cfg as never,

216-

channel: "discord",

217-

accountId: "default",

218-

conversationId: "1479098716916023408",

219-

});

220204

bindingRegistry.resolveConfiguredBindingRecord({

221205

cfg: cfg as never,

222206

channel: "discord",

223207

accountId: "default",

224208

conversationId: "1479098716916023408",

225209

});

226210227-

getActivePluginChannelRegistryVersionMock.mockReturnValue(11);

228211

bindingRegistry.resolveConfiguredBindingRecord({

229212

cfg: cfg as never,

230213

channel: "discord",

231214

accountId: "default",

232215

conversationId: "1479098716916023408",

233216

});

234217235-

expect(plugin.bindings?.compileConfiguredBinding).toHaveBeenCalledTimes(2);

218+

expect(firstPlugin.bindings?.compileConfiguredBinding).toHaveBeenCalledTimes(1);

219+

expect(secondPlugin.bindings?.compileConfiguredBinding).toHaveBeenCalledTimes(1);

236220

});

237221

});