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
{{ message }}
Repository navigation
Commit 7519086
Browse filesBrowse the repository at this point in the historyBrowse files
fix(daemon): keep lease conflicts private, scope replay locks, refuse bad close targets
- A `macos-app` lease tenant sees a busy app as a generic DEVICE_IN_USE with
its typed reason, not the other owner's session, workspace, state
directory, or host recovery command, and a reboot takeover warning does
not name the previous owner.
- Only a fresh `open` of an app device takes its host's execution lock. A
replay holds its locks for its whole run, so it locks only its app device;
its opens still run under the first-open lock keyed by the host.
- `close <app>` in an app device session resolves its target through the
platform before any teardown (a new close plan use), so another app is
refused while the session and its claim stay intact, and any name of the
session's own app still closes it.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Copy file name to clipboardExpand all lines: docs/adr/0007-remote-device-leases.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -286,6 +286,7 @@ A session opened under the lease binds the app device of the leased bundle, not
286
286
It takes that app device's claim, like any other session.
287
287
Sessions on other apps of the Mac do not conflict with it, in this daemon or another.
288
288
A session on the same app, or on the whole Mac, conflicts with it.
289
+
A tenant sees that conflict as a generic `DEVICE_IN_USE` with its typed reason, never the other owner's session, workspace, state directory, or recovery command.
289
290
Thus, one daemon serves several leased apps beside the host's own app sessions.
290
291
291
292
These rules bind a request that names the lease or runs in its session.
0 commit comments