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

推荐订阅源

Stack Overflow Blog
Stack Overflow Blog
云风的 BLOG
云风的 BLOG
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Recent Announcements
Recent Announcements
Microsoft Security Blog
Microsoft Security Blog
Microsoft Azure Blog
Microsoft Azure Blog
J
Java Code Geeks
D
DataBreaches.Net
U
Unit 42
P
Proofpoint News Feed
I
InfoQ
Apple Machine Learning Research
Apple Machine Learning Research
Google DeepMind News
Google DeepMind News
博客园 - Franky
博客园_首页
IT之家
IT之家
博客园 - 叶小钗
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - 【当耐特】
Hugging Face - Blog
Hugging Face - Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
阮一峰的网络日志
阮一峰的网络日志

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 self-reply prompt echoes (#86238) ...
fuller-stack · 2026-05-25 · via Recent Commits to openclaw:main

@@ -1165,6 +1165,64 @@ describe("processDiscordMessage session routing", () => {

11651165

expect(dispatchCtx.MediaPaths).toBeUndefined();

11661166

});

116711671168+

it("does not inject the bot's previous message body when users reply to it", async () => {

1169+

const fetchImpl = vi.fn(async () => {

1170+

throw new Error("self-reply media should not be fetched");

1171+

});

1172+

const ctx = await createBaseContext({

1173+

botUserId: "bot-1",

1174+

cfg: {

1175+

channels: { discord: { contextVisibility: "all" } },

1176+

messages: { ackReaction: "👀" },

1177+

session: { store: "/tmp/openclaw-discord-process-test-sessions.json" },

1178+

},

1179+

discordRestFetch: fetchImpl,

1180+

message: {

1181+

id: "m-self-reply",

1182+

channelId: "c1",

1183+

content: "<@bot> hit that again",

1184+

timestamp: new Date().toISOString(),

1185+

attachments: [],

1186+

messageReference: {

1187+

type: 0,

1188+

message_id: "m-bot-previous",

1189+

channel_id: "c1",

1190+

},

1191+

referencedMessage: {

1192+

id: "m-bot-previous",

1193+

channelId: "c1",

1194+

content: "The same stale bot response keeps looping.",

1195+

timestamp: new Date().toISOString(),

1196+

attachments: [

1197+

{

1198+

id: "att-bot-previous",

1199+

url: "https://cdn.discordapp.com/attachments/previous.png",

1200+

content_type: "image/png",

1201+

filename: "previous.png",

1202+

},

1203+

],

1204+

author: {

1205+

id: "bot-1",

1206+

username: "Spartacus",

1207+

discriminator: "0",

1208+

globalName: "Spartacus",

1209+

},

1210+

},

1211+

},

1212+

baseText: "<@bot> hit that again",

1213+

messageText: "<@bot> hit that again",

1214+

});

1215+1216+

await runProcessDiscordMessage(ctx);

1217+1218+

const dispatchCtx = requireRecord(getLastDispatchCtx(), "dispatch context");

1219+

expect(fetchImpl).not.toHaveBeenCalled();

1220+

expect(dispatchCtx.ReplyToId).toBe("m-bot-previous");

1221+

expect(dispatchCtx.ReplyToSender).toBe("Spartacus");

1222+

expect(dispatchCtx.ReplyToBody).toBeUndefined();

1223+

expect(JSON.stringify(dispatchCtx)).not.toContain("The same stale bot response keeps looping.");

1224+

});

1225+11681226

it("stores DM lastRoute with user target for direct-session continuity", async () => {

11691227

const ctx = await createBaseContext({

11701228

...createDirectMessageContextOverrides(),