mirror of
https://github.com/openai/codex.git
synced 2026-09-10 20:26:47 +00:00
codex: restore test imports and drop dead abort shim (#26259)
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user