fix: Removed the now unnecessary is_stale_response that was breaking auto-continuing with parallel agents
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user