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

推荐订阅源

有赞技术团队
有赞技术团队
G
Google Developers Blog
T
Tailwind CSS Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
人人都是产品经理
人人都是产品经理
J
Java Code Geeks
P
Proofpoint News Feed
V
Visual Studio Blog
爱范儿
爱范儿
The Cloudflare Blog
博客园 - 叶小钗
V
V2EX
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
M
MIT News - Artificial intelligence
Microsoft Security Blog
Microsoft Security Blog
博客园 - 聂微东
H
Help Net Security
B
Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
博客园 - 【当耐特】
量子位
宝玉的分享
宝玉的分享
WordPress大学
WordPress大学
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知

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): stop block-based sender rehydration on assist...
vincentkoc · 2026-04-26 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

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

187187

- Sessions: make `sessions_spawn(mode="session")` errors name usable alternatives when the current channel cannot bind subagent threads. Fixes #67400. (#67790) Thanks @stainlu.

188188

- Agents/Claude CLI: pass the OpenClaw system prompt through Claude's prompt-file flag so Windows runs avoid argv length failures without changing system prompt semantics. Fixes #69158. (#69211) Thanks @skylee-01, @cassioanorte, @Syu0, and @Stache73.

189189

- Agents/CLI sessions: bind `google-gemini-cli` session auth-epoch to the Google account identity in `~/.gemini/oauth_creds.json`, so Gemini-backed agents resume their conversation after gateway restart instead of minting a fresh session, and stale bindings are invalidated when the authenticated Google account changes. Fixes #70973. (#71076) Thanks @openperf.

190+

- Slack: stop treating user mentions in assistant-authored message edit blocks as sender attribution, preventing edited bot messages from spoofing a mentioned DM user. (#71700) Thanks @vincentkoc.

190191
191192

## 2026.4.24

192193
Original file line numberDiff line numberDiff line change

@@ -271,6 +271,35 @@ describe("registerSlackMessageEvents", () => {

271271

expect(messageQueueMock).not.toHaveBeenCalled();

272272

});

273273
274+

it("drops self-authored message_changed events that only include block user IDs", async () => {

275+

const { handleSlackMessage } = await invokeRegisteredHandler({

276+

eventName: "message",

277+

overrides: { dmPolicy: "open" },

278+

event: {

279+

...makeAssistantChangedEvent(),

280+

message: {

281+

ts: "123.456",

282+

user: "U_BOT",

283+

text: "preview edit with mention",

284+

blocks: [

285+

{

286+

type: "rich_text",

287+

elements: [

288+

{

289+

type: "rich_text_section",

290+

elements: [{ type: "user", user_id: "UREAL123" }],

291+

},

292+

],

293+

},

294+

],

295+

},

296+

},

297+

});

298+
299+

expect(handleSlackMessage).not.toHaveBeenCalled();

300+

expect(messageQueueMock).not.toHaveBeenCalled();

301+

});

302+
274303

it("handles channel and group messages via the unified message handler", async () => {

275304

const { handler, handleSlackMessage } = createHandlers("message", {

276305

dmPolicy: "open",

Original file line numberDiff line numberDiff line change

@@ -59,31 +59,12 @@ function collectMetadataUserCandidates(

5959

}

6060

}

6161
62-

function collectBlockUserIds(candidates: Set<string>, value: unknown, botUserId: string): void {

63-

if (Array.isArray(value)) {

64-

for (const entry of value) {

65-

collectBlockUserIds(candidates, entry, botUserId);

66-

}

67-

return;

68-

}

69-

const record = asRecord(value);

70-

if (!record) {

71-

return;

72-

}

73-

addUserCandidate(candidates, record.user_id, botUserId);

74-

for (const key of ["elements", "accessory", "fields"]) {

75-

collectBlockUserIds(candidates, record[key], botUserId);

76-

}

77-

}

78-
7962

function resolveAssistantMessageChangedSender(params: {

80-

event: SlackMessageChangedEvent;

8163

message?: SlackAssistantMessageRecord;

8264

botUserId: string;

8365

}): string | undefined {

8466

const candidates = new Set<string>();

8567

collectMetadataUserCandidates(candidates, params.message?.metadata, params.botUserId);

86-

collectBlockUserIds(candidates, params.message?.blocks, params.botUserId);

8768

return candidates.size === 1 ? [...candidates][0] : undefined;

8869

}

8970

@@ -122,7 +103,6 @@ function resolveAssistantMessageChangedInbound(params: {

122103

return undefined;

123104

}

124105

const senderId = resolveAssistantMessageChangedSender({

125-

event: changed,

126106

message,

127107

botUserId: params.ctx.botUserId,

128108

});