Context
Android gesture execution currently stops the persistent snapshot instrumentation before injecting (src/platforms/android/multitouch-helper.ts — gesture execution tears down the snapshot helper; the next capture restarts it). During PR #1217 validation this instrumentation churn was measured as a dominant cost around Maestro swipe steps, and it taxes every local Android gesture, not just Maestro.
Direction (agreed during #1217 review)
One persistent Android automation helper owning:
- snapshot capture;
- gesture viewport resolution;
- canonical one- and two-pointer plan injection (ADR 0013 boundary unchanged).
It atomically replaces the separate one-shot multitouch helper — no "active session" optimization with a legacy fallback, and no second production path. Touch scheduling/injection should be extracted into focused Java classes rather than growing the existing ~770-line snapshot instrumentation.
Prototype gate (measure before committing)
- persistent-helper touch request latency;
- touch → two stable snapshots without process restart;
- five consecutive scrollable-pager passes;
- a long one-pointer pan;
- pinch, rotate, transform, and two-finger pan canaries (plans and app-observable effects unchanged).
Related
Context
Android gesture execution currently stops the persistent snapshot instrumentation before injecting (
src/platforms/android/multitouch-helper.ts— gesture execution tears down the snapshot helper; the next capture restarts it). During PR #1217 validation this instrumentation churn was measured as a dominant cost around Maestro swipe steps, and it taxes every local Android gesture, not just Maestro.Direction (agreed during #1217 review)
One persistent Android automation helper owning:
It atomically replaces the separate one-shot multitouch helper — no "active session" optimization with a legacy fallback, and no second production path. Touch scheduling/injection should be extracted into focused Java classes rather than growing the existing ~770-line snapshot instrumentation.
Prototype gate (measure before committing)
Related