Files
emulator-tools/bin
irisandClaude Opus 5 098433681e Match an AVD name as a whole argument, never as a prefix
`emu up` kills a stray process for its own AVD first, with `pkill -f
"[e]mulator.*-avd $avd"`. An AVD name is a prefix of every longer one, so
`-avd ai-app` matched `-avd ai-app-2`: starting one checkout's emulator
silently killed another checkout's. That is the exact interference this tool
exists to prevent, and from the other side it looked like an emulator dying
on its own -- twice on 2026-08-31 before the pattern was the suspect, with
nothing in its log but a graceful shutdown nobody had asked for.

`emu list` had the same hazard in its `index($0, want)`, where the cost is
quieter: with both up it reported ai-app-2's resident size against ai-app,
which is a number that looks entirely plausible.

`running_avds` and `avd_serial` were already exact matches, which is what
made this hard to see -- the rule was right in two places out of four.

Verified with both emulators running: the ai-app pattern now matches only
ai-app, and `emu list` reports the two sizes separately.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-31 00:17:13 -04:00
..
2026-08-30 13:12:44 -04:00