iOS: scroll down --until stops before the end on SwiftUI List (0 passes) and ScrollView

未关闭
#4,216 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
70/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
ios, swift, typescript
领域
mobile, testing

调研方向

Start by tracing the iOS scroll down --until path through scroll_until_edge_reached and how it reads accessibility snapshots for scrollable content. Use the linked reproduction app and its list.ad, sheet.ad, and scrollview.ad replays to compare the three cases. Done means the selector becomes visible before stopping, or scrolling stops only when content truly stops moving.

由索引模型根据 Issue 内容生成。

描述

On iOS, scroll down --until '<selector>' gives up on SwiftUI lists that plain scroll down scrolls through fine.

Repro: https://github.com/antFrancon/agent-device-scroll-until-repro (./repro.sh [version]). It's a one-file SwiftUI app showing the same 64 rows three ways, with one .ad per way, each running scroll down --until 'id="row-60"'.

Replay Rows in Result
list.ad a List, pushed fails after 0 passes: "scroll down reached the end of the scrollable content … without id="row-60" becoming visible"
sheet.ad the same List in a .sheet fails after 0 passes, same message
scrollview.ad a ScrollView + LazyVStack, pushed fails after 3 passes, same message, with rows 53–63 still below

Plain scroll down reaches row-60 in all three: 7 flings for the list, 8 for the sheet, 4 for the scroll view.

Likely cause for the List: it reaches the snapshot as [collection] with no [scrollable], so --until sees no scrollable content and never swipes (scroll_until_edge_reached, passes: 0, nothing dispatched). The ScrollView is [scroll-area] [scrollable], but end detection still trips one pass early.

Expected: --until keeps scrolling until the selector is visible or the content truly stops moving.

Seen on: agent-device 0.21.28, 0.21.36 and 0.21.37-nightly.20261103.128 (identical results) · iOS 26.5 simulator, iPhone 16 · Xcode 27.2 (27B52) · macOS 27.0 · Node 22.22.1

主要语言
TypeScript
星标
5.3k
派生
377
平均合并
13 小时 49 分钟
30 天内合并 PR
650

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

callstack/agent-device 的其他 Issue

查看 callstack/agent-device 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。