Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

is: an ambiguous selector reports selector_not_found; RN text yields duplicate-label nodes

Chiusa
#2,870 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
52/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
ios, react-native, typescript

Direzione di ricerca

Start in packages/selectors/src/internal/resolution-policy.ts around lines 63-71, then reproduce the issue on the fixture app's Catalog tab using the iOS 26.2 simulator. Trace how readUnique maps non-unique matches to selector_not_found. Done means is reports a typed ambiguity outcome with the match count and the duplicate React Native text-node presentation behavior has a documented decision.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Problem

is visible 'label="Catalog scroll: top"' fails on every run on the fixture Catalog screen (iOS Simulator, AX bridge), even on a fresh capture. get text with the same selector finds the element, and id="catalog-scroll-state" passes is visible.

Mechanism (from a live investigation on 2026-09-24, found alongside #2866/#2869):

  • React Native exposes that text as a paragraph node plus a child node that carries the same label, so the label selector matches 2 nodes.
  • is resolves through readUnique (packages/selectors/src/internal/resolution-policy.ts:68-71) and refuses a non-unique match. get text resolves through readText (:63-66), which picks one match, so it succeeds.
  • is then reports the ambiguity as selector_not_found, which to an agent means the element does not exist.

Required behavior

  • An ambiguous match on is returns a typed ambiguity outcome that names the match count, not selector_not_found. Key it on a typed reason, not on message text.
  • Decide whether the duplicate RN text node (parent paragraph plus child with an identical label) should be one node in presentation. That would make label selectors on RN text unique, as they read to a user.

Evidence to reproduce

Open the fixture app's Catalog tab on an iOS 26.2 simulator. is visible 'label="Catalog scroll: top"' fails every time; get text with the same selector succeeds.

Lingua principale
TypeScript
Stelle
4.9k
Fork
328
Merge medio
12h 18m
PR unite (30g)
561

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di callstack/agent-device

Tutte le issue di callstack/agent-device

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.