Repository navigation
Conversation
|
No actionable comments were generated in the recent review. Summary
Merge Risk:
|
Every manifest line is now a branch with only its own change, cut from v0.22.0 or from the one branch named in its comment. Drops lines upstream v0.22.0 already has (BytePioneer-AI#913-BytePioneer-AI#917), the covered replay-integration, shared-remote-threads-and-delegation (now thin BytePioneer-AI#970/BytePioneer-AI#971/BytePioneer-AI#972 lines), external-side-chat (now thin BytePioneer-AI#969), remote-ssh-share-local-data, the net-zero Claude Desktop entrypoint pair, and the user-instructions lines rejected upstream as BytePioneer-AI#741. rr-cache holds the recorded resolutions for merging the thin branches onto v0.22.0. Signed-off-by: Vincent <[email protected]>
|
Thanks @ump45nose for digging into this. Closing because the Windows branch is not reachable from production today: both callers of the socket initialization lock sit behind |
Summary
writeLockRecordAtomicpublishes the remote socket lock record by renaming a complete temporary file over the register. On Windows, a reader that has the register open can make thatrenamefail briefly withEPERM,EACCESorEBUSY, and the publication fails even though the register is fine.On Windows only, the rename is now retried a few times (10, 30, 70, 150, 300 ms) for those three codes, leaving the currently published register in place. Other errors, other platforms, and the final failed attempt still throw as before, and the temporary file is still removed in
finally.Related issues
N/A
Test plan
remote-socket-lock.test.ts: a sharing violation is retried without removing the published register; retries are bounded forEACCESand the guarded action never runs after a failed publication; non-Windows errors are not retried. On currentmainwithout the fix, the two Windows cases fail; with the fix all 3 pass.npx tsc -bpassed.process.platformandrename; I have not run this on a real Windows machine.