mirror of
https://github.com/openai/codex.git
synced 2026-11-12 22:42:36 +00:00
feat: use memory usage for selection (#12909)
This commit is contained in:
1 parent
1503a8dad7
commit
c528f32acb
8 files changed
+329
-16
No files matched your search
@@ -248,7 +248,7 @@ async fn wait_for_phase2_success(
|
||||
) -> Result<()> {
|
||||
let deadline = Instant::now() + Duration::from_secs(10);
|
||||
loop {
|
||||
let selection = db.get_phase2_input_selection(1).await?;
|
||||
let selection = db.get_phase2_input_selection(1, 30).await?;
|
||||
if selection.selected.len() == 1
|
||||
&& selection.selected[0].thread_id == expected_thread_id
|
||||
&& selection.retained_thread_ids == vec![expected_thread_id]
|
||||
|
||||
Reference in new issue
Block a user