mirror of
https://github.com/openai/codex.git
synced 2026-10-23 18:08:45 +00:00
## Why Aborting a refresh task is asynchronous, so yielding once before checking `is_finished()` does not guarantee cancellation has completed. ## What changed Return the refresh task's `JoinHandle` from `cloud_config_bundle_loader_for_service` and retain its `AbortHandle` in the loader lifetime. Update `each_loader_owns_refresh_until_its_last_clone_is_dropped` to await each task and assert cancellation after dropping its last loader clone, while still checking that the replacement loader's task remains active. GitOrigin-RevId: 2eb65211aefc21f9195ff766d8793f4b8f5a74c4