Coalesce concurrent remote metadata requests - #36184
Merged
copyberry[bot] merged 1 commit intoJul 30, 2026
Merged
Conversation
## 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
copyberry
Bot
force-pushed
the
copyberry/codex-internal-to-codex-oss/f91e51b94db3fb984597aec8d302b8715778121c
branch
from
July 30, 2026 16:36
96ff61c to
483559c
Compare
copyberry
Bot
deleted the
copyberry/codex-internal-to-codex-oss/f91e51b94db3fb984597aec8d302b8715778121c
branch
July 30, 2026 16:37
xiaoxuesheng123467
temporarily deployed
to
issue-triage
July 30, 2026 16:40 — with
GitHub Actions
Inactive
xiaoxuesheng123467
temporarily deployed
to
issue-triage
July 30, 2026 16:40 — with
GitHub Actions
Inactive
xiaoxuesheng123467
temporarily deployed
to
issue-triage
July 30, 2026 16:40 — with
GitHub Actions
Inactive
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Coalesce concurrent remote metadata requests
Why
Concurrent callers can request metadata for the same remote path, resulting in duplicate
fs/getMetadataRPCs.What changed
Testing
Add WebSocket-backed tests covering shared results and errors, retry after cancellation or failure, mutation invalidation, and path and sandbox isolation.