fix: Removed the now unnecessary is_stale_response that was breaking auto-continuing with parallel agents
CI / All (macos-latest) (push) Has been cancelled
CI / All (ubuntu-latest) (push) Has been cancelled
CI / All (windows-latest) (push) Has been cancelled

This commit is contained in:
2026-02-18 13:36:25 -07:00
parent fbac446859
commit 2bb8cf5f73
2 changed files with 0 additions and 7 deletions
-6
View File
@@ -456,12 +456,6 @@ impl Agent {
self.last_continuation_response = None; 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) { pub fn set_last_continuation_response(&mut self, response: String) {
self.last_continuation_response = Some(response); self.last_continuation_response = Some(response);
} }
-1
View File
@@ -887,7 +887,6 @@ async fn ask(
if let Some(agent) = &cfg.agent { if let Some(agent) = &cfg.agent {
agent.auto_continue_enabled() agent.auto_continue_enabled()
&& agent.continuation_count() < agent.max_auto_continues() && agent.continuation_count() < agent.max_auto_continues()
&& !agent.is_stale_response(&output)
&& agent.todo_list().has_incomplete() && agent.todo_list().has_incomplete()
} else { } else {
false false