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

推荐订阅源

The GitHub Blog
The GitHub Blog
有赞技术团队
有赞技术团队
Apple Machine Learning Research
Apple Machine Learning Research
V
V2EX
Engineering at Meta
Engineering at Meta
美团技术团队
H
Hackread – Cybersecurity News, Data Breaches, AI and More
博客园 - 司徒正美
I
InfoQ
S
SegmentFault 最新的问题
博客园 - 叶小钗
N
Netflix TechBlog - Medium
Y
Y Combinator Blog
IT之家
IT之家
博客园 - Franky
大猫的无限游戏
大猫的无限游戏
人人都是产品经理
人人都是产品经理
T
The Blog of Author Tim Ferriss
月光博客
月光博客
The Cloudflare Blog
U
Unit 42
GbyAI
GbyAI
L
LangChain Blog
Microsoft Azure Blog
Microsoft Azure 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
fix(discord): require runtime config in helpers · opencla...
steipete · 2026-04-25 · via Recent Commits to openclaw:main

@@ -89,13 +89,13 @@ function handleMessagingAction(

8989

action: string,

9090

params: Record<string, unknown>,

9191

isActionEnabled: (key: keyof DiscordActionConfig) => boolean,

92+

cfg: OpenClawConfig = DISCORD_TEST_CFG,

9293

options?: {

9394

mediaLocalRoots?: readonly string[];

9495

mediaReadFile?: (filePath: string) => Promise<Buffer>;

9596

},

96-

cfg: OpenClawConfig = DISCORD_TEST_CFG,

9797

) {

98-

return handleDiscordMessagingAction(action, params, isActionEnabled, options, cfg);

98+

return handleDiscordMessagingAction(action, params, isActionEnabled, cfg, options);

9999

}

100100101101

function handleGuildAction(

@@ -178,7 +178,6 @@ describe("handleDiscordMessagingAction", () => {

178178

emoji: "✅",

179179

},

180180

enableAllActions,

181-

undefined,

182181

{

183182

channels: {

184183

discord: {

@@ -363,7 +362,7 @@ describe("handleDiscordMessagingAction", () => {

363362

},

364363

},

365364

} as OpenClawConfig;

366-

await handleMessagingAction("readMessages", { channelId: "C1" }, enableAllActions, {}, cfg);

365+

await handleMessagingAction("readMessages", { channelId: "C1" }, enableAllActions, cfg);

367366

expect(readMessagesDiscord).toHaveBeenCalledWith("C1", expect.any(Object), { cfg });

368367

});

369368

@@ -397,7 +396,6 @@ describe("handleDiscordMessagingAction", () => {

397396

"fetchMessage",

398397

{ guildId: "G1", channelId: "C1", messageId: "M1" },

399398

enableAllActions,

400-

{},

401399

cfg,

402400

);

403401

expect(fetchMessageDiscord).toHaveBeenCalledWith("C1", "M1", { cfg });

@@ -471,6 +469,7 @@ describe("handleDiscordMessagingAction", () => {

471469

mediaUrl: "/tmp/image.png",

472470

},

473471

enableAllActions,

472+

DISCORD_TEST_CFG,

474473

{ mediaLocalRoots: ["/tmp/agent-root"] },

475474

);

476475

expect(sendMessageDiscord).toHaveBeenCalledWith(

@@ -496,6 +495,7 @@ describe("handleDiscordMessagingAction", () => {

496495

components: {},

497496

},

498497

enableAllActions,

498+

DISCORD_TEST_CFG,

499499

{ mediaLocalRoots: ["/tmp/agent-root"] },

500500

);

501501