@@ -293,35 +293,15 @@ export function resolveCronPayloadOutcome(params: {
293293 : synthesizedText
294294 ? [ { text : synthesizedText } ]
295295 : [ ] ;
296- const denialSignal = resolveCronDenialSignal ( [
297- { field : "summary" , text : summary } ,
298- { field : "outputText" , text : outputText } ,
299- { field : "synthesizedText" , text : synthesizedText } ,
300- { field : "fallbackSummary" , text : fallbackSummary } ,
301- { field : "fallbackOutputText" , text : fallbackOutputText } ,
302- ...params . payloads
303- . map ( ( payload , index ) => ( { payload, index } ) )
304- . filter ( ( { payload } ) => ! isNonTerminalToolErrorWarning ( payload ) )
305- . map ( ( { payload, index } ) => ( {
306- field : `payloads[${ index } ].text` ,
307- text : payload ?. text ,
308- } ) ) ,
309- ] ) ;
310296 const failureSignal = normalizeCronFailureSignal ( params . failureSignal ) ;
311297 const runLevelError = formatCronRunLevelError ( params . runLevelError ) ;
312298 const hasFatalErrorPayload =
313- hasFatalStructuredErrorPayload ||
314- failureSignal !== undefined ||
315- denialSignal !== undefined ||
316- runLevelError !== undefined ;
299+ hasFatalStructuredErrorPayload || failureSignal !== undefined || runLevelError !== undefined ;
317300 const structuredErrorText = hasFatalStructuredErrorPayload
318301 ? ( lastErrorPayloadText ?? "cron isolated run returned an error payload" )
319302 : undefined ;
320303 const shouldUseRunLevelErrorPayload =
321- runLevelError !== undefined &&
322- structuredErrorText === undefined &&
323- failureSignal === undefined &&
324- denialSignal === undefined ;
304+ runLevelError !== undefined && structuredErrorText === undefined && failureSignal === undefined ;
325305 const fatalDeliveryText =
326306 structuredErrorText ??
327307 failureSignal ?. message ??
@@ -343,9 +323,7 @@ export function resolveCronPayloadOutcome(params: {
343323 ? structuredErrorText
344324 : failureSignal
345325 ? formatCronFailureSignal ( failureSignal )
346- : denialSignal
347- ? formatCronDenialSignal ( denialSignal )
348- : runLevelError ,
326+ : runLevelError ,
349327 pendingPresentationWarningError : hasPendingPresentationWarning
350328 ? lastErrorPayloadText
351329 : undefined ,
0 commit comments