You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Feature]: CLI control over the emulator pane: close the tab, open as a split #26214
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.
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
Activity
[-][Feature]: CLI command to close an emulator pane tab[/-][+][Feature]: CLI control over the emulator pane: close the tab, open as a split[/+]