Add Away mode and an agent fork tool
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user