feat(testing): Add headless launch mode #435
Merged
@sentry/warden / warden: find-bugs
completed
Jun 1, 2026 in 24m 18s
2 issues
find-bugs: Found 2 issues (2 low)
Low
Dead code: `buildOpenSimulatorAppCommand()` null branch is unreachable after `isHeadlessLaunchMode()` guard - `src/mcp/tools/simulator-management/_keyboard_shortcut.ts:4`
The buildOpenSimulatorAppCommand() null check is dead code — isHeadlessLaunchMode() already returns early with the same error before it's ever reached, so the null branch can never execute.
Also found at:
src/mcp/tools/simulator-management/_keyboard_shortcut.ts:108-114
`buildOpenSimulatorAppCommand` called without `simulatorId`, so Simulator.app may not navigate to the booted device - `src/mcp/tools/simulator/build_run_sim.ts:52`
The call at line 379 omits the resolved simulatorId, so open -a Simulator launches without --args -CurrentDeviceUDID <uuid>. Simulator.app will open but stay on whatever device was last focused rather than the one just booted and installed.
⏱ 22m 41s · 8.8M in / 276.4k out · $12.78
Loading