@@ -254,15 +254,17 @@ export function registerCronEditCommand(cron: Command) {
254254 typeof opts . channel === "string" || typeof opts . to === "string" || hasDeliveryThreadId ;
255255 const hasDeliveryAccount = typeof opts . account === "string" ;
256256 const hasBestEffort = typeof opts . bestEffortDeliver === "boolean" ;
257- const hasAgentTurnPatch =
257+ const hasAgentTurnPayloadField =
258258 typeof opts . message === "string" ||
259259 Boolean ( model ) ||
260260 Boolean ( thinking ) ||
261261 hasTimeoutSeconds ||
262262 typeof opts . lightContext === "boolean" ||
263263 typeof opts . tools === "string" ||
264264 Array . isArray ( opts . tools ) ||
265- opts . clearTools ||
265+ opts . clearTools ;
266+ const hasAgentTurnPatch =
267+ hasAgentTurnPayloadField ||
266268 hasDeliveryModeFlag ||
267269 hasDeliveryTarget ||
268270 hasDeliveryAccount ||
@@ -299,8 +301,11 @@ export function registerCronEditCommand(cron: Command) {
299301 const delivery : Record < string , unknown > = { } ;
300302 if ( hasDeliveryModeFlag ) {
301303 delivery . mode = opts . announce || opts . deliver === true ? "announce" : "none" ;
302- } else if ( opts . bestEffortDeliver === true ) {
303- // Back-compat: toggling best-effort alone has historically implied announce mode.
304+ } else if (
305+ opts . bestEffortDeliver === true ||
306+ ( hasAgentTurnPayloadField && hasBestEffort )
307+ ) {
308+ // Back-compat: best-effort true and payload edits historically implied announce mode.
304309 delivery . mode = "announce" ;
305310 }
306311 if ( typeof opts . channel === "string" ) {
0 commit comments