mirror of
https://github.com/jparkerweb/plan2code.git
synced 2026-11-16 04:45:33 -08:00
fix: show the fake agent's output when loop_driver's generations wait times out
AI Assisted
This commit is contained in:
1 parent
7f1851fbb9
commit
eb235dd91e
2 files changed
+13
-5
No files matched your search
@@ -5984,9 +5984,17 @@ second line"
|
||||
}
|
||||
|
||||
fn wait_for_generations(seen: &Arc<Mutex<String>>, count: usize) {
|
||||
wait_until("the agent generations", || {
|
||||
launched_prompts(seen).len() >= count
|
||||
});
|
||||
let deadline = Instant::now() + Duration::from_secs(30);
|
||||
while Instant::now() < deadline {
|
||||
if launched_prompts(seen).len() >= count {
|
||||
return;
|
||||
}
|
||||
thread::sleep(Duration::from_millis(20));
|
||||
}
|
||||
panic!(
|
||||
"never saw {count} agent generations; the fake agent printed {:?}. No ARGS line means target/debug/fake-agent is older than its source: touch fake-agent/src/main.rs",
|
||||
lock(seen).as_str()
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
||||
Reference in new issue
Block a user