Skip to content

Commit d19ce0f

Browse files
docs(remote): say a tenant cannot release a host-allocated macos-app lease
1 parent 4c09309 commit d19ce0f

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

‎src/daemon/macos-app-lease.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export function parseMacOsAppLeaseKey(deviceKey: string | undefined): MacOsAppLe
3838

3939
/**
4040
* The requests that run without the leased app's session: `open` creates it, each `batch` step is
41-
* admitted again when it runs, and a heartbeat or release acts on the lease alone.
41+
* admitted again when it runs, and a heartbeat acts on the lease alone, and a release is refused (the host ends the lease).
4242
*/
4343
const SESSIONLESS_COMMANDS: ReadonlySet<string> = new Set([
4444
'open',

‎website/docs/docs/remote-proxy.md‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,9 @@ The lease id is 16 to 128 hex characters the host chooses. Repeating the PUT ren
141141
that names another scope for an existing id is refused. The lease stays allocated across the
142142
client's `close` unless the body sets `retainOnClose: false`, and DELETE revokes it at once. It
143143
expires after `ttlMs` without a renewal or a client request, like any lease. A client heartbeat can
144-
shorten that window but never extend it past the `ttlMs` of the last PUT.
144+
shorten that window but never extend it past the `ttlMs` of the last PUT. A client cannot release
145+
it: `disconnect` drops only its local connection state, and a tenant `lease_release` is refused
146+
with `MACOS_APP_LEASE_HOST_OWNED`.
145147

146148
The client connects with a remote config that names the lease, and runs `open <bundleId>`:
147149

0 commit comments

Comments
 (0)