| 130 | } |
| 131 | |
| 132 | func (m *Service) dispatchTerminalWake(ctx context.Context, taskRecord Task, run Run, actor ActorContext) { |
| 133 | status := run.Status.Normalize() |
| 134 | m.dispatchWakeCreator(ctx, &wakeDispatchRequest{ |
| 135 | taskRecord: taskRecord, |
| 136 | runID: run.ID, |
| 137 | executingSessionID: run.SessionID, |
| 138 | wakeEventID: wakeEventID("terminal", taskRecord.ID, run.ID, string(status)), |
| 139 | reason: WakeReasonTerminal, |
| 140 | summary: terminalWakeSummary(taskRecord, run), |
| 141 | actor: actor, |
| 142 | }) |
| 143 | } |
| 144 | |
| 145 | func (m *Service) dispatchBlockedWake( |
| 146 | ctx context.Context, |