mirror of
https://github.com/openai/codex.git
synced 2026-11-03 00:21:31 +00:00
Revert "Route inbound realtime text into turn start or steer" (#12479)
Reverts openai/codex#12469
This commit is contained in:
1 parent
031d701705
commit
5e505ff877
3 files changed
+17
-350
No files matched your search
@@ -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())
|
||||
|
||||
Reference in new issue
Block a user