Revert "Route inbound realtime text into turn start or steer" (#12479)

Reverts openai/codex#12469
This commit is contained in:
Ahmed Ibrahim
2026-02-21 15:46:03 -08:00
committed by GitHub
Unverified
parent 031d701705
commit 5e505ff877
3 changed files with 17 additions and 350 deletions
-15
View File
@@ -1518,21 +1518,6 @@ impl Session {
format!("auto-compact-{id}")
}
pub(crate) async fn route_realtime_text_input(self: &Arc<Self>, text: String) {
handlers::user_input_or_turn(
self,
self.next_internal_sub_id(),
Op::UserInput {
items: vec![UserInput::Text {
text,
text_elements: Vec::new(),
}],
final_output_json_schema: None,
},
)
.await;
}
pub(crate) async fn get_total_token_usage(&self) -> i64 {
let state = self.state.lock().await;
state.get_total_token_usage(state.server_reasoning_included())