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

Aberta
#4,216 0 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
4/5
Tempo estimado
3-5 dias
Facilidade para iniciantes
70/100
Tipo de issue
Bug
Clareza
Claramente especificada
Status de atividade
Ativa
Stack de tecnologia
ios, swift, typescript
Domínio
mobile, testing

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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

Linguagem predominante
TypeScript
Estrelas
5.3k
Forks
377
Merge médio
13h 49min
PRs com merge (30d)
650

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de callstack/agent-device

Todas as issues de callstack/agent-device

Issues semelhantes

Mais issues de TypeScript

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.