Skip to content

qa: a dropped phone stops a run, and taps land on a zoomed page - #2409

Merged
lalalune merged 1 commit into
developfrom
fix/voice-qa-closed-socket
Dec 4, 2026
Merged

lalalune merged 1 commit into
developfrom
fix/voice-qa-closed-socket

Conversation

@lalalune

@lalalune lalalune commented Dec 4, 2026 •

Copy link
Copy Markdown
Collaborator

Why

The owner's goal is to prove on the Pixel that Alpha no longer hears its own reply ("sure, taking you home") as the owner's next message, and that email drafts show only under their reply. The acoustic voice QA that proves this failed twice on the Pixel before running a single trial:

  1. The Pixel dropped off USB for a moment, and the WebView debugging socket closed. Every later page call went into a closed socket. WHATWG WebSocket.send drops data there without throwing, so the calls never settled. Node exited 13 ("unsettled top-level await") and no report was written.
  2. Alpha's page was pinch-zoomed by ×1.038 (visualViewport.scale). Tap points were getBoundingClientRect × devicePixelRatio, so taps on Talk landed about 85 px above and left of it. Talk never started, and the run stopped with "Talk shows nothing" three times.

What

  • call in packages/cli/src/commands/qa/device-page.ts now rejects with "The WebView debugging socket closed." when the socket is not open, as the close listener already does for calls in flight.
  • Page controls map to screen pixels through the visual viewport: (layout − visualViewport.offset) × visualViewport.scale × devicePixelRatio.

Checked

  • tsc --noEmit and eslint on the CLI pass.
  • On the zoomed Pixel, the new mapping puts Talk at (996, 2317), which is the button seen on screen. The old mapping gave (959, 2232).
  • Not covered by a test: both failures need a real WebView on a phone.

… dropped phone stops a QA run instead of hanging it
@lalalune
lalalune temporarily deployed to turbo-cache-read December 4, 2026 21:38 — with GitHub Actions Inactive
@lalalune
lalalune merged commit d4cefb8 into develop Dec 4, 2026
3 of 7 checks passed
@lalalune lalalune changed the title qa: a dropped phone stops a run instead of hanging it qa: a dropped phone stops a run, and taps land on a zoomed page Dec 4, 2026

This branch is being deployed

1 queued deployment
turbo-cache-read — cfb072ca Deployed Dec 4, 2026 by lalalune via selftest-c #1656
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant