Repository navigation
feat(scroll): add scroll refresh for pull-to-refresh - #4770
Conversation
Size Report
Startup median (7 runs, lower is better):
|
|
Thanks for the PR. At 354c3e9 the head does not typecheck, so it cannot merge yet, and there are two behavior defects and one docs problem to fix first. The Android hold branch in input-actions.ts spreads the output of The touch gate in scroll-runtime.ts checks In metadata.ts, the new sentence "The top-edge mode commits re-fetch, never at-edge." does not name Not blocking, and you can take or leave these: the new test at scroll-runtime.test.ts:1108 fails typecheck ( One question on size: the 400 ms hold ( On evidence, the iOS and Android results in the PR body are author-reported and ran on a head that does not typecheck. After the Android fix, please re-run the Android emulator refresh lab at the top: CI is red mainly because of this PR: the type errors above, oxlint, max-lines, the two new jscpd clones and the complexity findings. Smoke and Coverage were still pending. There are no conflicts. Before merge, fix the Android type error through the gesture planner, admit iPad through a declared touch fact, rewrite the MCP sentence, get CI green, then re-run Android and iPad live. |
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Apex Sentinel: 6 new findings on e655a34. The verdict and the full list are in the summary comment.
|
Thanks for the update. At e655a34 the earlier typecheck, lint, max-lines, jscpd and complexity failures are fixed, and 20 checks pass. Four items from the earlier review still stand, so this is not ready to merge yet. There are no conflicts. Refresh admission still checks The MCP text at metadata.ts:81 says 'The top-edge mode commits re-fetch, never at-edge.' It never names refresh. 'Top-edge mode' already means
There is no iPad live run, and the iPad fix is not in this head. The Android x5 result in the PR body is author-reported, with no raw output, and it will not cover the code that lands once the hold moves. After the two changes above, on an iPad simulator at the Refresh lab top, please run Could the change be smaller? Keep the daemon refresh plan: fresh top-edge read, typed refusals, never at-edge, and the platform touch fact. Compute the top-anchored pull endpoints once in TS through |
|
Addressed the review of e655a34 in 489e22e: the ms/s hold bug in the fallback drag path is fixed (holdMs / 1000), the Android hold now appends one stationary sample to the interpolated pan instead of replacing it, refresh --pixels is clamped into the 320-520px band, an unreadable capture refuses with scroll_refresh_capture_unreadable rather than no_container, and the runner converts scrollPullContainer into plan-frame space (iPad split view), pinned by a unit test. Re-ran the labs on 489e22e: iOS 3/3 (counter 36-39), Android 3/3 (counter 21-24, holdMs 400, pixels 520), all refresh:true and never at-edge. On the hold question: Step 0's 5/5 no-hold runs were the fling/pan release paths; scroll refresh uses the controlled-release path, which lifts the contact at the last sample, so the parked 400ms hold is what commits the control there - kept, and the wire field stays. |
|
Thanks for the update. This is the third round where the admission, hold-ownership and MCP-text items below are unchanged, and the size question has no reply yet, so please answer that one first. At 489e22e the Swift hold unit, the trajectory sample handling, the unreadable-capture refusal and the --pixels clamp from the earlier review (#4770 (comment)) are fixed. Four items remain, so this is not ready to merge. The branch has merge conflicts with main. 20 checks pass. After the rebase, CI and the live evidence must be re-run on the new head. packages/daemon/src/execution/scroll-runtime.ts:162 is unchanged from the earlier reviews. The inline check packages/platform-android/src/input-actions.ts:430: withHoldBeforeRelease still builds a destination hold outside the contracts planner. It appends a stationary sample at durationMs + holdMs, which is the destination-hold branch of withContactHolds (gesture-plan.ts:185-207), and buildDragGesturePlan already exposes it as destinationHoldMs. The new packages/command-surface/src/interaction/metadata.ts:81: 'The drag-at-top mode commits re-fetch and never reports at-edge.' still does not name packages/daemon/src/execution/scroll-runtime.ts:159: there is no iPad run, and iPad is still refused at this head. The Android x3 and iOS x3 results at 489e22e are author-reported, with no raw output, and the Android hold code changed in this delta and will change again. Once the platform admission and the hold ownership are settled, please run Whether scrollPullContainer and the runner planFrame share a screen-coordinate space on a split-view iPad is not shown yet; the unit test pins only the subtraction, so the iPad run should cover split view. Not blocking: index.ts:608 says 'clamped into the measured-safe 320-520px band' but omits that buildPullRefreshGesturePlan also bounds travel by the container height, so you can append 'and bounded by the container height' or leave it. Could the change be smaller? Keep the daemon refresh plan: the fresh top-edge read, the typed refusals, never at-edge, and a platform-declared touch-surface fact admitted through plan.use. Compute the top-anchored pull endpoints once in TS (buildPullRefreshGesturePlan, sharing keepSwipeInContainer's banding). Then dispatch through the existing pan or drag planner with a planner-owned destination hold, or with no hold if a holdMs 0 run shows it is not needed. That would remove withHoldBeforeRelease and its guards, the Swift pull port and parity fixtures, scrollPullContainer and scrollHoldMs, runnerContainerInPlanFrame, and the ObjC hold plumbing. The production delta is 710 net lines, over the 700 threshold. What would have to change first is a planner-owned destination hold on the pan path (aligned with #4767) or a holdMs 0 run that removes the hold, plus the touch-scroll-surface declaration on the platform runtimes. Of the open inline threads, four threads are fixed and can be resolved: the Swift hold division (#4770 (comment)), the trajectory samples are kept with the hold sample appended (#4770 (comment), the planner-ownership question stays under the hold finding above), the unreadable-capture refusal is added with a test (#4770 (comment)), and the explicit --pixels clamp is added with a test (#4770 (comment)). Two threads still apply: the MCP text at metadata.ts:81 never names refresh (#4770 (comment)) and it still says viewport axis (#4770 (comment)). |
holdMs 0 experiment (step 1 of the size question)Same slow pull (pixels clamped into the 320-520px band, durationMs 1200, controlled release) with holdMs 0 — Result: iOS 5/5, Android 5/5 fired with no hold (counter 39→44 on iOS, 25→30 on Android). iOS raw output (iPhone 17 Pro, BC54AC11-CD86-4C10-8C4E-5101C773FFEB, session hold0)=== run 1 ===
{
"success": true,
"data": {
"direction": "up",
"refresh": true,
"pixels": 320,
"x1": 201,
"y1": 172,
"x2": 201,
"y2": 492,
"referenceWidth": 402,
"referenceHeight": 874,
"durationMs": 1200,
"movement": "moved",
"message": "Pulled to refresh at the top edge; the surface changed"
}
}
=== run 2 ===
{
"success": true,
"data": {
"direction": "up",
"refresh": true,
"pixels": 320,
"x1": 201,
"y1": 172,
"x2": 201,
"y2": 492,
"referenceWidth": 402,
"referenceHeight": 874,
"durationMs": 1200,
"movement": "unobserved",
"message": "Pulled to refresh at the top edge"
}
}
=== run 3 ===
{
"success": true,
"data": {
"direction": "up",
"refresh": true,
"pixels": 320,
"x1": 201,
"y1": 172,
"x2": 201,
"y2": 492,
"referenceWidth": 402,
"referenceHeight": 874,
"durationMs": 1200,
"movement": "unobserved",
"message": "Pulled to refresh at the top edge"
}
}
=== run 4 ===
{
"success": true,
"data": {
"direction": "up",
"refresh": true,
"pixels": 320,
"x1": 201,
"y1": 172,
"x2": 201,
"y2": 492,
"referenceWidth": 402,
"referenceHeight": 874,
"durationMs": 1200,
"movement": "unobserved",
"message": "Pulled to refresh at the top edge"
}
}
=== run 5 ===
{
"success": true,
"data": {
"direction": "up",
"refresh": true,
"pixels": 320,
"x1": 201,
"y1": 172,
"x2": 201,
"y2": 492,
"referenceWidth": 402,
"referenceHeight": 874,
"durationMs": 1200,
"movement": "unobserved",
"message": "Pulled to refresh at the top edge"
}
}
=== counter after ===
@e5 [text] "Refreshed 44 times"Android raw output (emulator-5556, session hold0)=== run 1 ===
{
"success": true,
"data": {
"direction": "up",
"refresh": true,
"pixels": 520,
"x1": 540,
"y1": 459,
"x2": 540,
"y2": 979,
"referenceWidth": 1080,
"referenceHeight": 2400,
"durationMs": 1200,
"backend": "android-helper",
"helperVersion": "0.21.40-dev",
"installReason": "current",
"helperKind": "swipe",
"helperApiVersion": "2",
"injectedEvents": 77,
"elapsedMs": 1454,
"helperTransport": "persistent-session",
"movement": "moved",
"message": "Pulled to refresh at the top edge; the surface changed"
}
}
=== run 2 ===
{
"success": true,
"data": {
"direction": "up",
"refresh": true,
"pixels": 520,
"x1": 540,
"y1": 459,
"x2": 540,
"y2": 979,
"referenceWidth": 1080,
"referenceHeight": 2400,
"durationMs": 1200,
"backend": "android-helper",
"helperVersion": "0.21.40-dev",
"installReason": "current",
"helperKind": "swipe",
"helperApiVersion": "2",
"injectedEvents": 77,
"elapsedMs": 1304,
"helperTransport": "persistent-session",
"movement": "unobserved",
"message": "Pulled to refresh at the top edge"
}
}
=== run 3 ===
{
"success": true,
"data": {
"direction": "up",
"refresh": true,
"pixels": 520,
"x1": 540,
"y1": 459,
"x2": 540,
"y2": 979,
"referenceWidth": 1080,
"referenceHeight": 2400,
"durationMs": 1200,
"backend": "android-helper",
"helperVersion": "0.21.40-dev",
"installReason": "current",
"helperKind": "swipe",
"helperApiVersion": "2",
"injectedEvents": 77,
"elapsedMs": 1339,
"helperTransport": "persistent-session",
"movement": "unobserved",
"message": "Pulled to refresh at the top edge"
}
}
=== run 4 ===
{
"success": true,
"data": {
"direction": "up",
"refresh": true,
"pixels": 520,
"x1": 540,
"y1": 459,
"x2": 540,
"y2": 979,
"referenceWidth": 1080,
"referenceHeight": 2400,
"durationMs": 1200,
"backend": "android-helper",
"helperVersion": "0.21.40-dev",
"installReason": "current",
"helperKind": "swipe",
"helperApiVersion": "2",
"injectedEvents": 77,
"elapsedMs": 2605,
"helperTransport": "persistent-session",
"movement": "unobserved",
"message": "Pulled to refresh at the top edge"
}
}
=== run 5 ===
{
"success": true,
"data": {
"direction": "up",
"refresh": true,
"pixels": 520,
"x1": 540,
"y1": 459,
"x2": 540,
"y2": 979,
"referenceWidth": 1080,
"referenceHeight": 2400,
"durationMs": 1200,
"backend": "android-helper",
"helperVersion": "0.21.40-dev",
"installReason": "current",
"helperKind": "swipe",
"helperApiVersion": "2",
"injectedEvents": 77,
"elapsedMs": 4694,
"helperTransport": "persistent-session",
"movement": "unobserved",
"message": "Pulled to refresh at the top edge"
}
}
=== counter after ===
@e34 [text] "Refreshed 30 times"Conclusion: the pull commits on the controlled-release path without a parked hold on both platforms, so the hold ( |
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Apex Sentinel: 3 new findings and 1 moved to a new line on 489e22e. The verdict and the full list are in the summary comment.
scroll refresh dispatches one slow downward pull anchored just inside the top of the resolved vertical scroll container, holds briefly before release so the refresh control commits, and finishes with the existing post-gesture stabilization. It reads the top edge from a fresh capture (the stored tree is stale after any earlier gesture), anchors at the innermost nested scroller, refuses with typed reasons scroll_refresh_not_at_top / scroll_refresh_no_container / scroll_refresh_unsupported_platform, and never reports movement at-edge for this mode. 'refresh' joins SCROLL_INPUT_DIRECTIONS, the CLI positional, the MCP enum, scroll's search hint and help. Adds a Refresh lab to the test app. Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
The runner-requests contract fixture gains the pull request carrying scrollHoldMs and scrollPullContainer, so every new Command field has a production request (testEveryRunnerRequestFieldHasAProductionRequest). Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
- pin the refresh-pull runner request in contracts/fixtures/runner-requests.json (new Command fields need a production request) - split the refresh tests into scroll-runtime-refresh.test.ts (max-lines cap) - extract androidScrollLane/withHoldBeforeRelease and formatRefreshEdgeMessage/ edgeSideWord so fallow complexity thresholds hold - share the parity-table assertion helper in the Swift XCTest (native-dupes) - lint the Refresh lab screen (String keyExtractor, prop order) Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
…est export The shared alloc/init-path block in RunnerSynthesizedGesture.m was a new native clone; it now lives in RunnerNewPointerPath. scroll-runtime.test.ts no longer exports bindings, which only it uses (fallow dead code). Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
- RunnerTests+ScrollDragExecution.swift: holdMs is milliseconds, so the fallback holdDuration now converts it to seconds (was ~400s) - Android withHoldBeforeRelease keeps the pan's interpolated samples and appends one stationary sample for the hold instead of replacing them with a straight line - refresh --pixels is clamped into the measured-safe 320-520px band like the default fraction; an unreadable capture refuses with scroll_refresh_capture_unreadable instead of no_container - the runner converts scrollPullContainer from screen coordinates into the plan frame's space, so a non-zero window origin (iPad split view) no longer offsets the pull; pinned by a unit test - MCP scroll description names the drag-at-top mode and its never-at-edge movement report Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
… pan planner The holdMs-0 run (5/5 on iOS and Android, posted on the PR) shows the pull commits on the controlled-release path with no parked hold, so the hold is dropped entirely: DEFAULT_REFRESH_HOLD_MS, the scrollHoldMs/scrollPullContainer wire fields, the Swift pull port, and the ObjC/Android hold plumbing are deleted. The daemon computes the top-anchored pull once in TypeScript (buildPullRefreshGesturePlan, now in viewport space) and dispatches it as one slow pan through the bound performGesturePlan operation. Refresh admission moves off the inline appleOs/android check onto a declared touchScrollSurface runtime-operation fact: platform-apple admits it on iOS and iPadOS, platform-android on phone/tablet (not TV), and every other owner refuses it, admitted through the refresh plan's use. The MCP description names refresh with the reviewed sentence and states the container-height amount. Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
Addresses the review round on 489e22e at the owning layer. `scroll refresh 0` reached the pull planner, which runs after the pre-pull capture, so a bad input answered as a post-capture COMMAND_FAILED. The same non-positive rule now holds at the input parse, before admission or any device work. The refresh use mixes one capability fact with two execution operations, so admission names the cell that failed: the touch-scroll fact, the capture, or the gesture plan. A leaf that reads the screen but synthesizes no gesture plan was told it lacked snapshot support. A container shorter than the measured-safe floor shortens the pull below the travel that commits a refresh, so the pull is refused with scroll_refresh_container_too_short rather than reported as a refresh the gesture provably cannot trigger. The runner computes no pull lane, so the pull planner's vectors move from the cross-language parity table to the file that owns the planner's tests, and the dead Swift inset helper goes with them. Co-Authored-By: Apex <noreply@callstack.com>
489e22e to
fb4dbc8
Compare
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Apex Sentinel: 2 new findings on fb4dbc8. The verdict and the full list are in the summary comment.
|
Thanks, this round answers the size question: the hold is gone and the pull now dispatches through the existing gesture-plan pan, which brings production code to about 665 net lines. The earlier findings at 489e22e are mostly fixed: the hold is gone from the runner, refresh now refuses empty captures, short containers and non-positive amounts, and --pixels is clamped into 320-520. One finding remains, and CI is green (22 checks, 0 not passing) at fb4dbc8. At fb4dbc8 the pull no longer uses the runner scroll path that was measured. scroll-runtime.ts:436 sends a linear-sample pan from buildGesturePlan through performGesturePlan. Every posted run, including the holdMs-0 run, used the old route (the Android output shows helperKind: swipe and the scroll report shape). So it is unproven that the pull commits a refresh on the shipped route. A constant-velocity pan may classify differently from the cubic ease-out release that was measured. The touchScrollSurface admission that newly allows iPadOS, and the split-view coordinate mapping, also have no live confirmation. Please build fb4dbc8 and run Not blocking, take or leave: metadata.ts:82 still ties the 0.8 cap to refresh, but refresh clamps into 320-520px, so the clause could read "(for refresh, the container-height fraction, clamped into 320-520px)"; gesture-facts.ts:101 re-derives the iOS/iPadOS check that isHandheldAppleDevice already owns; and the new CaptureCapableScrollRuntime type at scroll-runtime.ts:568 sits between directionalMovementClaim and its JSDoc. Of the other open threads, two minor notes still apply (#4770 (comment) and #4770 (comment)). These are fixed at head and can be resolved: #4770 (comment), #4770 (comment), #4770 (comment), #4770 (comment), #4770 (comment), #4770 (comment), #4770 (comment), #4770 (comment), #4770 (comment). |
…tainer The Apple touch-scroll fact re-derived the iOS/iPadOS rule isHandheldAppleDevice already owns, so it reads that owner now. The refresh pull resolved the outermost scroller, then re-read the tree at that container's centre to narrow to the inner one. A screen can also carry a scroller that only overlaps the centre without containing it — an iOS dev client leaves its launcher list in the accessibility tree over the app's own — and the narrowing accepted it, so the pull was planned onto that list and the app's refresh control never saw the gesture. The narrowing may now only narrow the container it started from. The MCP scroll description tied the 0.8 fraction cap to refresh while refresh clamps its pull into 320-520px, and the CaptureCapableScrollRuntime type sat between directionalMovementClaim and its own JSDoc. Co-Authored-By: Apex <noreply@callstack.com>
The capture branch of refreshAdmissionRefusal answered "requires snapshot support" with no typed reason, while the two neighbouring branches of the same refusal both carried one, so an agent branching on details.reason had to text-match that one case. It reports scroll_refresh_unsupported_platform now. The bound touchScrollSurface operation resolved undefined, so a call reported success for device work it never did; the fact is admission-only, so the binding refuses the call by name through the runtime-contract error the contract layer already owns. Co-Authored-By: Apex <noreply@callstack.com>
|
Thanks for the update. The earlier gaps are fixed at efea6ce: Android refresh now dispatches the planner pan through performGesturePlan, empty captures and short containers refuse with typed reasons, explicit --pixels is clamped, and the hold is removed. One blocker remains, and it is live evidence. No live run covers the route this PR now ships. performRefreshPull sends a linear-sample pan from buildPullRefreshGesturePlan through performGesturePlan. Every posted run predates that: the Android output shows helperKind: swipe, and the iOS runs used the runner scroll path. The delta also changes which container the pull anchors on, and iPadOS admission and split-view mapping have never run live. So nobody has shown that this pan commits a refresh, that iPadOS is admitted, or that the coordinates land inside a split-view window. An agent could get refresh: true for a pull that only rubber-bands. Please build efea6ce and run Not blocking, and you can take or leave it: the narrowing guard at scroll-runtime.ts:536 uses rectContains, so a nested list that runs past the outer scroller or differs by sub-pixel noise (iOS rects like 163.3333282470703) silently falls back to the outer scroller and brings back the header-anchored pull. The rule would be that the pull container is the innermost scroller that descends from the resolved container, found by walking the ancestry chain instead of comparing rects. CI is still pending: all 18 checks were queued or in progress, and no failure has been reported. No conflicts are known. Before merge, the live runs above must be posted. Of the open inline threads, the Minor items that do not apply at this head can be resolved: r4632606377 (Android refresh now dispatches the planner pan), r4632606399 (metadata names refresh and the never-at-edge rule), r4632606408 (empty capture refuses with scroll_refresh_capture_unreadable), r4632606423 (--pixels is clamped), r4632606450 (metadata states the container-height fraction), r4633028789 (the hold was removed from the diff), r4633028806 (Android hold branch is gone), r4633028816 (reported pixels come from the pan plan), r4633028859 (short container refuses with scroll_refresh_container_too_short), r4634593309 (touchScrollSurface throws runtime-contract-invalid), and r4634593323 (capture branch carries scroll_refresh_unsupported_platform). |
The refresh pull resolved the outermost scroller, then narrowed to the innermost one at that container's centre. The guard compared rects, so a nested list reporting a content frame taller than its parent's clip, or the sub-pixel noise an iOS rect carries (163.3333282470703), failed it and put the pull back on the header, where a refresh control never sees the gesture. Membership is the tree: the edge read now reports the position of the container it selected, and the narrowing accepts a candidate only when its own parentIndex chain passes through that container. An unrelated scroller that merely overlaps the centre without descending from it is still refused. Co-Authored-By: Apex <noreply@callstack.com>
This comment has been minimized.
This comment has been minimized.
The pull goes through performGesturePlan, but the report only carried what the owner echoed back. An Apple runner answers with its own execution profile; the Android helper names the lowered single-contact form it synthesized, so the refresh report said helperKind: swipe and a reader could not tell the planner pan from the retired directional swipe without counting injected events. The refresh report now names the profile of the plan the daemon dispatched, so the route is readable from one field on every platform and the owner's own fields still ride along underneath it. Co-Authored-By: Apex <noreply@callstack.com>
Live evidence at head 545d39f (raw output)Built at this head: Every run shows iPad Air 11-inch (M4)
|
|
Answering the live-evidence round item by item, at head 1. Build at the head, daemon restarted. 2 + 3. The nine runs, raw output. In this comment, with the container frame printed before each set and the lab counter read around every pull:
Device change. The route, proved from the report. 4. Hold. The body no longer mentions it; Optional item, applied ( 11 inline threads the round listed as not applying: all resolved. Gates. Full unit suite 2089 files / 20173 tests pass; |
This comment has been minimized.
This comment has been minimized.
Co-Authored-By: Apex <noreply@callstack.com>
This comment has been minimized.
This comment has been minimized.
|
Fixed in c19cfce, and the 11 flagged threads are resolved. The fix went into capture-kit, per your design question. Yes — the analyzer already resolves the selected container and walks its ancestry, so it now answers both tree questions and the daemon plans only the gesture. Tests — your replay, exact numbers: outer
Both fail without the fix (they do not merely reorder), and three capture-kit tests pin Live re-check (iPhone 17 Pro, Refresh lab, head Full unit suite at this head: 2090 files / 20178 tests pass; |
|
This PR is ready. At c19cfce the clipped-band problem from the earlier review (#4770 (comment)) is fixed, and the new regression tests would fail on 545d39f. The earlier review threads were already resolved and none have changed since, and there are no conflicts. All 21 checks pass at c19cfce, and the next step is maintainer review. Not blocking, and fine to take or leave: |
… empty band `pullRect` clipped only against the nearest scrollable ancestor and fell back to the raw frame when nothing overlapped it. Every ancestor that clips by definition bounds the pull, since nested clips compound, and a container one of them hides entirely has no visible band: planning the pull there dispatches a gesture the list never receives. The band now intersects the container's frame with each clipping ancestor's, keeping a zero-height band at the hiding ancestor's edge. `buildPullRefreshGesturePlan` stops capping travel at the padded viewport's lane, which for a degenerate container offered travel the container does not have, so an empty band reaches the existing `scroll_refresh_container_too_short` refusal with 0px of travel. Co-Authored-By: Apex <noreply@callstack.com>
|
Live re-check of the pull band at head Both bounds printed, Both optional items are in: |
This comment has been minimized.
This comment has been minimized.
|
This PR is ready at 2e871bb. The earlier review of c19cfce (#4770 (comment)) found no problems, and the changes since then keep it that way. CI is green: 21 checks, none failing. There are no conflicts, and the only step left before merge is maintainer review. Not blocking, and fine to take or leave: delete the stray The live re-check was iOS only and covered the happy path, where the window root is the only clipping ancestor. The nested-ancestor and empty-band paths are covered by unit tests through the daemon route, not live. Android has no root node, so its window clipping still comes from the planner's padded-viewport intersection, which this change does not touch. |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This comment has been minimized.
This comment has been minimized.
|
Still ready at fd32b1e. The change since 2e871bb applies both optional notes: |
A slow scroll up that starts on the list already commits a refresh control: 5/5 on an iOS simulator and 5/5 on an Android emulator through the existing scroll operation. scroll refresh is now that scroll with a 1200ms duration and a 0.4 amount, after one fresh top-edge read that refuses with scroll_refresh_not_at_top while content is hidden above. This removes the touch-scroll admission fact, the pull planner, the pull container narrowing and clipping, and the gesture-plan dispatch. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This comment has been minimized.
This comment has been minimized.
|
Thanks for the update. At f7d5032 scroll refresh is a preset of the directional scroll, which removes most of the pull planner. CI is green (21 checks, 0 not passing), and all 11 earlier review threads are resolved. One docs problem remains before merge. The CLI help (index.ts:608), the gestures help ( Not blocking: the PR body says the net production change is about 100 lines, but it measures 179, so about 180 would be accurate. You can take or leave this. The live evidence is from b3dd165; the later commits are docs, same-value refusal construction and unrelated upstream merges. The iOS 400 ms and 1200 ms defaults rest on your reported runs. Once the help wording matches the iOS lane, this is ready. |
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Apex Sentinel: 1 finding moved to a new line on 9f6ff3c. The verdict and the full list are in the summary comment.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Apex Sentinel · ✅ Approve · review of
|
| Command | What it does |
|---|---|
@apex-sentinel-staging note <context> |
Adds context; Sentinel re-checks the cited code |
@apex-sentinel-staging pivot <why> |
Says the finding is wrong; Sentinel re-checks the cited code |
@apex-sentinel-staging like |
Marks the finding as useful |
@apex-sentinel-staging dislike <why> |
Marks it as not useful, so it is not raised again |
On this conversation, comment @apex-sentinel-staging review to run a full review once again.
|
Ready at 5947d9e. The CLI help, the gestures help and commands.md now state where each platform aims the pull: inside the scroll container on Android, down the middle of the screen on iOS, so a list that does not reach the middle is not pulled. The unsupported-capture test now asserts the typed |
* origin/main: (70 commits) refactor(apple-runner): one RUNNER_ERROR_CODES row per runner error code with parity/docs gates (callstack#4774) fix(android): require acknowledgements for test IME typing (callstack#4722) feat(scroll): add scroll refresh for pull-to-refresh (callstack#4770) refactor(host-kit): add request Scope and use it for the wait capture deadline (callstack#4794) fix(android): let permission all change nothing on an app that declares no permissions (callstack#4796) fix(cli): replace the CLI session and generated remote config instead of rewriting them in place (callstack#4797) fix(host-kit): accept a group-writable script directory the user owns (callstack#4799) fix(cli): escape control characters at the CLI's stdout and stderr writes (callstack#4778) fix(audit): do not report rows under a persistent bar that scrolling reveals (callstack#4775) fix(daemon): refuse an unsafe state directory before first use (callstack#4783) refactor: settle remaining single-deadline races through settleWithin (callstack#4788) refactor(host-kit): settle deadline races via settleWithin with R87 race ratchet (callstack#4766) fix(android): authenticate and bound persistent snapshot helper sessions (callstack#4729) fix(daemon): bound upload ingress and finalization (callstack#4721) chore(gates): ratchet wire-published reason literals by value (R89) (callstack#4779) feat(audit): evaluate role-less clickable views on Android (callstack#4780) fix(mutation): keep umask-setting tests out of Stryker's thread pool (callstack#4785) feat(audit): report controls that share one accessible name (callstack#4771) fix(contracts): pair open runtime hints with their apply operation (callstack#4754) refactor(daemon): report startup progress over the launch channel instead of marker files (callstack#4777) ...
* origin/main: feat(gesture): hold before the move with gesture pan --hold-ms (#4767) docs: clarify device verification and security proposals (#4805) fix(daemon-client): say that a hung daemon is stopped before ensureDaemon starts a new one (#4803) test: remove five timing races from CI (#4800) refactor(remote): save a remote script from memory with the local publisher (#4802) refactor(apple-runner): one RUNNER_ERROR_CODES row per runner error code with parity/docs gates (#4774) fix(android): require acknowledgements for test IME typing (#4722) feat(scroll): add scroll refresh for pull-to-refresh (#4770) refactor(host-kit): add request Scope and use it for the wait capture deadline (#4794) fix(android): let permission all change nothing on an app that declares no permissions (#4796) fix(cli): replace the CLI session and generated remote config instead of rewriting them in place (#4797) fix(host-kit): accept a group-writable script directory the user owns (#4799)
Summary
scroll refreshadds pull-to-refresh toscroll. It is the existing directional scroll with two defaults changed:scroll up 0.4 --duration-ms 1200, sent through the samescrollDirectionoperation. Before the pull it reads the top edge off one fresh capture and refuses withscroll_refresh_not_at_topwhile content is hidden above, because a list that is not at its top only scrolls.A slow scroll up that starts on the list already commits a refresh control, so the earlier design is gone: no touch-scroll admission fact, no pull planner, no pull-container narrowing or clipping, no gesture-plan dispatch, no native change. Net non-test delta is about 180 lines (was about 700): about 110 in the packages and CLI help, the rest is the Refresh lab screen in the test app.
--pixelsor--duration-msoverrides the defaults.--untilis rejected: the mode pulls once.scrollDirection+captureSnapshot), so an owner without a capture refuses before any device work.movementnever answersat-edgefor the pull; an unchanged surface answersunchanged.commands.mdsay so, and say thatmovement: unchangedis not proof of a refresh.Validation
Branch-built CLI at
b3dd1659(the head adds one comment fix on top), Refresh lab in the test app (refresh-countincrements per refresh).scroll refreshmovement: moved, pully 262 → 612, 1200 msmovement: moved, pully 727 → 1697, 1200 msAfter
scroll down,scroll refreshrefused withscroll_refresh_not_at_topon both and the counter did not change.scroll refresh --until …answeredINVALID_ARGS.Why the defaults: on iOS a 400 ms pull that starts on the list did not refresh (1 run here, 0/5 in the earlier measurement on this PR), and 800 ms and 1200 ms pulls did (6/6 with plain
scroll upon the released CLI, plus the 5/5 above). Android refreshed at every speed tried with plainscroll up(8/8).Typecheck and lint pass; 388 affected test files (3524 tests) pass locally.
Known limit
The Apple scroll path does not aim inside the scroll container: its lane is centred on the viewport. The default 0.4 pull covers the middle 40% of the screen, so it lands on any list that reaches the middle of the screen. A list confined to the top or bottom edge of the screen is not covered.
🤖 Generated with Claude Code