Skip to content

Coalesce concurrent Git status scans - #37151

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/4c197c1d5bb94ca83c02979be34b17f24aefde08
Aug 5, 2026
Merged

Coalesce concurrent Git status scans#37151
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/4c197c1d5bb94ca83c02979be34b17f24aefde08

Conversation

@copyberry

@copyberry copyberry Bot commented Aug 5, 2026

Copy link
Copy Markdown

Coalesce concurrent Git status scans

What changed

  • Share an in-flight git status --porcelain invocation among concurrent workspace metadata requests for the same canonical repository root.
  • Keep scans for different repositories independent, and start a fresh scan after an in-flight request completes or loses all consumers.
  • Pass the known repository root into dirty-worktree detection so requests from sibling directories and symlink aliases use the same key.

Testing

  • Add coverage for request coalescing, repository and symlink keying, completed scans, and consumer cancellation.

## What changed

- Share an in-flight `git status --porcelain` invocation among concurrent workspace metadata requests for the same canonical repository root.
- Keep scans for different repositories independent, and start a fresh scan after an in-flight request completes or loses all consumers.
- Pass the known repository root into dirty-worktree detection so requests from sibling directories and symlink aliases use the same key.

## Testing

- Add coverage for request coalescing, repository and symlink keying, completed scans, and consumer cancellation.

GitOrigin-RevId: 4c197c1d5bb94ca83c02979be34b17f24aefde08
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/4c197c1d5bb94ca83c02979be34b17f24aefde08 branch from 266968d to b6c3b51 Compare August 5, 2026 20:23
@github-actions

github-actions Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor


Thank you for your submission, we really appreciate it. Like many open-source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution. You can sign the CLA by just posting a Pull Request Comment same as the below format.


I have read the CLA Document and I hereby sign the CLA


You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot.

@copyberry
copyberry Bot merged commit b6c3b51 into main Aug 5, 2026
28 of 32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/4c197c1d5bb94ca83c02979be34b17f24aefde08 branch August 5, 2026 20:24
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 5, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants