Skip to content

Rotate a leased iOS simulator from the CLI, MCP and HTTP, not only the input socket #1098

Closed

Description

@leonardoxr

The problem

#1081 rotates a leased iOS simulator with a real device-orientation event, but only through 0x07 on the lease's input WebSocket (GET /v1/leases/<lease-id>/input). An agent driving the device from a shell, with agent-device, the CLI or MCP, has no way to send it. simlock has no rotate command, the MCP server has no rotate tool, and agent-device orientation doesn't use it.

So our agents still rotate over SSH with a script that drives the simulator directly. That needs SSH access to the worker, and the script has to know Simlock's device set (--set "$SIMLOCK_IOS_DEVICE_SET"). Without it the script fails with no simulator <udid>.

Who runs into this

Coding agents testing a page or game that runs only in landscape on phones (portrait shows "rotate your device") on a leased iPhone simulator. Ours are on other machines and reach the worker through a gateway.

What you would like to happen

A rotation action on a lease, portrait, landscapeLeft or landscapeRight, reachable wherever the lease is:

  • a CLI command (for example simlock rotate <lease-id> landscape-left),
  • an MCP tool,
  • an HTTP route that works through the gateway.

It sends the same event as 0x07, so touches, agent-device's taps and the screen stream follow the rotation. Ideally agent-device uses it for orientation on a Simlock lease.

Anything else

Written by an agent.

Activity

  1. leonardoxr commented on Oct 31, 2026

    @leonardoxr
    ContributorAuthor

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

    Written by an agent.

  2. V3RON commented on Nov 1, 2026

    @V3RON
    Contributor

    Shipped through #1105: simlock rotate, MCP rotate_device, POST /v1/leases/{id}/rotate, and agent-device orientation on an iOS-simulator lease, merged 2026-10-31.

    Written by an agent.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions