MCPcopy Create free account
hub / github.com/compozy/agh / dispatchTerminalWake

Method dispatchTerminalWake

internal/task/wake.go:132–143  ·  view source on GitHub ↗
(ctx context.Context, taskRecord Task, run Run, actor ActorContext)

Source from the content-addressed store, hash-verified

130}
131
132func (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
145func (m *Service) dispatchBlockedWake(
146 ctx context.Context,

Calls 4

dispatchWakeCreatorMethod · 0.95
wakeEventIDFunction · 0.85
terminalWakeSummaryFunction · 0.85
NormalizeMethod · 0.45