Add task summaries, closed-task search and a summary turn before discard

This commit is contained in:
Ian Gulliver
2026-10-16 10:08:08 -07:00
parent 2107a43ef2
commit fd63a0dfbc
25 changed files with 1013 additions and 268 deletions
+9
View File
@@ -357,6 +357,15 @@ func (m *Manager) deliverMidTurn(ctx context.Context, l *live) string {
m.deliverMu.Lock()
defer m.deliverMu.Unlock()
discard, err := m.store.GetDiscard(ctx, l.taskID)
if err != nil {
slog.Error("read discard state", "task", l.taskID, "err", err)
return ""
}
if discard.State != store.DiscardNone {
return ""
}
parts := []string{}
msgs := m.takeQueuedMidTurn(ctx, l)
if len(msgs) > 0 {