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

推荐订阅源

Engineering at Meta
Engineering at Meta
雷峰网
雷峰网
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
B
Blog
Y
Y Combinator Blog
WordPress大学
WordPress大学
Microsoft Azure Blog
Microsoft Azure Blog
小众软件
小众软件
G
Google Developers Blog
云风的 BLOG
云风的 BLOG
罗磊的独立博客
博客园 - 三生石上(FineUI控件)
博客园 - 叶小钗
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
量子位
The Cloudflare Blog
T
The Blog of Author Tim Ferriss
博客园_首页
B
Blog RSS Feed
Hugging Face - Blog
Hugging Face - Blog
IT之家
IT之家
阮一峰的网络日志
阮一峰的网络日志
L
LangChain 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(slack): match channel-prefixed allowlist keys · openc...
steipete · 2026-05-02 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -77,6 +77,7 @@ Docs: https://docs.openclaw.ai

7777

- Slack/capabilities: read granted scopes from `auth.test` response metadata before trying legacy scope APIs, so modern bot tokens no longer report `unknown_method` for channel capabilities. Fixes #44625. Thanks @Qquanwei and @martingarramon.

7878

- Slack/DMs: send text/block-only proactive DMs directly with `chat.postMessage(channel=<user id>)` while keeping conversation resolution for uploads and threaded sends. Fixes #62042. Thanks @MarkMolina.

7979

- Slack/routing: match route bindings written with Slack target syntax such as `channel:C...`, `user:U...`, or `<@U...>`, so bound Slack peers route to the configured agent instead of `main`. Fixes #41608. Thanks @Winnsolutionsadmin.

80+

- Slack/routing: match public-channel allowlist entries written as `channel:C...` against bare Slack runtime channel IDs, so allowed channel mentions do not fail as `channel-not-allowed`. Fixes #41264 and supersedes #56530. Thanks @babutree and @Realworld404.

8081

- Slack/message actions: prefer the account bound to the outbound target peer before falling back to the agent's first channel account, so multi-workspace sends use the intended Slack account. Supersedes #66807. Thanks @rijhsinghani.

8182

- Slack/delivery: retry Slack Web API writes only when the SDK wraps a DNS request failure such as `EAI_AGAIN`, so transient resolver hiccups can recover without retrying platform errors that may duplicate messages. Fixes #68789. Thanks @sonnyb9.

8283

- Slack/message actions: forward agent-scoped media roots through the bundled upload-file action path, so workspace files can be attached without failing the local-media guard. Fixes #64625. Thanks @benpchandler.

Original file line numberDiff line numberDiff line change

@@ -74,10 +74,16 @@ export function resolveSlackChannelConfig(params: {

7474

// entry-scan. buildChannelKeyCandidates deduplicates identical keys.

7575

const channelIdLower = normalizeLowercaseStringOrEmpty(channelId);

7676

const channelIdUpper = channelId.toUpperCase();

77+

const channelTarget = `channel:${channelId}`;

78+

const channelTargetLower = `channel:${channelIdLower}`;

79+

const channelTargetUpper = `channel:${channelIdUpper}`;

7780

const candidates = buildChannelKeyCandidates(

7881

channelId,

7982

channelIdLower !== channelId ? channelIdLower : undefined,

8083

channelIdUpper !== channelId ? channelIdUpper : undefined,

84+

channelTarget,

85+

channelTargetLower !== channelTarget ? channelTargetLower : undefined,

86+

channelTargetUpper !== channelTarget ? channelTargetUpper : undefined,

8187

allowNameMatching ? (channelName ? `#${directName}` : undefined) : undefined,

8288

allowNameMatching ? directName : undefined,

8389

allowNameMatching ? normalizedName : undefined,

Original file line numberDiff line numberDiff line change

@@ -79,6 +79,34 @@ describe("resolveSlackChannelConfig", () => {

7979

expect(res).toMatchObject({ allowed: true, requireMention: false });

8080

});

8181
82+

it("matches channel-prefixed config keys when Slack delivers a bare channel ID", () => {

83+

const res = resolveSlackChannelConfig({

84+

channelId: "C0AJYR3BVTJ",

85+

channels: { "channel:C0AJYR3BVTJ": { enabled: true, requireMention: false } },

86+

defaultRequireMention: true,

87+

});

88+

expect(res).toMatchObject({

89+

allowed: true,

90+

requireMention: false,

91+

matchKey: "channel:C0AJYR3BVTJ",

92+

matchSource: "direct",

93+

});

94+

});

95+
96+

it("matches lowercase channel-prefixed config keys when Slack delivers uppercase channel IDs", () => {

97+

const res = resolveSlackChannelConfig({

98+

channelId: "C0AJYR3BVTJ",

99+

channels: { "channel:c0ajyr3bvtj": { enabled: true, requireMention: false } },

100+

defaultRequireMention: true,

101+

});

102+

expect(res).toMatchObject({

103+

allowed: true,

104+

requireMention: false,

105+

matchKey: "channel:c0ajyr3bvtj",

106+

matchSource: "direct",

107+

});

108+

});

109+
82110

it("blocks channel-name route matches by default", () => {

83111

const res = resolveSlackChannelConfig({

84112

channelId: "C1",