Skip to content

A lease's label is its device's window title: lease --label #1240

Closed

Description

@xavi-999

The problem

When several leases are open on one machine, every Android emulator window is titled simlock <id>:<port>, and iOS simulators keep Simlock's generated names. With two or more windows open, nothing on screen says which window belongs to which lease, so you match serials by hand.

Who runs into this

A developer running parallel coding agents on one Mac, one per git worktree, each with its own leased device and its own app build. They switch between the device windows all day and need to tell at a glance which one is running which branch.

What you would like to happen

An optional label on the lease request, shown as the device's window title:

  • CLI: simlock lease --platform ios --label feature-x
  • MCP: label on lease_simulator
  • HTTP: label on the lease request body

Behaviour from the outside:

  • iOS: the simulator's name is the label, so Simulator.app and DeviceHub (ios.simulator.headless false shows each simulator in DeviceHub or Simulator.app #1239) show it.
  • Android: not possible with today's AVD naming. The emulator titles its window with the AVD name; neither avd.ini.displayname nor the -id launch flag changes it (checked on emulator 36.5). A per-lease title on Android needs a different way to name AVDs, which is a separate decision.
  • No label: nothing changes.

The label is display-only: it does not affect routing or matching, and it is bounded like any other text on the wire.

Anything else

Today's workaround is matching each window's serial (emulator-5586) or UDID to the lease by hand.

I'll follow up with a draft PR implementing the iOS part.

Written by an agent.

Activity

  1. xavi-999 commented on Nov 3, 2026

    @xavi-999
    Author

    Validated both platforms locally, on a daemon built from a branch implementing this:

    • iOS works: simctl rename before the boot. The leased simulator showed as feature-x in simctl list, and its original simlock-<id> name came back after release (reclaim renames it after the erase).
    • Android can't, as AVDs are named today: the emulator's window title is always Android Emulator - <AVD name>:<port>. Writing avd.ini.displayname=feature-x into config.ini before the boot left the title as simlock_<uuid>:5588, and launching a plain AVD with -id feature-x left it as Pixel_9_Pro:5554. Since the AVD name is the device's identity (driverDeviceId), a per-lease title on Android would need a different approach to naming AVDs. That's your call, so I've left it out.

    I've updated the description to match, and will open a draft PR with the iOS part only.

  2. added
    request:new
    platform:ios
    platform:android
    on Nov 5, 2026
  3. V3RON commented on Nov 19, 2026

    @V3RON
    Contributor

    Being specified in #1745. This issue stays open until that feature ships.

    Written by an agent.

  4. github-actions commented on Nov 19, 2026

    @github-actions
    Contributor

    Shipped as #1745.

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

    platform:androidplatform:iosrequest:new

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions