Skip to content

[Feature]: CLI control over the emulator pane: close the tab, open as a split #26214

Open

Description

@dmit4mit

Problem
orca emulator attach <device> --focus opens an emulator tab in the worktree, but there is no CLI way to close it. orca emulator kill stops the helper (scrcpy server, adb forward) but the tab stays open with the device name. tab close only handles browser tabs and terminal close only terminals.

Use case
Several agent sessions on one machine share a pool of emulators via a lease script. When a session leases a device, the script attaches it to that session's worktree so the user sees what the agent is doing. When the lease is released (or reclaimed by another session), the script runs emulator kill, but the stale tab stays in the old worktree and has to be closed by hand. Over a day these pile up.

Proposal
Either:

  • orca emulator kill --close-tab (or orca emulator detach), which stops the helper and removes the tab from the worktree, or
  • orca emulator close --device <id> --worktree <selector>.

Related: open the emulator as a split
orca emulator attach always opens a separate tab. When an agent drives the device, it is much more useful next to the agent's terminal, e.g. orca emulator attach <device> --split [--direction horizontal|vertical] [--terminal <handle>], mirroring orca terminal split. Today the only way is to drag the tab into a split by hand.

Environment
Orca 1.4.220, macOS, Android emulator (scrcpy backend); the same applies to iOS simulators.

Activity

  1. changed the title [-][Feature]: CLI command to close an emulator pane tab[/-] [+][Feature]: CLI control over the emulator pane: close the tab, open as a split[/+] on Oct 7, 2026
  2. added
    emulator
    on Nov 1, 2026
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

    emulator

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions