mirror of
https://github.com/pchuan98/codex.git
synced 2026-07-01 00:31:56 +08:00
d58df28286
Prior to this PR, we had: https://github.com/openai/codex/blob/71cae06e6643b4adf644d9769208c3c5fcd1f2be/codex-rs/login/src/server.rs#L141-L142 which means that we could be blocked waiting for a new request in `server_for_thread.recv()` and not notice that the state of `shutdown_flag` had changed. With this PR, we use `shutdown_flag: Notify` so that we can `tokio::select!` on `shutdown_notify.notified()` and `rx.recv()` (which is the "async stream" of requests read from `server_for_thread.recv()`) and handle whichever one happens first. --- [//]: # (BEGIN SAPLING FOOTER) Stack created with [Sapling](https://sapling-scm.com). Best reviewed with [ReviewStack](https://reviewstack.dev/openai/codex/pull/2394). * #2399 * #2398 * #2396 * #2395 * __->__ #2394 * #2393 * #2389
d58df28286
·
2025-08-19 00:32:03 +00:00
History