fix(opencode): atomic storage writes with retry/backoff + quarantine on Windows; tolerant reads#11646
Conversation
… tolerant reads; tests
|
Hey! Your PR title Please update it to start with one of:
Where See CONTRIBUTING.md for details. |
|
The following comment was made by an LLM, it may be inaccurate: No duplicate PRs found |
…harden atomicWrite retries/quarantine
…bilize atomicWrite
|
I have tested this and your solution seems to work @KakashiTech |
|
I tried the fix the last couple of days and I had no problems at all! Works perfectly :) |
|
Confirm this solution works, hope this gets merged into main soon |
What
Why (Windows)
UV_UNKNOWNon open/rename (e.g....storage\part\msg_\prt_.json). This made storage unusable for some users (Error: UV_UNKNOWN: unknown error #8792).Details
.oc-<basename>.<pid>.<ts>.tmpin the same directory.storage/quarantine/<timestamp>/<relative-original-path>.json.Verification
bun installandbun test: 789 passing, 0 failing.Trade-offs
quarantinefolder for recovery workflows.Links