mirror of
https://github.com/openai/codex.git
synced 2026-11-14 21:40:39 +00:00
Keep interrupts responsive during host service-tier updates (#60644)
## Why Waiting for host acceptance of a service-tier update in the submission loop can block interrupts while the host receipt is pending. ## What changed Move the host acceptance wait out of the submission loop while keeping explicit thread settings replies pending until acceptance completes. Report handoff failures to the caller while preserving the locally committed settings, and allow a subsequent explicit request for the same tier to retry a failed handoff. ## Testing Add a WebSocket regression test covering interrupts with pending host receipts, failure reporting, same-tier retries, and continued thread operation after startup caller cancellation. GitOrigin-RevId: 1b27d156eba3ebb47e717a987f41f4f595635be8
This commit is contained in:
@@ -2980,7 +2980,7 @@ impl ThreadManagerState {
|
||||
}
|
||||
// Cancelling this wait must leave the registered runtime and the host handoff intact.
|
||||
if let Some(accepted) = tier_acceptance {
|
||||
accepted.await;
|
||||
let _ = accepted.await;
|
||||
}
|
||||
Ok(new_thread)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user