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

推荐订阅源

M
MIT News - Artificial intelligence
WordPress大学
WordPress大学
GbyAI
GbyAI
S
SegmentFault 最新的问题
量子位
爱范儿
爱范儿
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
MyScale Blog
MyScale Blog
人人都是产品经理
人人都是产品经理
博客园 - 叶小钗
aimingoo的专栏
aimingoo的专栏
V
Visual Studio Blog
U
Unit 42
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
The Cloudflare Blog
Stack Overflow Blog
Stack Overflow Blog
博客园 - 聂微东
J
Java Code Geeks
The GitHub Blog
The GitHub Blog
Y
Y Combinator Blog
IT之家
IT之家
Martin Fowler
Martin Fowler
宝玉的分享
宝玉的分享
雷峰网
雷峰网

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
test: tighten discord mention preflight assertions · open...
shakkernerd · 2026-05-09 · via Recent Commits to openclaw:main

@@ -1148,9 +1148,9 @@ describe("preflightDiscordMessage", () => {

11481148

},

11491149

});

115011501151-

expect(result).not.toBeNull();

1152-

expect(result?.shouldRequireMention).toBe(true);

1153-

expect(result?.wasMentioned).toBe(true);

1151+

const preflight = expectPreflightResult(result);

1152+

expect(preflight.shouldRequireMention).toBe(true);

1153+

expect(preflight.wasMentioned).toBe(true);

11541154

});

1155115511561156

it("accepts allowlisted guild messages when guild object is missing", async () => {

@@ -1183,10 +1183,10 @@ describe("preflightDiscordMessage", () => {

11831183

includeGuildObject: false,

11841184

});

118511851186-

expect(result).not.toBeNull();

1187-

expect(result?.guildInfo?.id).toBe("guild-1");

1188-

expect(result?.channelConfig?.allowed).toBe(true);

1189-

expect(result?.shouldRequireMention).toBe(false);

1186+

const preflight = expectPreflightResult(result);

1187+

expect(preflight.guildInfo?.id).toBe("guild-1");

1188+

expect(preflight.channelConfig?.allowed).toBe(true);

1189+

expect(preflight.shouldRequireMention).toBe(false);

11901190

});

1191119111921192

it("inherits parent thread allowlist when guild object is missing", async () => {

@@ -1231,11 +1231,11 @@ describe("preflightDiscordMessage", () => {

12311231

},

12321232

});

123312331234-

expect(result).not.toBeNull();

1235-

expect(result?.guildInfo?.id).toBe("guild-1");

1236-

expect(result?.threadParentId).toBe(parentId);

1237-

expect(result?.channelConfig?.allowed).toBe(true);

1238-

expect(result?.shouldRequireMention).toBe(false);

1234+

const preflight = expectPreflightResult(result);

1235+

expect(preflight.guildInfo?.id).toBe("guild-1");

1236+

expect(preflight.threadParentId).toBe(parentId);

1237+

expect(preflight.channelConfig?.allowed).toBe(true);

1238+

expect(preflight.shouldRequireMention).toBe(false);

12391239

});

1240124012411241

it("handles partial thread channel owner getters during mention preflight", async () => {

@@ -1294,9 +1294,9 @@ describe("preflightDiscordMessage", () => {

12941294

},

12951295

});

129612961297-

expect(result).not.toBeNull();

1298-

expect(result?.threadParentId).toBe(parentId);

1299-

expect(result?.shouldRequireMention).toBe(false);

1297+

const preflight = expectPreflightResult(result);

1298+

expect(preflight.threadParentId).toBe(parentId);

1299+

expect(preflight.shouldRequireMention).toBe(false);

13001300

});

1301130113021302

it("drops guild messages that mention another user when ignoreOtherMentions=true", async () => {

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

1336133613371337

const result = await runIgnoreOtherMentionsPreflight({ channelId, guildId, message });

133813381339-

expect(result).not.toBeNull();

1340-

expect(result?.hasAnyMention).toBe(true);

1339+

expect(expectPreflightResult(result).hasAnyMention).toBe(true);

13411340

});

1342134113431342

it("ignores bot-sent @everyone mentions for detection", async () => {

@@ -1377,8 +1376,7 @@ describe("preflightDiscordMessage", () => {

13771376

},

13781377

});

137913781380-

expect(result).not.toBeNull();

1381-

expect(result?.hasAnyMention).toBe(false);

1379+

expect(expectPreflightResult(result).hasAnyMention).toBe(false);

13821380

});

1383138113841382

it("does not treat bot-sent @everyone as wasMentioned", async () => {

@@ -1418,8 +1416,7 @@ describe("preflightDiscordMessage", () => {

14181416

},

14191417

});

142014181421-

expect(result).not.toBeNull();

1422-

expect(result?.wasMentioned).toBe(false);

1419+

expect(expectPreflightResult(result).wasMentioned).toBe(false);

14231420

});

1424142114251422

it("uses attachment content_type for guild audio preflight mention detection", async () => {