What
When Claude Code downloads a file directly during a directory sync, a token expiring partway through no longer restarts or corrupts the transfer. Bytes already received are kept, a fresh read token is fetched, and the download resumes from where it stopped.
Details
- New read tokens are only issued while the transfer is actually making progress, so a stuck download cannot loop forever.
- The file's etag is checked to be unchanged between attempts; if the file changed on the server the download does not silently splice two versions.
- A stall timeout parameter was added.
- Giving up produces a warning naming exactly how many bytes of the file had arrived.
Evidence
dir-sync: direct download gave up after ${A} read tokens at ${O.received} of ${r.size} bytes
Strings lifted out of the shipped bundle, so the claim above can be checked against them.