codex: restore test imports and drop dead abort shim (#26259)

This commit is contained in:
Andrei Eternal
2026-06-04 09:51:12 -07:00
parent a95314f406
commit c82d49bb34
2 changed files with 2 additions and 9 deletions

View File

@@ -358,6 +358,8 @@ use codex_protocol::protocol::ThreadMemoryMode;
use codex_protocol::protocol::TokenCountEvent;
use codex_protocol::protocol::TokenUsage;
use codex_protocol::protocol::TokenUsageInfo;
#[cfg(test)]
use codex_protocol::protocol::TurnAbortReason;
use codex_protocol::protocol::WarningEvent;
use codex_protocol::user_input::UserInput;
use codex_tools::ToolEnvironmentMode;

View File

@@ -564,15 +564,6 @@ impl Session {
}
}
pub(crate) async fn abort_turn_if_active(
self: &Arc<Self>,
turn_id: &str,
reason: TurnAbortReason,
) -> bool {
self.abort_turn_if_active_with(turn_id, TaskAbort::from_turn_abort_reason(reason))
.await
}
pub(crate) async fn abort_turn_if_active_interrupted(
self: &Arc<Self>,
turn_id: &str,