Move lead delivery and the Merge & continue hold onto the coordinator

This commit is contained in:
Ian Gulliver
2026-10-21 13:59:37 -07:00
parent 1734057293
commit 5c50fa857f
16 changed files with 270 additions and 190 deletions
+6
View File
@@ -75,6 +75,12 @@ func (m *Manager) coordinatePass(ctx context.Context, started map[string]bool) {
for _, id := range work.AdvanceStages {
once("advance:"+id, func() { m.advanceStage(id) })
}
for _, d := range work.LeadDeliveries {
once(fmt.Sprintf("lead:%s:%d:%d", d.Owner, d.First, d.Last), func() { m.deliverLead(d.Owner) })
}
for _, q := range work.QueuedDelivery {
once(fmt.Sprintf("queue:%s:%d:%s", q.SessionID, q.Input, q.Response), func() { m.deliverQueuedTurn(q.SessionID) })
}
for _, p := range work.ReadyPrompts {
once("ready:"+p.TaskID, func() { m.promptReady(p) })
}