If the same session is open twice, only one window syncs files.
What's wrong with this entry?
File sync now takes a lock before writing, so if you have the same session open in two windows only the first one syncs. The second says so and stays quiet instead of both writing at once.
- The lock is a file under a
writer-locksdirectory keyed to the session's side repository. - If a window's lock is taken over or lost while it held it, sync stops in that window with an explicit message rather than continuing blind.
- If the process stalls long enough to be caught by the interval check, the lock is re-taken and cached state is thrown away rather than assumed to still be valid.
Another Claude Code window on this machine is syncing this session's files; this one won't
Strings lifted out of the shipped bundle, so the claim above can be checked against them.
Related
Other releases about the same thing. Found by shared names or similar wording; neither means one caused the other.
-
v2.1.238
Sync state machine gains a moved-root case and a per-turn pull hook
Both mention directory
-
v2.1.238
Untracked-file survey extracted and shared
Both mention directory
-
v2.1.238
Sync internals reshaped around per-file credential state
Both mention directory