mirror of
https://github.com/openai/codex.git
synced 2026-09-20 12:47:38 +00:00
## Why Concurrent callers can request metadata for the same remote path, resulting in duplicate `fs/getMetadata` RPCs. ## What changed - Share an unsandboxed metadata request with concurrent callers for the same path while the RPC is in flight. - Remove completed and failed requests so later callers fetch fresh metadata, and clear in-flight entries after filesystem mutations, including failed mutations. - Keep requests for different paths separate and bypass sharing for sandboxed requests. ## Testing Add WebSocket-backed tests covering shared results and errors, retry after cancellation or failure, mutation invalidation, and path and sandbox isolation. GitOrigin-RevId: f91e51b94db3fb984597aec8d302b8715778121c
18 KiB
18 KiB