Skip to content

Prove the longpress request envelope with a worst-case ledger test #3326

Description

@thymikee

Follow-up 2b from #2879 (step 1 landed in #2916).

Problem

The longpress envelope is the literal envelopeMs: 210_000 in packages/command-registry/src/registry.ts. It rests on a comment sum: Android helper install 30 s (HELPER_INSTALL_TIMEOUT_MS, packages/platform-android/src/touch-helper.ts), the 120 s hold cap, and 15 s helper overhead. The comment also names an unbounded "hand off a running snapshot helper" step and the selector-resolution capture. Nothing checks the sum. The hold cap is a bare literal in src/commands/interaction/runtime/gestures.ts (requireIntInRange(options.durationMs, 'durationMs', 0, 120_000)).

Required

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions