Hacktoberfest 2026:維護者為十月標記出來的 issue,仍然開放、適合新手。 瀏覽 Hacktoberfest issue

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

已關閉
#2,870 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 1 天內回覆

還沒有人認領這個 Issue。

評估

難度
4/5
預估耗時
3-5 天
新手友好度
52/100
Issue 類型
缺陷
描述清晰度
基本清楚
活躍度
活躍
技術堆疊
ios, react-native, typescript

研究方向

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.

由索引模型根據 Issue 內容生成。

描述

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.

主要語言
TypeScript
星號
4.9k
分支
328
平均合併
12 小時 16 分鐘
30 天內合併 PR
538

環境準備

  • 沒有 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 摘要。