@@ -567,6 +567,32 @@ export class PauseResumeManager {
567567
568568 stateCopy . blockStates [ stateBlockKey ] = pauseBlockState
569569
570+ // Update the block log entry with the merged output so logs show the submission data
571+ if ( Array . isArray ( stateCopy . blockLogs ) ) {
572+ const blockLogIndex = stateCopy . blockLogs . findIndex (
573+ ( log : { blockId : string } ) =>
574+ log . blockId === stateBlockKey ||
575+ log . blockId === pauseBlockId ||
576+ log . blockId === contextId
577+ )
578+ if ( blockLogIndex !== - 1 ) {
579+ // Filter output for logging (exclude internal fields and response)
580+ const filteredOutput : Record < string , unknown > = { }
581+ for ( const [ key , value ] of Object . entries ( mergedOutput ) ) {
582+ if ( key . startsWith ( '_' ) ) continue
583+ if ( key === 'response' ) continue
584+ filteredOutput [ key ] = value
585+ }
586+ stateCopy . blockLogs [ blockLogIndex ] = {
587+ ...stateCopy . blockLogs [ blockLogIndex ] ,
588+ blockId : stateBlockKey ,
589+ output : filteredOutput ,
590+ durationMs : pauseDurationMs ,
591+ endedAt : new Date ( ) . toISOString ( ) ,
592+ }
593+ }
594+ }
595+
570596 if ( Array . isArray ( stateCopy . executedBlocks ) ) {
571597 const filtered = stateCopy . executedBlocks . filter (
572598 ( id : string ) => id !== pauseBlockId && id !== contextId
0 commit comments