don't restart after interrupt

This commit is contained in:
Ian Gulliver
2026-10-19 14:08:56 -07:00
parent 598ee788f8
commit b634d42dcf
6 changed files with 25 additions and 6 deletions
+5 -1
View File
@@ -1245,11 +1245,15 @@ func (m *Manager) afterTurn(ctx context.Context, l *live) {
m.startDiscard(l.taskID)
return
}
m.deliverTeam(ctx, l)
if m.interrupted(l.id) {
m.logUndelivered(ctx, l.id, "turn was interrupted")
return
}
err = m.Deliver(ctx, l.id)
if err != nil {
slog.Error("deliver inbox responses", "session", l.id, "err", err)
}
m.deliverTeam(ctx, l)
}
func commitMessage(res endResult) string {