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

推荐订阅源

奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Blog — PlanetScale
Blog — PlanetScale
小众软件
小众软件
F
Fortinet All Blogs
博客园 - 叶小钗
博客园_首页
D
DataBreaches.Net
Apple Machine Learning Research
Apple Machine Learning Research
U
Unit 42
爱范儿
爱范儿
aimingoo的专栏
aimingoo的专栏
博客园 - Franky
Martin Fowler
Martin Fowler
酷 壳 – CoolShell
酷 壳 – CoolShell
The Cloudflare Blog
A
About on SuperTechFans
Google DeepMind News
Google DeepMind News
Microsoft Security Blog
Microsoft Security Blog
IT之家
IT之家
M
MIT News - Artificial intelligence
有赞技术团队
有赞技术团队
博客园 - 【当耐特】
S
SegmentFault 最新的问题
Hugging Face - Blog
Hugging Face - 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(auto-reply): poison inbound dedupe after partial turn...
vincentkoc · 2026-04-27 · via Recent Commits to openclaw:main

@@ -343,6 +343,10 @@ export async function dispatchReplyFromConfig(

343343

recordProcessed("skipped", { reason: "duplicate" });

344344

return { queuedFinal: false, counts: dispatcher.getQueuedCounts() };

345345

}

346+

let inboundDedupeReplayUnsafe = false;

347+

const markInboundDedupeReplayUnsafe = () => {

348+

inboundDedupeReplayUnsafe = true;

349+

};

346350347351

const initialSessionStoreEntry = resolveSessionStoreLookup(ctx, cfg);

348352

const boundAcpDispatchSessionKey = resolveBoundAcpDispatchSessionKey({ ctx, cfg });

@@ -473,6 +477,7 @@ export async function dispatchReplyFromConfig(

473477

if (!shouldRouteToOriginating || !routeReplyChannel || !routeReplyTo || !routeReplyRuntime) {

474478

return null;

475479

}

480+

markInboundDedupeReplayUnsafe();

476481

return await routeReplyRuntime.routeReply({

477482

payload,

478483

channel: routeReplyChannel,

@@ -538,6 +543,7 @@ export async function dispatchReplyFromConfig(

538543

}

539544

return result.ok;

540545

}

546+

markInboundDedupeReplayUnsafe();

541547

return mode === "additive"

542548

? dispatcher.sendToolResult(payload)

543549

: dispatcher.sendFinalReply(payload);

@@ -721,6 +727,7 @@ export async function dispatchReplyFromConfig(

721727

);

722728

}

723729

} else {

730+

markInboundDedupeReplayUnsafe();

724731

queuedFinal = dispatcher.sendFinalReply(payload);

725732

}

