mirror of
https://github.com/openai/codex.git
synced 2026-04-23 22:24:57 +00:00
codex: fix CI failure on PR #17578
This commit is contained in:
@@ -4363,6 +4363,7 @@ impl Session {
|
||||
idle_pending_input.extend(items.into_iter().map(PendingInputItem::from));
|
||||
}
|
||||
|
||||
#[allow(dead_code)]
|
||||
pub(crate) async fn queue_pending_input_for_next_turn(&self, items: Vec<PendingInputItem>) {
|
||||
if items.is_empty() {
|
||||
return;
|
||||
|
||||
@@ -6,6 +6,8 @@
|
||||
//! structured event with the human-facing text so they do not need to parse or
|
||||
//! hide that XML.
|
||||
|
||||
#![allow(dead_code)]
|
||||
|
||||
use codex_protocol::models::ContentItem;
|
||||
use codex_protocol::models::ResponseInputItem;
|
||||
use codex_protocol::protocol::InjectedMessageEvent;
|
||||
|
||||
@@ -15,6 +15,7 @@ pub(crate) struct PendingInputItem {
|
||||
}
|
||||
|
||||
impl PendingInputItem {
|
||||
#[allow(dead_code)]
|
||||
pub(crate) fn injected(item: ResponseInputItem, event: InjectedMessageEvent) -> Self {
|
||||
Self {
|
||||
item,
|
||||
@@ -22,6 +23,7 @@ impl PendingInputItem {
|
||||
}
|
||||
}
|
||||
|
||||
#[allow(dead_code)]
|
||||
pub(crate) fn timer_source(&self) -> Option<&str> {
|
||||
let source = self.injected_event.as_ref()?.source.as_str();
|
||||
source.starts_with("timer ").then_some(source)
|
||||
|
||||
Reference in New Issue
Block a user