mirror of
https://github.com/openai/codex.git
synced 2026-09-08 15:50:34 +00:00
Defer running resume subscription to listener
This commit is contained in:
@@ -2690,17 +2690,8 @@ impl ThreadRequestProcessor {
|
||||
|
||||
let thread_state = self
|
||||
.thread_state_manager
|
||||
.try_ensure_connection_subscribed(
|
||||
existing_thread_id,
|
||||
request_id.connection_id,
|
||||
/*experimental_raw_events*/ false,
|
||||
)
|
||||
.await
|
||||
.ok_or_else(|| {
|
||||
internal_error(format!(
|
||||
"failed to subscribe connection for running thread {existing_thread_id}"
|
||||
))
|
||||
})?;
|
||||
.thread_state(existing_thread_id)
|
||||
.await;
|
||||
self.ensure_listener_task_running(
|
||||
existing_thread_id,
|
||||
existing_thread.clone(),
|
||||
|
||||
Reference in New Issue
Block a user