From 2bb8cf5f739cdefd0a0374c0f16d4292ceaec784 Mon Sep 17 00:00:00 2001 From: Alex Clarke Date: Wed, 18 Feb 2026 13:36:25 -0700 Subject: [PATCH] fix: Removed the now unnecessary is_stale_response that was breaking auto-continuing with parallel agents --- src/config/agent.rs | 6 ------ src/repl/mod.rs | 1 - 2 files changed, 7 deletions(-) diff --git a/src/config/agent.rs b/src/config/agent.rs index 8ffb077..69da450 100644 --- a/src/config/agent.rs +++ b/src/config/agent.rs @@ -456,12 +456,6 @@ impl Agent { self.last_continuation_response = None; } - pub fn is_stale_response(&self, response: &str) -> bool { - self.last_continuation_response - .as_ref() - .is_some_and(|last| last == response) - } - pub fn set_last_continuation_response(&mut self, response: String) { self.last_continuation_response = Some(response); } diff --git a/src/repl/mod.rs b/src/repl/mod.rs index fa09aa4..a49de40 100644 --- a/src/repl/mod.rs +++ b/src/repl/mod.rs @@ -887,7 +887,6 @@ async fn ask( if let Some(agent) = &cfg.agent { agent.auto_continue_enabled() && agent.continuation_count() < agent.max_auto_continues() - && !agent.is_stale_response(&output) && agent.todo_list().has_incomplete() } else { false