726733

} else {

@@ -744,6 +751,9 @@ export async function dispatchReplyFromConfig(

744751

const sendFinalPayload = async (

745752

payload: ReplyPayload,

746753

): Promise<{ queuedFinal: boolean; routedFinalCount: number }> => {

754+

if (resolveSendableOutboundReplyParts(payload).hasContent) {

755+

markInboundDedupeReplayUnsafe();

756+

}

747757

const ttsPayload = await maybeApplyTtsToReplyPayload({

748758

payload,

749759

cfg,

@@ -767,6 +777,7 @@ export async function dispatchReplyFromConfig(

767777

routedFinalCount: result.ok ? 1 : 0,

768778

};

769779

}

780+

markInboundDedupeReplayUnsafe();

770781

return {

771782

queuedFinal: dispatcher.sendFinalReply(normalizedPayload),

772783

routedFinalCount: 0,

@@ -898,6 +909,7 @@ export async function dispatchReplyFromConfig(

898909

await sendPayloadAsync(payload, undefined, false);

899910

return;

900911

}

912+

markInboundDedupeReplayUnsafe();

901913

dispatcher.sendToolResult(payload);

902914

};

903915

const sendPlanUpdate = async (payload: {

@@ -914,6 +926,7 @@ export async function dispatchReplyFromConfig(

914926

await sendPayloadAsync(replyPayload, undefined, false);

915927

return;

916928

}

929+

markInboundDedupeReplayUnsafe();

917930

dispatcher.sendToolResult(replyPayload);

918931

};

919932

const summarizeApprovalLabel = (payload: {

@@ -1019,6 +1032,7 @@ export async function dispatchReplyFromConfig(

10191032

suppressTyping: typing.suppressTyping,

10201033

onToolResult: (payload: ReplyPayload) => {

10211034

const run = async () => {

1035+

markInboundDedupeReplayUnsafe();

10221036

await onToolResultFromReplyOptions?.(payload);

10231037

if (suppressDelivery) {

10241038

return;

@@ -1055,19 +1069,22 @@ export async function dispatchReplyFromConfig(

10551069

if (shouldRouteToOriginating) {

10561070

await sendPayloadAsync(deliveryPayload, undefined, false);

10571071

} else {

1072+

markInboundDedupeReplayUnsafe();

10581073

dispatcher.sendToolResult(deliveryPayload);

10591074

}

10601075

};

10611076

return run();

10621077

},

10631078

onPlanUpdate: async (payload) => {

1079+

markInboundDedupeReplayUnsafe();

10641080

await onPlanUpdateFromReplyOptions?.(payload);

10651081

if (payload.phase !== "update" || suppressDefaultToolProgressMessages) {

10661082

return;

10671083

}

10681084

await sendPlanUpdate({ explanation: payload.explanation, steps: payload.steps });

10691085

},

10701086

onApprovalEvent: async (payload) => {

1087+

markInboundDedupeReplayUnsafe();

10711088

await onApprovalEventFromReplyOptions?.(payload);

10721089

if (payload.phase !== "requested" || suppressDefaultToolProgressMessages) {

10731090

return;

@@ -1083,6 +1100,7 @@ export async function dispatchReplyFromConfig(

10831100

await maybeSendWorkingStatus(label);

10841101

},

10851102

onPatchSummary: async (payload) => {

1103+

markInboundDedupeReplayUnsafe();

10861104

await onPatchSummaryFromReplyOptions?.(payload);

10871105

if (payload.phase !== "end" || suppressDefaultToolProgressMessages) {

10881106

return;

@@ -1095,6 +1113,12 @@ export async function dispatchReplyFromConfig(

10951113

},

10961114

onBlockReply: (payload: ReplyPayload, context?: BlockReplyContext) => {

10971115

const run = async () => {

1116+

if (

1117+

payload.isReasoning !== true &&

1118+

resolveSendableOutboundReplyParts(payload).hasContent

1119+

) {

1120+

markInboundDedupeReplayUnsafe();

1121+

}

10981122

if (suppressDelivery) {

10991123

return;

11001124

}

@@ -1156,6 +1180,7 @@ export async function dispatchReplyFromConfig(

11561180

if (shouldRouteToOriginating) {

11571181

await sendPayloadAsync(normalizedPayload, context?.abortSignal, false);

11581182

} else {

1183+

markInboundDedupeReplayUnsafe();

11591184

dispatcher.sendBlockReply(normalizedPayload);

11601185

}

11611186

};

@@ -1268,6 +1293,7 @@ export async function dispatchReplyFromConfig(

12681293

);

12691294

}

12701295

} else {

1296+

markInboundDedupeReplayUnsafe();

12711297

const didQueue = dispatcher.sendFinalReply(normalizedTtsOnlyPayload);

12721298

queuedFinal = didQueue || queuedFinal;

12731299

}

@@ -1293,7 +1319,11 @@ export async function dispatchReplyFromConfig(

12931319

return { queuedFinal, counts };

12941320

} catch (err) {

12951321

if (inboundDedupeClaim.status === "claimed") {

1296-

releaseInboundDedupe(inboundDedupeClaim.key);

1322+

if (inboundDedupeReplayUnsafe) {

1323+

commitInboundDedupe(inboundDedupeClaim.key);

1324+

} else {

1325+

releaseInboundDedupe(inboundDedupeClaim.key);

1326+

}

12971327

}

12981328

recordProcessed("error", { error: String(err) });

12991329

markIdle("message_error");