is: an ambiguous selector reports selector_not_found; RN text yields duplicate-label nodes
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 52/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- ios, react-native, typescript
- 领域
- mobile-dev, testing
调研方向
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.
isresolves throughreadUnique(packages/selectors/src/internal/resolution-policy.ts:68-71) and refuses a non-unique match.get textresolves throughreadText(:63-66), which picks one match, so it succeeds.isthen reports the ambiguity asselector_not_found, which to an agent means the element does not exist.
Required behavior
- An ambiguous match on
isreturns a typed ambiguity outcome that names the match count, notselector_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 小时 18 分钟
- 30 天内合并 PR
- 561
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
callstack/agent-device 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 74/100
callstack/agent-device#3407 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 88/100
callstack/agent-device#3353 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
callstack/agent-device#1869 ·
维护者通常 1 天内回复
-
needs-triage
难度 3/5 1-2 天 新手友好度 76/100
callstack/agent-device#3453 ·
维护者通常 1 天内回复
-
CRAP: newly scored platform-apple simulator boot retry and macOS helper file listing可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 4/5 3-5 天 新手友好度 52/100
callstack/agent-device#3451 ·
维护者通常 1 天内回复
查看 callstack/agent-device 的全部 Issue
相似的 Issue
-
area:tui enhancement platform:macos
难度 2/5 1-3 小时 新手友好度 66/100
anthropics/claude-code#101490 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 66/100
netlify/netlify-mcp#75 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
atlassian-labs/compiled#1960 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 75/100
pnp/cli-microsoft365#7639 ·
维护者通常 2 天内回复
-
nextjs-tracking
难度 2/5 1-3 小时 新手友好度 74/100
cloudflare/vinext#3887 ·
维护者通常 1 天内回复