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
A joined worker's local leases skip the gateway queue: a freed device goes to the local agent, not the oldest fleet waiter #1247
One gateway, one worker (16 GiB Mac, iOS max running 2), simlock 0.5.0. Three requests waited in the gateway queue for an iOS simulator (two for over 45 minutes; one ended QUEUE_TIMEOUT). When a lease on the worker was released, the freed slot went to a simlock lease run directly on the worker machine, which had asked minutes after the gateway's waiters. The gateway's oldest waiter kept waiting.
As documented ("Local agents keep working ... They share the worker's devices with requests from the gateway"), a joined worker serves its local socket clients from its own queue, and the gateway only places a request once the worker reports a free slot. So the fleet has two lines, and the local line wins every race.
What I expected
A way to keep one line for the whole fleet, for example:
gateway.localLeases: "allow" | "via-gateway" | "deny" on a joined worker. via-gateway relays a local simlock lease / MCP lease to the gateway's queue (the worker already has the uplink), so local agents wait in the same FIFO as everyone else. deny answers with a clear error naming the gateway.
Or at least a worker-side priority: when a gateway request is waiting for this worker, a freed device goes to the gateway first.
Why it matters
With few devices per worker, whoever happens to run on the worker machine skips the queue, and the gateway's ordering (and its queue timeouts) stop meaning anything. Related: #945 (remote CLI/MCP), which would also let agents on the worker machine use the gateway like everyone else.
Activity
V3RON commentedon Nov 30, 2026
Being specified in #1966. This issue stays open until that feature ships.
Written by an agent.
docs(adr): 0097 a joined worker may refuse local leases (#1967)
github-actions commentedon Nov 30, 2026
Shipped as #1966.