mirror of
https://github.com/openai/codex.git
synced 2026-11-20 22:40:37 +00:00
Retarget pending input lifecycle test to steer
This commit is contained in:
@@ -7850,15 +7850,16 @@ async fn task_finish_emits_turn_item_lifecycle_for_leftover_pending_user_input()
|
||||
|
||||
while rx.try_recv().is_ok() {}
|
||||
|
||||
sess.inject_response_items(vec![ResponseInputItem::Message {
|
||||
role: "user".to_string(),
|
||||
content: vec![ContentItem::InputText {
|
||||
sess.steer_input(
|
||||
vec![UserInput::Text {
|
||||
text: "late pending input".to_string(),
|
||||
text_elements: Vec::new(),
|
||||
}],
|
||||
phase: None,
|
||||
}])
|
||||
Some(&tc.sub_id),
|
||||
/*responsesapi_client_metadata*/ None,
|
||||
)
|
||||
.await
|
||||
.expect("inject pending input into active turn");
|
||||
.expect("steer pending input into active turn");
|
||||
|
||||
sess.on_task_finished(Arc::clone(&tc), /*last_agent_message*/ None)
|
||||
.await;
|
||||
|
||||
Reference in New Issue
Block a user