Skip to content

Lint backlog: floating promises in apps/mobile (25, including 2 in computer-scroll-pad) #4302

Closed

Description

@DoodleBears

Found by the floating-promise guardrail (#4297, PR #4299).

Product code (fix first): apps/mobile/src/ui/chat/computer-scroll-pad.tsx:106 and :108. onAccessibilityAction calls onScroll(...), which returns Promise<boolean>, without handling it. A rejected scroll becomes an unhandled rejection, and a refusal is silently ignored. Decide the intended behaviour (report a refused scroll, or void it on purpose), then fix it.

Tests: message-bubble 10, follow-latest-gestures 5, activity-row 2, and one each in action-card-android, button-android, conversation-section-sheet, pairing-verification, segmented-native, workspace-controls-android. Un-awaited promises in tests can hide false passes.

Done when

Every finding is awaited or deliberately voided. Fix any test that then fails without weakening its assertion. pnpm lint:baseline removes the entries, and pnpm lint passes.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions