[PR #6913] fix(storage): add retry logic for UV_UNKNOWN errors on Windows #12156

Open
opened 2026-02-16 18:17:05 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/6913

State: open
Merged: No


Problem

On Windows, storage operations can fail with UV_UNKNOWN errors due to transient file locking from anti-virus software (e.g., FortiClient) or other processes accessing the files.

Solution

Added retry logic (up to 3 retries with incremental delays) before giving up, which allows time for anti-virus or other processes to release the file lock.

Change

  • Adds retry logic for transient file system errors on Windows
  • Handles UV_UNKNOWN, EBUSY, EPERM, EACCES, and EAGAIN errors
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/6913 **State:** open **Merged:** No --- ## Problem On Windows, storage operations can fail with `UV_UNKNOWN` errors due to transient file locking from anti-virus software (e.g., FortiClient) or other processes accessing the files. ## Solution Added retry logic (up to 3 retries with incremental delays) before giving up, which allows time for anti-virus or other processes to release the file lock. ## Change - Adds retry logic for transient file system errors on Windows - Handles `UV_UNKNOWN`, `EBUSY`, `EPERM`, `EACCES`, and `EAGAIN` errors
yindo added the pull-request label 2026-02-16 18:17:05 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#12156