Repository navigation
Description
The problem
An operator who runs a worker (or a fleet behind a gateway) has to leave the console for the CLI to manage the devices themselves. The console shows every device and can already act on leases, requests and workers (ADR 0037), but it cannot:
- enrol a USB phone, or remove an enrolled one;
- delete an idle simulator or emulator it no longer wants;
- add a virtual device of a chosen model and OS, so it exists before the first agent asks for it;
- warm a device up (boot it and keep it ready) or warm it down (shut it down), or choose which devices the warm pool keeps running;
- change any setting. Warm-pool targets, idle timeouts, emulator flags, stream and agent-device options all live in
config.jsonand change only throughsimlock config setor by editing the file. There is no settings page and no HTTP route to read or change config.
Who runs into this
A developer running one worker for their own coding agents, and an operator running a fleet. Both watch the console all day. When they want a different set of devices running (for example, "keep one Pixel 8 and one iPhone 17 warm for my agents, shut the rest down"), they have to switch to a terminal, find the right command or config key, and often restart the daemon for a warm-pool change to apply.
What you would like to happen
From the console, on a worker (and through the gateway for a fleet):
- Physical devices: enrol a connected phone and remove an enrolled one. The routes exist already (
POST /v1/devices,DELETE /v1/devices/{id}). - Delete an idle virtual device, behind a confirm, never one that is leased.
- Add a virtual device of a model and OS from the catalog.
- Warm up / warm down: boot a device and keep it ready, or shut it down; pick which devices or kinds the warm pool keeps running, without a restart.
- Settings: see the daemon's settings and change the ones that are safe to change at runtime.
Items 1 and 2 seem to fit the console's current rules (act only through HTTP routes, one action list per item, confirm what cannot be undone). Items 3 to 5 touch ideas the docs defer today (docs/internal/IDEAS.md: "changing targets without a restart", "fleet-level targets on a gateway") and need a design decision first.
Anything else
- Related: ADR 0037 (the console acts through the HTTP routes), Console: release, cancel, drain, undrain and remove from the console #769 (release, cancel, drain, undrain and remove from the console), ADR 0017 and ADR 0038 (warm pool).
- Workaround today:
simlock device add|remove,simlock config set warmPool.targets …plus a daemon restart,simlock cleanup/nuke.
Written by an agent.
Activity
leonardoxr commentedon Oct 31, 2026
Items 1 and 2 are being specified in #1131. This issue stays open until that feature ships. Items 3 to 5 need a design decision first and are not in #1131.
Written by an agent.
leonardoxr commentedon Oct 31, 2026
Items 1 and 2 are specified in feature #1131, with tasks #1133, #1134 and #1135 and ADR 0055 (PR #1132). Every body passed its spec check. Items 3 to 5 have a design proposal, not posted as issues; they need a decision on runtime warm-pool targets first.
The author has no write access, so a maintainer needs to:
request:new.spec-lintblocks each task on itsPart of #1131line and the feature on its Behaviours Task cells.Assumption:lines under Console: enrol and remove phones, and delete idle simulators and emulators #1131's Decisions. They were taken without an interview: the console sends the typed phone id unchecked, deleted rows stay and readdeleted, a delete keeps the warm kind, plain confirms, and Enrol phone… sits on the Fleet row too.feature:planned, and label Console: enrol a phone from the plugged-in list or by id, and remove an enrolled one #1133, device attached lists the phones plugged into a worker that have no record #1134 and Console: delete an idle simulator or emulator #1135task:ready. docs(adr): propose 0055, device remove deletes an idle simulator or emulator (#1131) #1132 stays open as the bottom of the stack and merges with the last task.Written by an agent.
leonardoxr commentedon Oct 31, 2026
Items 3 and 4 are specified in feature #1137, with tasks #1143, #1144, #1145 and #1146, and ADR 0056 (draft PR #1139). Every body passed its spec check (
Verdict: readyon the feature and all four tasks). Item 5 (settings) is not in #1137.warm.setandwarm.list: runtime warm-pool targets kept instate.db, lowered counts shut down at once,warm-pool.targets-changedGET/PUT /v1/warm-pool…,DELETE /v1/warm-pool/learned,simlock warm list|set|unset|learnThe author has no write access, so a maintainer needs to:
spec-lintblocks each task on itsPart of #1137line and the feature on its Behaviours Task cells, andrunnable.mjs 1137sees no tasks.request:newif it is not yet, and Console: warm the pool up and down, and add a device from the catalog, without a restart #1137feature:spec; the four taskstask:draft.Assumption:lines under Console: warm the pool up and down, and add a device from the catalog, without a restart #1137's Decisions. They were taken without an interview. The main ones:warm.setanswers at once, and the next pass shuts down what a change stopped keeping.warm-pool.targets-changedand calls the callerrequesterId.simlock warmgainslist,set,unsetandlearn.feature:planned, and label the four taskstask:ready. docs(adr): propose 0056, an operator sets warm targets at runtime (#1137) #1139 stays a draft, as the bottom of the stack, and merges with the last task.ItemActionunion and console form. Runtime warm-pool targets: warm.set and warm.list, kept in state.db #1143 bumps the protocol by one, like device attached lists the phones plugged into a worker that have no record #1134 and the open PRs feat(android): android.emulator.hardwareKeyboard gives emulators a hardware keyboard #1082, feat(tunnel): reverse a leased Android device's port over a lease WebSocket on a worker #1121 to feat(tunnel): simlock tunnel forward reaches a leased device's port from the caller's machine #1127.Written by an agent.
leonardoxr commentedon Oct 31, 2026
Item 5 (settings) is specified in feature #1151, with tasks #1153, #1154, #1155 and #1156 and ADR 0057 (draft PR #1152). This issue stays open until that feature ships. The design gives full control, not a read-only page: every key
simlock config settakes can be changed from the console, through the same validation. Three keys apply live:idle.shutdownAfterMs,idle.deleteAfterMsanddiskPressure.freeBytesThreshold. Every other key waits for a restart, and the page offers Restart daemon. Secrets are write-only. While a daemon runs, it is the one writer ofconfig.json. The feature and all four tasks passed their spec checks (Verdict: ready).GET /v1/config/config.list: every setting with its running, saved and default values, secrets hiddenPUT /v1/config/{key}/config.set: the daemon writesconfig.json, three live keys,config.changed;simlock config setgoes through a running daemonPOST /v1/restart/daemon.restart/simlock daemon restart, through the updater in a restart modeThe author has no write access, so a maintainer needs to:
feature:specand the four taskstask:draft, and Console: manage devices, the warm pool and settings from the console #1130request:newif it should carry one.task:readyand Console: see and change the daemon's settings, and restart it #1151 tofeature:planned. The PR stays open as the bottom of Console: see and change the daemon's settings, and restart it #1151's stack.config.jsonis never written by the daemon" towarm.set.Written by an agent.
github-actions commentedon Nov 30, 2026
Shipped as #1131.