Skip to content

fix(mobile): act after a scroll or swipe only once the control stops moving - #1641

Open
kdy1 wants to merge 5 commits into
mainfrom
kdy1/mobile-gesture-rest-wait
Open

kdy1 wants to merge 5 commits into
mainfrom
kdy1/mobile-gesture-rest-wait

Conversation

@kdy1

@kdy1 kdy1 commented Nov 9, 2026 •

Copy link
Copy Markdown
Collaborator
  • After a scroll or swipe, a test acts on a control only once it stops moving. The gesture budget is the least wait, then the engine reads until two sightings of the control and its look-alikes agree, at most 4 s after the gesture. That read is also the relocation read, so a list that already sits still costs no extra read.
  • It replaces the re-read perf(mobile): skip the post-gesture stabilization wait for a test's swipe and scroll #1668 added (steadied), which compared the control's own bounds, 100 ms apart, for up to 2 s after the gesture and failed the action with OPERATION_TIMEOUT when its budget ran out first. This one compares the control with its look-alikes, 50 ms apart, runs up to 4 s, and goes ahead on the latest read when the budget runs out. perf(mobile): skip the post-gesture stabilization wait for a test's swipe and scroll #1668's opt-out of agent-device's own post-gesture settle (postGestureStabilization: false, feat(client): let callers opt out of post-gesture stabilization callstack/agent-device#4253, released in 0.21.37) stays as it is.
  • scroll can return while a fling still moves the list. On an iOS simulator with agent-device 0.21.36, 3 of 120 scrolls kept moving 1.66 to 1.84 s after it returned, and the benchmark's 1.5 s sleep sends the next tap about 1.7 s after. In CI the same shape shows as sticky chrome: accept below the fold (scrollUntilVisible, then tap): flaky in the final iOS report of 6 of the 101 PRs updated since Oct 15, the most of any test. These numbers are from 0.21.36, where agent-device ignored the opt-out and its own settle ran in full. Main pins 0.21.37 now, which also reworks agent-device's wait for a moving target before a press (feat(interaction): pre-dispatch admission owner for runtime press/click callstack/agent-device#4461). They were not repeated on it.
  • mobile({ transition }) also takes { default, gesture, launch } (new TransitionBudgets type), so the least wait after a gesture can differ from the wait after a tap. The wait fix(mobile): wait for transitions before screen swipes #1564 puts before a screen swipe follows the same kinds. A number still sets one wait for every action, and 0 still means no wait. The benchmark config keeps 1.5 s.
  • An action whose own timeout cannot fit another read goes ahead on the latest read instead of failing. Agent actions and the default and launch paths are unchanged.
  • Left out on purpose: new benchmark budgets, which need CI runs of their own.
flowchart LR
  A[scroll or swipe returns] --> B[sleep the gesture budget]
  B --> C[read the screen]
  C --> D{two sightings agree?}
  D -- no --> E{cap or timeout reached?}
  E -- no --> C
  D -- yes --> F[act on the control as read]
  E -- yes --> F
Loading
mobile({ platform: 'ios', transition: { gesture: 1_500 } }); // 500 ms after everything else

Verified

Ran it locally: yes

  • apps/mobile-benchmark through the built CLI on an iOS simulator and an Android emulator, @e2e-dev/mobile built from main and from this branch, both on the pinned agent-device 0.21.36 (--workers 1 --retries 0, one run at a time). Both builds carried a wrapper around the agent-device client that records every call (not in this PR).
  • iOS, a scratch test (below, not in this PR): 21 × scrollUntilVisible then tap on the huge virtualized list, --repeat-each 10, two runs per build in the order main, branch, branch, main (main was f6aba97, before fix(mobile): wait for transitions before screen swipes #1564 and perf(mobile): skip the post-gesture stabilization wait for a test's swipe and scroll #1668 landed). That is 840 scroll-then-tap pairs, and all 40 repeats pass. A tap counts as sent on a moving list when the last two snapshots before it disagree about where the rows sit (more than 1 px).
main this branch
scroll-then-tap pairs 420 420
taps sent after a last read that still saw the list moving 6 0
slow flings (the first two reads disagree) 6 10
scroll return to tap, median 1,727 ms 1,724 ms
scroll return to tap, slow flings (median, range) 1,881 ms, 1,757 to 1,886 2,154 ms, 2,020 to 2,482

Fisher exact, one-sided: p = 0.015. Five of main's six were in one run (the other main run had one), so without that run the contrast alone is 1/210 against 0/420. Slow flings are 16 of 840 scrolls (1.9%). On the branch each waited 2.0 to 2.5 s for two reads to agree, with 3 to 5 reads, and none reached the 4 s cap. The baseline is main before #1668, with agent-device's own settle in place. The table was not repeated against main with #1668's re-read, so it shows what the rest wait adds over that settle, not over steadied.

  • Full deterministic suite with this branch on agent-device 0.21.36: iOS 57 passed, 1 skipped (611 s); Android 57 passed, 1 skipped (379 s). The 1-minute load at start was 2.4 and 2.5 after waiting for it to drop below 3, with peaks of 6.3 and 7.3. The first scroll-then-tap run (main) had a load spike to 26.9 in its first two minutes from the cold simulator boot; only one of its five events fell in that window.
  • After the review fixes (a fill or clear takes the read that found the field at rest, so it costs no read of its own), the full suites again on agent-device 0.21.36 with the new head: iOS 57 passed, 1 skipped (611 s) and Android 57 passed, 1 skipped (384 s), 1-minute load at start 2.5 after waiting.
  • Rebased onto c74de8d and with the long-press fix: the full suites again on agent-device 0.21.36, iOS 57 passed, 1 skipped (690 s) and Android 57 passed, 1 skipped (466 s). Both run about 80 s longer than before, because fix(mobile): wait for transitions before screen swipes #1564 now waits the remaining budget before every screen swipe and the benchmark's budget is 1.5 s. The 1-minute load at start was 3.0 and 2.4 after the wait cap, with peaks of 9.1 and 6.3.
  • On the current head, with main (3ce6b58) merged in and agent-device 0.21.37 pinned since chore(mobile): bump agent-device to 0.21.37 #1735: the 618 mobile unit tests and pnpm check pass. The previous head (33388e3, the PR's four commits on f64e7db) passed CI with all four device jobs (iOS and Android, deterministic and agentic) green. Locally, the iOS deterministic suite on a simulator with 0.21.37 gave 57 passed, 1 skipped, 1 failed (672 s, 1-minute load 3.5 at start after the 4-minute wait cap). The failure is openLink opens the scenario a deep link names, new from test(mobile-benchmark): cover device.openLink with a real deep link #1805: the app installed on that simulator is the 11-03 build, whose bundle has no e2e-benchmark:// routing, so the link opens and the app ignores it. CI builds or repacks the app from each head's own source. Android was not run locally.

Not covered: this branch against main with #1668's re-read on 0.21.37, a swipe that starts a UIKit transition (the tree reports that screen's final frame at once, so only the gesture budget protects the tap, as before), and real devices.

The scratch test
test('fling taps: scroll to a row and tap it, twenty-one times', { timeout: 280_000 }, async ({ app, device, screen }) => {
  await openScenario({ app, device, screen }, 'Huge Virtualized List');
  for (let row = 24; row <= 504; row += 24) {
    const target = screen.getByTestId(`row-${row}`);
    await screen.scrollUntilVisible(target, { direction: 'down', timeout: 120_000 });
    await target.tap();
  }
});

🤖 Generated with Claude Code

@kdy1
kdy1 requested a review from okwasniewski as a code owner November 9, 2026 06:10
@github-actions github-actions Bot added the size:L Up to 499 changed lines, not counting tests, fixtures, or the lockfile label Nov 9, 2026

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 11 files

Reply with feedback, questions, or to request a fix.

View guided diff | Turn on auto-fix | Re-trigger cubic

Comment thread .changeset/mobile-gesture-rest-wait.md Resolved
Comment thread docs/reference/mobile.mdx Resolved
Comment thread packages/mobile/src/surface.ts Resolved
Comment thread packages/mobile/src/surface.ts Resolved
@github-actions

github-actions Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

🟢 e2e android agent: 20 passed

24 agent steps · 15 replayed from cache · 53 model calls · 349.8k tokens (85% cached) · $0.0209

All 20 tests in 1 file
Test Agent Time
🟢 tests-agent/scenarios.e2e.ts · 20 passed 24 steps · 53 calls 6m 23s
🟢 act completes Login Form 1 step 26.3s
🟢 act completes Infinite Scroll List 1 step 18.6s
🟢 act completes Modal Flow 1 step 10.9s
🟢 act completes Bottom Tabs 1 step 7.1s
🟢 act completes Text Input Variations 1 step 7.8s
🟢 act completes Broken Accessibility 2 steps · 5 calls 14.8s
🟢 act completes Vision Only 2 steps · 1 call 6.8s
🟢 act completes Gestures 1 step · 12 calls 29.9s
🟢 act completes Async States 1 step · 19 calls 42.7s
🟢 act completes Debounced Search 1 step 6.9s
🟢 act completes Huge Virtualized List 1 step 1m 49s
🟢 act completes Flattened Registration Form 2 steps · 1 call 8.0s
🟢 act completes Flattened Login 2 steps · 6 calls 15.0s
🟢 act completes Sticky Chrome Target 1 step 9.1s
🟢 act completes WebView Accessibility 1 step · 9 calls 27.7s
🟢 act completes Permission Prompt 1 step 6.6s
🟢 act completes Product Catalog 1 step 8.3s
🟢 act completes Error Recovery 1 step 8.8s
🟢 act completes Choice Controls 1 step 9.0s
🟢 act completes Sequential Onboarding 1 step 9.6s

Tested by e2e 0.23.1 · 6m 24s · android-emulator · run artifacts

@github-actions

github-actions Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

🟢 e2e ios: 56 passed, 1 skipped

All 57 tests in 7 files
Test Time
⏭️ tests/controls.e2e.ts · 23 passed, 1 skipped 3m 3s
🟢 control inventory › a label query resolves a labeled text field 16.3s
🟢 control inventory › a labeled field answers name, display value, value reads, fill, and clear 14.9s
🟢 control inventory › a placeholder query and attribute reads find the field 4.9s
🟢 control inventory › a secure field takes a fill and denies value reads 7.9s
🟢 control inventory › press sends a character and Enter through the soft keyboard 9.4s
🟢 control inventory › a field autofocuses on mount and focus() moves the focus 9.9s
🟢 control inventory › toBeFocused follows the focus 9.5s
🟢 control inventory › a switch checks, unchecks, and reports its state 10.0s
🟢 control inventory › checkbox and radio roles answer getByRole, and a checkbox toggles by tap 8.7s
🟢 control inventory › checkbox and radio roles check, uncheck, and report their state 12.8s
🟢 control inventory › a radio group reports the checked option 8.9s
🟢 control inventory › buttons report disabled, enabled, and a state that arrives later 7.6s
🟢 control inventory › a display: none element is absent rather than hidden, its visible twin attached 7.5s
🟢 control inventory › a header answers its accessible name 4.2s
🟢 control inventory › a tab row answers count, all, texts, filters, positions, and switching 6.2s
🟢 control inventory › a list answers counts, list-form text, reads, and boxes in order 6.4s
⏭️ control inventory › a row contains its texts (skipped: React Native flattens a plain View out of the accessibility tree on both platforms: XCTest and the Android helper report a View with a testID as a leaf beside its children, so filter({ has }) and a query scoped to it match nothing; only Sc…)
🟢 control inventory › a long press lands as one 8.4s
🟢 control inventory › pointer verbs land at the point asked for 9.8s
🟢 control inventory › an ambiguous locator fails at once 6.0s
🟢 control inventory › screenshot, restart, and clearState reopen the app on its home list 11.6s
🟢 refusals › verbs a device never declares are refused before the engine 2ms
🟢 refusals › keys the soft keyboard cannot send are refused by the engine 440ms
🟢 refusals › a missing locator fails as not found once its timeout passes 1.1s
🟢 tests/device-fixture.e2e.ts · 12 passed 2m 1s
🟢 device fixture › setAppearance flips the color scheme the app reads 20.8s
🟢 device fixture › setOrientation rotates the window the app measures 11.1s
🟢 device fixture › the clipboard reads back what was written 7.7s
🟢 device fixture › home leaves the app, openApp brings it back where it was 7.2s
🟢 device fixture › closeApp then openApp relaunches on the home list 7.9s
🟢 device fixture › closeApp leaves the next commands on the same device 13.2s
🟢 device fixture › foregroundApp after closeApp reports the closed session as APP_NOT_OPEN 6.0s
🟢 device fixture › openLink opens the scenario a deep link names 15.0s
🟢 device fixture › device.back pops the scenario 6.8s
🟢 device fixture › unstable_raw reaches the test session through the raw driver 4.4s
🟢 device fixture › setLocation and clearLocation change what the app reads 10.7s
🟢 device fixture › enrollBiometrics and setBiometrics answer a biometric prompt 9.9s
🟢 tests/device.e2e.ts · 3 passed 49.6s
🟢 sequential onboarding echoes the exact values 26.9s
🟢 onboarding rejects a malformed email before advancing 10.7s
🟢 dismissing the keyboard over choice controls leaves them as they were 12.0s
🟢 tests/flows-lists.e2e.ts · 7 passed 4m 3s
🟢 infinite scroll reaches the target item 34.6s
🟢 product catalog adds exactly two of the right variant 10.5s
🟢 gestures: long-press, then swipe left 9.3s
🟢 sticky chrome: accept below the fold, then continue 13.4s
🟢 async states: load, pull to refresh, claim through the toast 13.1s
🟢 huge virtualized list reaches row 512 2m 29s
🟢 web view coupon form applies the code shown on the page 13.7s
🟢 tests/flows.e2e.ts · 7 passed 1m 11s
🟢 text inputs unlock the submit button 12.7s
🟢 filled text inputs report their values 10.7s
🟢 modal flow confirms through the native alert 10.5s
🟢 bottom tabs act inside the last tab 8.0s
🟢 error recovery retries, then confirms the delete 10.3s
🟢 choice controls place the exact order 7.6s
🟢 debounced search selects the target once results arrive 11.3s
🟢 tests/login-form.e2e.ts · 3 passed 45.7s
🟢 login form › rejects a malformed email 12.7s
🟢 login form › rejects an unknown account 13.1s
🟢 login form › signs in and logs out 19.9s
🟢 tests/smoke.e2e.ts · 1 passed 9.0s
🟢 home lists the scenarios and opens one 9.0s

Tested by e2e 0.23.1 · 6m 54s · ios-simulator · run artifacts

@github-actions

github-actions Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

🟢 e2e android: 58 passed, 1 skipped

All 59 tests in 7 files
Test Time
⏭️ tests/controls.e2e.ts · 24 passed, 1 skipped 2m 30s
🟢 control inventory › a label query resolves a labeled text field 18.8s
🟢 control inventory › a labeled field answers name, display value, value reads, fill, and clear 10.9s
🟢 control inventory › a placeholder query and attribute reads find the field 4.9s
🟢 control inventory › a secure field takes a fill and denies value reads 5.5s
🟢 control inventory › press sends a character and Enter through the soft keyboard 6.8s
🟢 control inventory › a field autofocuses on mount and focus() moves the focus 8.0s
🟢 control inventory › toBeFocused follows the focus 7.5s
🟢 control inventory › a switch checks, unchecks, and reports its state 8.0s
🟢 control inventory › checkbox and radio roles answer getByRole, and a checkbox toggles by tap 6.9s
🟢 control inventory › checkbox and radio roles check, uncheck, and report their state 10.0s
🟢 control inventory › a tab role answers getByRole 3.6s
🟢 control inventory › a radio group reports the checked option 7.2s
🟢 control inventory › buttons report disabled, enabled, and a state that arrives later 6.6s
🟢 control inventory › a display: none element is absent rather than hidden, its visible twin attached 6.1s
🟢 control inventory › a header answers its accessible name 3.2s
🟢 control inventory › a tab row answers count, all, texts, filters, positions, and switching 5.0s
🟢 control inventory › a list answers counts, list-form text, reads, and boxes in order 4.8s
⏭️ control inventory › a row contains its texts (skipped: React Native flattens a plain View out of the accessibility tree on both platforms: XCTest and the Android helper report a View with a testID as a leaf beside its children, so filter({ has }) and a query scoped to it match nothing; only Sc…)
🟢 control inventory › a long press lands as one 6.7s
🟢 control inventory › a double tap lands inside the 300 ms window 6.1s
🟢 control inventory › an ambiguous locator fails at once 4.6s
🟢 control inventory › screenshot, restart, and clearState reopen the app on its home list 6.0s
🟢 refusals › verbs a device never declares are refused before the engine 3ms
🟢 refusals › keys the soft keyboard cannot send are refused by the engine 1.6s
🟢 refusals › a missing locator fails as not found once its timeout passes 1.1s
🟢 tests/device-fixture.e2e.ts · 11 passed 1m 11s
🟢 device fixture › setOrientation rotates the window the app measures 5.0s
🟢 device fixture › home leaves the app, openApp brings it back where it was 4.2s
🟢 device fixture › foregroundApp sees the home screen after home() 3.3s
🟢 device fixture › closeApp then openApp relaunches on the home list 5.3s
🟢 device fixture › closeApp leaves the next commands on the same device 5.3s
🟢 device fixture › foregroundApp after closeApp reports the closed session as APP_NOT_OPEN 3.9s
🟢 device fixture › openLink opens the scenario a deep link names 4.1s
🟢 device fixture › device.back pops the scenario 4.0s
🟢 device fixture › unstable_raw reaches the test session through the raw driver 3.4s
🟢 device fixture › setNetwork and setAirplaneMode change what the app sees 11.8s
🟢 device fixture › setLocation and clearLocation change what the app reads 20.3s
🟢 tests/device.e2e.ts · 5 passed 36.1s
🟢 permission prompt › allowing the system dialog enables the microphone 5.0s
🟢 permission prompt › a denied prompt recovers once the permission is granted outside 10.8s
🟢 sequential onboarding echoes the exact values 9.2s
🟢 onboarding rejects a malformed email before advancing 5.0s
🟢 dismissing the keyboard over choice controls leaves them as they were 6.1s
🟢 tests/flows-lists.e2e.ts · 7 passed 3m 0s
🟢 infinite scroll reaches the target item 27.0s
🟢 product catalog adds exactly two of the right variant 8.2s
🟢 gestures: long-press, then swipe left 7.5s
🟢 gestures: double-tap completes the flow 8.8s
🟢 sticky chrome: accept below the fold, then continue 10.2s
🟢 async states: load, pull to refresh, claim through the toast 11.1s
🟢 huge virtualized list reaches row 512 1m 48s
🟢 tests/flows.e2e.ts · 7 passed 45.8s
🟢 text inputs unlock the submit button 5.5s
🟢 filled text inputs report their values 5.0s
🟢 modal flow confirms through the native alert 8.2s
🟢 bottom tabs act inside the last tab 5.9s
🟢 error recovery retries, then confirms the delete 7.9s
🟢 choice controls place the exact order 5.3s
🟢 debounced search selects the target once results arrive 8.0s
🟢 tests/login-form.e2e.ts · 3 passed 25.3s
🟢 login form › rejects a malformed email 6.8s
🟢 login form › rejects an unknown account 6.8s
🟢 login form › signs in and logs out 11.7s
🟢 tests/smoke.e2e.ts · 1 passed 4.6s
🟢 home lists the scenarios and opens one 4.6s

Tested by e2e 0.23.1 · 8m 33s · android-emulator · run artifacts

@github-actions

github-actions Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

🟢 e2e ios agent: 21 passed, 1 skipped

25 agent steps · 12 replayed from cache · 53 model calls · 325.0k tokens (81% cached) · $0.0226

All 22 tests in 1 file
Test Agent Time
⏭️ tests-agent/scenarios.e2e.ts · 21 passed, 1 skipped 25 steps · 53 calls 8m 14s
🟢 act completes Login Form 1 step 39.6s
🟢 act completes Infinite Scroll List 1 step 39.3s
🟢 act completes Modal Flow 1 step 10.0s
🟢 act completes Bottom Tabs 1 step 7.4s
🟢 act completes Text Input Variations 1 step 12.7s
🟢 act completes Broken Accessibility 2 steps · 5 calls 23.5s
🟢 act completes Vision Only 2 steps · 6 calls 28.8s
🟢 act completes Gestures 1 step · 8 calls 38.2s
🟢 act completes Async States 1 step · 7 calls 24.5s
🟢 act completes Debounced Search 1 step · 1 call 28.4s
🟢 act completes Flattened Registration Form 2 steps · 1 call 25.9s
🟢 act completes Flattened Login 2 steps · 10 calls 53.8s
🟢 act completes Sticky Chrome Target 1 step 12.7s
🟢 act completes WebView Accessibility 1 step 11.7s
🟢 act completes Permission Prompt 1 step 10.9s
🟢 act completes Photo Picker 1 step · 2 calls 31.6s
🟢 act completes Product Catalog 1 step 10.0s
🟢 act completes Error Recovery 1 step 10.1s
🟢 act completes Choice Controls 1 step · 6 calls 36.0s
🟢 act completes Stripe PaymentSheet 1 step · 7 calls 28.6s
🟢 act completes Apple Pay 1 step 10.2s
⏭️ act completes Apple Pay Billing Address (skipped: the CI simulator's Apple Pay sheet skips the billing-address step, so the scenario cannot be completed there)

Tested by e2e 0.23.1 · 8m 14s · ios-simulator · run artifacts

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

0 issues found across 6 files (changes from recent commits).

View guided diff | Turn on auto-fix | Re-trigger cubic

@kdy1

kdy1 commented Nov 9, 2026

Copy link
Copy Markdown
Collaborator Author

[claude-sonnet-5-5] responding on behalf of kdy1

Left for the human:

  • packages/acp/tests/executor.test.ts, "retries the session directory removal after the agent exits when the first try fails" (added in fix(acp): retry a failed session directory removal after the agent exits #1626), failed test (22) and test (22.22.3) on this PR with kill ESRCH and passed on rerun. It asserts the agent is still alive 500 ms after the step ends, which depends on timing. This PR does not touch packages/acp, so I left it alone; it needs its own change.

Comment thread packages/mobile/src/surface.ts Resolved
@kdy1
kdy1 force-pushed the kdy1/mobile-gesture-rest-wait branch from 1240b61 to 3789edd Compare November 10, 2026 03:46
@kdy1
kdy1 force-pushed the kdy1/mobile-gesture-rest-wait branch from 3789edd to c255a6c Compare November 10, 2026 11:54
@kdy1
kdy1 force-pushed the kdy1/mobile-gesture-rest-wait branch from c255a6c to de86937 Compare November 13, 2026 08:57
@github-actions github-actions Bot added size:XL Up to 999 changed lines, not counting tests, fixtures, or the lockfile and removed Ready for Human Review size:L Up to 499 changed lines, not counting tests, fixtures, or the lockfile labels Nov 13, 2026
kdy1 and others added 4 commits November 14, 2026 14:15
`mobile({ transition })` takes a number, the same wait after every action, or
`{ default, gesture, launch }` (new exported type `TransitionBudgets`). The
engine records the kind of the last action: `gesture` for a root scroll, node
swipe, or coordinate swipeTo, `launch` after a launch, relaunch, close, or
openLink. A scroll can return while its content moves and needs a longer wait.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…moving

After a scroll or swipe the `gesture` budget is only the least wait. The engine
then reads until two sightings of the control and its look-alikes agree, at most
4 s after the gesture, and that read is also the relocation. `scroll` can return
while a fling still moves the list, and a tap aimed at a moving row lands on the
row passing under it. A budget of 0 is still no wait, and an action whose timeout
cannot fit another read goes ahead on the latest one. The default and launch
paths and the agent are unchanged.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
A fill or clear after a scroll or swipe now takes the read that found the field
at rest as its re-read, so it costs no read of its own and a short timeout does
not fail it where a tap goes ahead on the latest read. The checks `relocated`
makes for an input move into one method both reads use. The changeset and docs
name the cap (4 s, or the `gesture` budget when that is larger) and the timeout
exit, and the skill reference lists the link case of `launch`.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The rest wait stopped reading once the action's timeout could not fit another
read and its pause, but a long press also needs its hold left, or
`InputBudget.send` refuses it unsent. The hold is now part of that exit
condition, so a long press after a scroll goes ahead on the latest read.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@kdy1
kdy1 force-pushed the kdy1/mobile-gesture-rest-wait branch from de86937 to 33388e3 Compare November 14, 2026 05:17
…est-wait

Resolves the conflict in packages/mobile/src/surface.ts: this branch's
per-kind `transitionWaits` replaces `transitionMs`, beside main's new
`interactiveSnapshots` and `hideTouches` fields and their constructor
assignments.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

This branch has not been deployed

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

Labels

size:XL Up to 999 changed lines, not counting tests, fixtures, or the lockfile

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants