You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(desktop): keep owner-only work in the process that owns the directory
Two things a launch did before it could know whether it was the host or
merely on its way to one.
The update pump swept leftovers as its first act, and the sweep discards
the relaunch marker. That marker is how a host that just applied an
update tells its own exit to reopen the new bundle, and it exists only
across the gap between the apply and the run loop returning. A launch
arriving in that gap starts its pumps before `app.run()` decides it is
secondary, so it swept the marker away and the update landed on disk
with nothing left to reopen it. The sweep moves out of the pump and onto
the owning host, which runs it once the election has named it. The pump
keeps the downloads, which only ever come from a page a forwarded launch
does not have.
The heartbeat claim gave up when it was already taken, which the elected
primary can genuinely find: a host started on the stopped-owner path
holds a claim without ever entering an election, so its claim outlives
it. The primary then ran with no heartbeat at all, and a later launch,
reading the other host's fresh stamp, would hand itself to this one
however stuck it had become — the exact failure the stamp exists to
catch. `hold` waits the other host out instead of giving up, and takes
the claim the moment it exits.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
0 commit comments