Skip to content

Avoid periodic wakeups in idle Windows file watchers - #60560

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/b53b3c8bc514008554fdeffaef3f7bf8305a4803
Nov 10, 2026
Merged

copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/b53b3c8bc514008554fdeffaef3f7bf8305a4803

Conversation

@copyberry

@copyberry copyberry Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

Avoid periodic wakeups in idle Windows file watchers

Why

The Windows notify backend wakes every 100 ms even when idle.

What changed

  • Patch notify 8.2.0 in Bazel to wait indefinitely for events or control requests.
  • Wake the watcher when configuration requests are queued and share ownership of the wakeup semaphore with Arc<OwnedHandle>.

Testing

Add a Windows regression test that verifies file changes are reported after unregistering one directory and registering another on the same watcher.

## Why

The Windows `notify` backend wakes every 100 ms even when idle.

## What changed

- Patch `notify` 8.2.0 in Bazel to wait indefinitely for events or control requests.
- Wake the watcher when configuration requests are queued and share ownership of the wakeup semaphore with `Arc<OwnedHandle>`.

## Testing

Add a Windows regression test that verifies file changes are reported after unregistering one directory and registering another on the same watcher.

GitOrigin-RevId: b53b3c8bc514008554fdeffaef3f7bf8305a4803
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/b53b3c8bc514008554fdeffaef3f7bf8305a4803 branch from 63cc8a0 to 6dfaca4 Compare November 10, 2026 08:52
@copyberry
copyberry Bot merged commit 6dfaca4 into main Nov 10, 2026
7 of 23 checks passed
@github-actions

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 deleted the copyberry/codex-internal-to-codex-oss/b53b3c8bc514008554fdeffaef3f7bf8305a4803 branch November 10, 2026 08:53
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 10, 2026

This branch was previously deployed

1 inactive deployment
issue-triage — 6dfaca4d Deployed Nov 10, 2026 by YihaoJW via Identify potential duplicates (open issues fallback) #62559
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.

8 participants