Skip to content

Console: manage devices, the warm pool and settings from the console #1130

Done

Description

@leonardoxr

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.json and change only through simlock config set or 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):

  1. Physical devices: enrol a connected phone and remove an enrolled one. The routes exist already (POST /v1/devices, DELETE /v1/devices/{id}).
  2. Delete an idle virtual device, behind a confirm, never one that is leased.
  3. Add a virtual device of a model and OS from the catalog.
  4. 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.
  5. 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

Written by an agent.

Activity

  1. leonardoxr commented on Oct 31, 2026

    @leonardoxr
    ContributorAuthor

    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.

  2. leonardoxr commented on Oct 31, 2026

    @leonardoxr
    ContributorAuthor

    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:

    Written by an agent.

  3. leonardoxr commented on Oct 31, 2026

    @leonardoxr
    ContributorAuthor

    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: ready on the feature and all four tasks). Item 5 (settings) is not in #1137.

    Task What it delivers Depends on
    #1143 warm.set and warm.list: runtime warm-pool targets kept in state.db, lowered counts shut down at once, warm-pool.targets-changed —
    #1144 GET/PUT /v1/warm-pool…, DELETE /v1/warm-pool/learned, simlock warm list|set|unset|learn #1143
    #1145 The Warm pool tab edits counts, learning and learned kinds, in worker mode only #1144, #1133, #1135
    #1146 Add device… picks a kind from the catalog and keeps one more warm #1145, #1133, #1135

    The author has no write access, so a maintainer needs to:

    Written by an agent.

  4. leonardoxr commented on Oct 31, 2026

    @leonardoxr
    ContributorAuthor

    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 set takes can be changed from the console, through the same validation. Three keys apply live: idle.shutdownAfterMs, idle.deleteAfterMs and diskPressure.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 of config.json. The feature and all four tasks passed their spec checks (Verdict: ready).

    Task What it delivers Depends on
    #1153 GET /v1/config / config.list: every setting with its running, saved and default values, secrets hidden —
    #1154 PUT /v1/config/{key} / config.set: the daemon writes config.json, three live keys, config.changed; simlock config set goes through a running daemon #1153, #1143
    #1155 POST /v1/restart / daemon.restart / simlock daemon restart, through the updater in a restart mode #1154
    #1156 Console Settings page: edit, lock-out confirms, Restart daemon #1155, #1145, #1135, #1146

    The author has no write access, so a maintainer needs to:

    1. Link Settings: read every setting through GET /v1/settings #1153, Settings: change settings through the daemon with PATCH /v1/settings, live where it can #1154, Settings: restart the daemon with POST /v1/restart and simlock daemon restart #1155 and Console: edit settings and restart the daemon from the Settings page #1156 as sub-issues of Console: see and change the daemon's settings, and restart it #1151.
    2. Label Console: see and change the daemon's settings, and restart it #1151 feature:spec and the four tasks task:draft, and Console: manage devices, the warm pool and settings from the console #1130 request:new if it should carry one.
    3. Review ADR 0057 in draft PR docs(adr): propose 0057, the daemon owns config.json while it runs (#1151) #1152. To approve: set it to Accepted — not yet implemented on its branch, move the four tasks to task:ready and Console: see and change the daemon's settings, and restart it #1151 to feature:planned. The PR stays open as the bottom of Console: see and change the daemon's settings, and restart it #1151's stack.
    4. When accepting ADR 0056 (PR docs(adr): propose 0056, an operator sets warm targets at runtime (#1137) #1139), note that ADR 0057 narrows its "config.json is never written by the daemon" to warm.set.
    5. Order: Settings: change settings through the daemon with PATCH /v1/settings, live where it can #1154 waits for Runtime warm-pool targets: warm.set and warm.list, kept in state.db #1143, and Console: edit settings and restart the daemon from the Settings page #1156 waits for Console: delete an idle simulator or emulator #1135, Console: edit the warm pool's targets on a worker's Warm pool tab #1145 and Console: Add device… from the catalog keeps one more warm #1146, because they share lines. If feature Console: enrol and remove phones, and delete idle simulators and emulators #1131 or Console: warm the pool up and down, and add a device from the catalog, without a restart #1137 is dropped, remove those Depends on lines.

    Written by an agent.

  5. added
    request:new
    on Nov 5, 2026
  6. github-actions commented on Nov 30, 2026

    @github-actions
    Contributor

    Shipped as #1131.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    request:new

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions