codex: fix CI failure on PR #17578

This commit is contained in:
Eric Traut
2026-04-12 17:23:45 -07:00
parent b66021cf3e
commit 480212edad
3 changed files with 5 additions and 0 deletions

View File

@@ -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;

View File

@@ -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;

View File

@@ -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)