Add Away mode and an agent fork tool

This commit is contained in:
Ian Gulliver
2026-10-19 21:40:24 -07:00
parent bb60b685ba
commit f6f2440635
22 changed files with 617 additions and 317 deletions
+1 -1
View File
@@ -130,7 +130,7 @@ func (m *Manager) tryPromptReady(ctx context.Context, taskID string, fromReview
if err != nil || sess.State == api.AgentSessionStateRunning || m.interrupted(sess.Id) {
return err
}
latest, err := m.store.LastSnapshotNot(ctx, taskID, api.SnapshotTriggerAnswer)
latest, err := m.store.LastReviewable(ctx, taskID)
if errors.Is(err, store.ErrNotFound) {
return nil
}