@@ -714,16 +714,16 @@ it.layer(layerTest)("delegated completion delivery repairs", (it) => {
714714 const task = parent . subagents [ 0 ] ! ;
715715 yield * sink . write ( {
716716 events : [
717- { id : firstTaskId , result : testCase . first } ,
718- { id : secondTaskId , result : testCase . second } ,
719- ] . map ( ( { id, result } ) => ( {
717+ { id : firstTaskId , result : testCase . first , status : "failed" as const } ,
718+ { id : secondTaskId , result : testCase . second , status : "cancelled" as const } ,
719+ ] . map ( ( { id, result, status } ) => ( {
720720 id : EventId . make ( `event:inline-budget:${ id } ` ) ,
721721 type : "subagent.updated" as const ,
722722 threadId,
723723 runId,
724724 nodeId : id ,
725725 occurredAt : now ,
726- payload : { ...task , id, result } ,
726+ payload : { ...task , id, result, status , title : "Inspect regression" } ,
727727 } ) ) ,
728728 } ) ;
729729 yield * orchestrator . dispatch ( {
@@ -747,6 +747,10 @@ it.layer(layerTest)("delegated completion delivery repairs", (it) => {
747747 assert . equal ( message . text . includes ( testCase . first ) , testCase . inlineFirst ) ;
748748 assert . equal ( message . text . includes ( testCase . second ) , testCase . inlineSecond ) ;
749749 const deferredTaskId = testCase . inlineFirst ? secondTaskId : firstTaskId ;
750+ assert . include (
751+ message . text ,
752+ `Delegated task ${ deferredTaskId } (Inspect regression) [${ testCase . inlineFirst ? "cancelled" : "failed" } ]` ,
753+ ) ;
750754 assert . include ( message . text , `Use task_status with taskId ${ deferredTaskId } ` ) ;
751755 assert . deepEqual ( message . delegatedCompletion ?. taskIds , [ firstTaskId , secondTaskId ] ) ;
752756 assert . equal (
0 commit comments