fix(cron): disable messaging tool when delivery.mode is none (#21808) (#21896)

This commit is contained in:
lailoo
2026-03-01 01:12:17 +08:00
committed by GitHub
parent e1df1c60b8
commit d7d3416b1d
3 changed files with 8 additions and 20 deletions

View File

@@ -470,7 +470,7 @@ export async function runCronIsolatedAgentTurn(params: {
// was successfully resolved. When resolution fails the agent should not
// be blocked by a target it cannot satisfy (#27898).
requireExplicitMessageTarget: deliveryRequested && resolvedDelivery.ok,
disableMessageTool: deliveryRequested,
disableMessageTool: deliveryRequested || deliveryPlan.mode === "none",
abortSignal,
});
},