mirror of
https://github.com/openai/codex.git
synced 2026-10-28 18:58:46 +00:00
more fixes
This commit is contained in:
@@ -492,6 +492,7 @@ mod tests {
|
||||
query: Some("weather".to_string()),
|
||||
queries: None,
|
||||
},
|
||||
metadata: None,
|
||||
}
|
||||
),
|
||||
other => panic!("expected TurnItem::WebSearch, got {other:?}"),
|
||||
@@ -519,6 +520,7 @@ mod tests {
|
||||
action: WebSearchAction::OpenPage {
|
||||
url: Some("https://example.com".to_string()),
|
||||
},
|
||||
metadata: None,
|
||||
}
|
||||
),
|
||||
other => panic!("expected TurnItem::WebSearch, got {other:?}"),
|
||||
@@ -548,6 +550,7 @@ mod tests {
|
||||
url: Some("https://example.com".to_string()),
|
||||
pattern: Some("needle".to_string()),
|
||||
},
|
||||
metadata: None,
|
||||
}
|
||||
),
|
||||
other => panic!("expected TurnItem::WebSearch, got {other:?}"),
|
||||
@@ -570,6 +573,7 @@ mod tests {
|
||||
id: "ws_partial".to_string(),
|
||||
query: String::new(),
|
||||
action: WebSearchAction::Other,
|
||||
metadata: None,
|
||||
}
|
||||
),
|
||||
other => panic!("expected TurnItem::WebSearch, got {other:?}"),
|
||||
|
||||
@@ -215,6 +215,7 @@ mod tests {
|
||||
id: "msg-1".to_string(),
|
||||
content: Vec::new(),
|
||||
phase: None,
|
||||
metadata: None,
|
||||
}))
|
||||
.await
|
||||
.is_some()
|
||||
@@ -225,6 +226,7 @@ mod tests {
|
||||
id: "msg-2".to_string(),
|
||||
content: Vec::new(),
|
||||
phase: None,
|
||||
metadata: None,
|
||||
}))
|
||||
.await,
|
||||
None
|
||||
|
||||
@@ -235,6 +235,7 @@ async fn thread_snapshot_replay_does_not_duplicate_agent_message_history() {
|
||||
text: "assistant reply".to_string(),
|
||||
}],
|
||||
phase: None,
|
||||
metadata: None,
|
||||
}),
|
||||
}),
|
||||
});
|
||||
@@ -3503,6 +3504,7 @@ fn complete_assistant_message(
|
||||
text: text.to_string(),
|
||||
}],
|
||||
phase,
|
||||
metadata: None,
|
||||
}),
|
||||
}),
|
||||
});
|
||||
@@ -3538,6 +3540,7 @@ fn complete_user_message_for_inputs(chat: &mut ChatWidget, item_id: &str, conten
|
||||
item: TurnItem::UserMessage(UserMessageItem {
|
||||
id: item_id.to_string(),
|
||||
content,
|
||||
metadata: None,
|
||||
}),
|
||||
}),
|
||||
});
|
||||
@@ -5819,6 +5822,7 @@ async fn slash_copy_state_tracks_plan_item_completion() {
|
||||
item: TurnItem::Plan(PlanItem {
|
||||
id: "plan-1".to_string(),
|
||||
text: plan_text.clone(),
|
||||
metadata: None,
|
||||
}),
|
||||
}),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user