fix(get-reply): include inboundUserContext in empty-body guard (#71489) · openclaw/openclaw@1559e28
SymbolStar
·
2026-04-25
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -455,7 +455,10 @@ export async function runPreparedReply(
|
455 | 455 | .filter(Boolean) |
456 | 456 | .join("\n\n") |
457 | 457 | : [inboundUserContext, baseBodyFinal].filter(Boolean).join("\n\n"); |
458 | | -const hasUserBody = baseBodyFinal.trim().length > 0 || softResetTail.length > 0; |
| 458 | +const hasUserBody = |
| 459 | +baseBodyFinal.trim().length > 0 || |
| 460 | +softResetTail.length > 0 || |
| 461 | +(inboundUserContext != null && inboundUserContext.trim().length > 0); |
459 | 462 | const hasMediaAttachment = hasInboundMedia(sessionCtx) || (opts?.images?.length ?? 0) > 0; |
460 | 463 | if (!hasUserBody && !hasMediaAttachment) { |
461 | 464 | // Skip onReplyStart when typing is suppressed (e.g. sendPolicy deny) — |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。