From dc6ea06d88510954bfd8a2a5df43427cd8204fe0 Mon Sep 17 00:00:00 2001 From: Joe Florencio Date: Fri, 12 Jun 2026 16:09:09 -0700 Subject: [PATCH] Explain cloud config fetch lock purpose --- codex-rs/cloud-config/src/service.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/codex-rs/cloud-config/src/service.rs b/codex-rs/cloud-config/src/service.rs index 4e97497375..3bb36b2f13 100644 --- a/codex-rs/cloud-config/src/service.rs +++ b/codex-rs/cloud-config/src/service.rs @@ -241,6 +241,9 @@ where return Ok(loaded); } + // This is a cross-process single-flight lock, not a cache-file + // integrity lock. One process fetches while contenders wait and + // recheck the shared cache for its result. match self.cache.try_acquire_lock().await { Ok(CacheLockAttempt::Acquired(_cache_lock)) => { // Close the race between the cache read and lock acquisition.