Under the hood
Directory sync's git worker gains an 'attached machine' mode with standing journals and new detach reasons
What
The git-based directory-sync worker gained a substantial new code path around live syncing to a remote machine:
- journals (its sync records) can now be "standing" as well as the previous "note"-based kind
- checkouts can be "attached" to a live remote machine, tracked with a new
attachedflag and abookkeepingOnBranchstate - a new detach flow ends sync for specific reasons, such as
branch_switchedormachine_stopped, instead of only the previous generic "ended" flow - new fields
foldedInstall,readsStanding, and akeepCheckoutPathmarker (with a companion.offeredfile) track this state, letting an existing checkout be recognized as already attached instead of always redoing the initial setup
Why
This lets directory sync track and recover a live connection to a remote machine more precisely, distinguishing why a sync session ended and avoiding unnecessary rework when a checkout is already properly set up.