A grant to the launcher reaches every process it is responsible for at
once, but a session started before the launcher was installed keeps the
old responsible process and its permissions. db-setup names such running
sessions (responsibility_get_pid_responsible_for_pid) so they can be let
finish or retried.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
A CrossOver A/B could launch a game but not reach a menu in it.
`cx input --bottle B key|combo|text|click|move` mirrors the VM's
`utmbot input` (plus arrows and the other navigation keys), with X Y in
`cx shot` pixels, through a Swift helper (wininput): the game is brought
forward with the Accessibility API (activate() from the background is
ignored), keys go to its process, clicks are posted system-wide after
checking the screen is unlocked and the game is in front, and text is
typed as US-layout key codes (Wine maps keys by code). It needs
Accessibility for the responsible process: the permission job asks for
it, opens the pane and shows the launcher. `cx windows`/`cx shot` list
windows at every level (a frontmost full-screen game moves to level 26).
Verified on Forspoken Demo: title screen to Settings > Display Settings.
steam.run_game (VM and bottle) waited only for a game process, so a
Steam question stalled a launch for the whole --wait (15 min on a Steam
Cloud conflict). It now polls the client's GetActiveGameActions every
5 s and logs progress every 30 s. The Cloud Out of Date question
("pendingcloudsessions") gets ContinueGameAction(id,
"IgnorePendingCloudSessions"), what Steam's own "Play anyway" calls,
recorded in game-actions.txt; any other question still waiting after
10 s cancels the launch and names it. In a bottle the Wine log line
"waiting for user response to" is the fallback.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
macOS attributes a dispatched session's local-network connections (SSH to
the VMs) to the LaunchAgent's own program. With Homebrew's Python as that
program the Local Network grant did not hold (Allow helped only the
running process), so dispatcher restarts cut sessions off from the VMs.
Apple programs are exempt only with no non-Apple program (claude) between
them and the agent, so the system Python would not help either.
The dispatcher and the GitHub poller now run under "UTM Bot Agent", a
small ad-hoc signed app (no certificate needed) that spawns the real
command and waits, so it stays the responsible process. It is linked with
a random build UUID and registered with Launch Services before its first
run: macOS matches a blocked process to an app by that UUID, and two
launchers built alike would share it (no prompt, still blocked). It is
rebuilt only when its source or build recipe changes. Tested on macOS 27:
the grant holds across fresh launches.
db-setup and github-setup build it and, while the user is at the Mac, ask
for everything sessions need in a one-shot job under it: Local Network,
controlling UTM (its Info.plist carries the Apple Events usage string,
without which macOS refuses silently), Screen Recording, and UTM's
settings in its container. That last one has no dialog and its per-app
switch does not stick, so setup checks real read/write access (`defaults
export` reads an unreadable domain as empty), opens Full Disk Access and
shows the launcher in Finder. `db-setup --permissions` asks again.
load_agent retries bootstrap while a booted-out agent is still exiting.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
bin/gamesdb and scripts/gamesdb: the internal API through a kept-up SSH
tunnel, validated backups, and a dispatcher that runs the db skills in
unattended Claude Code sessions (usage limits, outages, blockers over
Remote Control and phone notifications, triage leases with heartbeats so
several Macs never take the same report). The db skills: setup, triage,
attachment summaries, moderation, and the Steam VM (baseline, installs,
gifts, cleanup). scripts/agentlib: session code shared with the GitHub
poller.
Co-Authored-By: Claude Opus 5.5 <[email protected]>