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

推荐订阅源

V
Visual Studio Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
G
Google Developers Blog
J
Java Code Geeks
爱范儿
爱范儿
Microsoft Azure Blog
Microsoft Azure Blog
美团技术团队
人人都是产品经理
人人都是产品经理
Martin Fowler
Martin Fowler
IT之家
IT之家
博客园_首页
B
Blog RSS Feed
Google DeepMind News
Google DeepMind News
B
Blog
U
Unit 42
Apple Machine Learning Research
Apple Machine Learning Research
L
LangChain Blog
Stack Overflow Blog
Stack Overflow Blog
罗磊的独立博客
N
Netflix TechBlog - Medium
T
Tailwind CSS Blog
博客园 - 聂微东
腾讯CDC
A
About on SuperTechFans

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): suppress bound thread webhook copies · open...
steipete · 2026-05-02 · via Recent Commits to openclaw:main

@@ -624,7 +624,7 @@ describe("preflightDiscordMessage", () => {

624624

expect(result?.boundSessionKey).toBe(threadBinding.targetSessionKey);

625625

});

626626627-

it("drops hydrated bound-thread webhook echoes after fetching an empty payload", async () => {

627+

it("drops hydrated bound-thread webhook copies after fetching an empty payload", async () => {

628628

const threadBinding = createThreadBinding({

629629

targetKind: "session",

630630

targetSessionKey: "agent:main:acp:discord-thread-1",

@@ -685,6 +685,38 @@ describe("preflightDiscordMessage", () => {

685685

expect(result).toBeNull();

686686

});

687687688+

it("drops bound-thread webhook copies from other webhook ids", async () => {

689+

const threadBinding = createThreadBinding({

690+

targetKind: "session",

691+

targetSessionKey: "agent:main:acp:discord-thread-1",

692+

});

693+

const threadId = "thread-webhook-proxy-1";

694+

const parentId = "channel-parent-webhook-proxy-1";

695+

const message = createDiscordMessage({

696+

id: "m-webhook-proxy-1",

697+

channelId: threadId,

698+

content: "proxied user message",

699+

webhook_id: "pluralkit-webhook-1",

700+

author: {

701+

id: "relay-bot-1",

702+

bot: true,

703+

username: "Proxy",

704+

},

705+

});

706+707+

const result = await runThreadBoundPreflight({

708+

threadId,

709+

parentId,

710+

message,

711+

threadBinding,

712+

discordConfig: {

713+

allowBots: true,

714+

} as DiscordConfig,

715+

});

716+717+

expect(result).toBeNull();

718+

});

719+688720

it("bypasses mention gating in bound threads for allowed bot senders", async () => {

689721

const threadBinding = createThreadBinding();

690722

const threadId = "thread-bot-focus";

@@ -1445,25 +1477,36 @@ describe("shouldIgnoreBoundThreadWebhookMessage", () => {

14451477

).toBe(true);

14461478

});

144714791448-

it("returns false when webhook ids differ", () => {

1480+

it("returns true when a bound thread receives a different webhook id", () => {

14491481

expect(

14501482

shouldIgnoreBoundThreadWebhookMessage({

1483+

threadId: "thread-1",

14511484

webhookId: "wh-other",

14521485

threadBinding: createThreadBinding(),

14531486

}),

1454-

).toBe(false);

1487+

).toBe(true);

14551488

});

145614891457-

it("returns false when there is no bound thread webhook", () => {

1490+

it("returns true when a bound thread receives a webhook without a recorded bound webhook id", () => {

14581491

expect(

14591492

shouldIgnoreBoundThreadWebhookMessage({

1493+

threadId: "thread-1",

14601494

webhookId: "wh-1",

14611495

threadBinding: createThreadBinding({

14621496

metadata: {

14631497

webhookId: undefined,

14641498

},

14651499

}),

14661500

}),

1501+

).toBe(true);

1502+

});

1503+1504+

it("returns false for differing webhook ids without a known thread id", () => {

1505+

expect(

1506+

shouldIgnoreBoundThreadWebhookMessage({

1507+

webhookId: "wh-other",

1508+

threadBinding: createThreadBinding(),

1509+

}),

14671510

).toBe(false);

14681511

});

14691512