mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-07 04:01:37 +00:00
fix: deliver cron output to explicit targets (#16360) (thanks @rubyrunsstuff)
This commit is contained in:
@@ -558,9 +558,12 @@ export async function runCronIsolatedAgentTurn(params: {
|
||||
}
|
||||
const identity = resolveAgentOutboundIdentity(cfgWithAgentDefaults, agentId);
|
||||
|
||||
// Shared subagent announce flow is text-based. When we have an explicit sender
|
||||
// identity to preserve, prefer direct outbound delivery even for plain-text payloads.
|
||||
if (deliveryPayloadHasStructuredContent || identity) {
|
||||
// Shared subagent announce flow is text-based and prompts the main agent to
|
||||
// summarize. When we have an explicit delivery target (delivery.to), sender
|
||||
// identity, or structured content, prefer direct outbound delivery to send
|
||||
// the actual cron output without summarization.
|
||||
const hasExplicitDeliveryTarget = Boolean(deliveryPlan.to);
|
||||
if (deliveryPayloadHasStructuredContent || identity || hasExplicitDeliveryTarget) {
|
||||
try {
|
||||
const payloadsForDelivery =
|
||||
deliveryPayloadHasStructuredContent && deliveryPayloads.length > 0
|
||||
|
||||
Reference in New Issue
Block a user