Repository navigation
test(desktop): retire unreliable held-thumb geometry probe - #5346
Merged
Merged
Conversation
Generated-by: OpenAI Codex
jackwener
approved these changes
Sep 15, 2026
jackwener
left a comment
Member
There was a problem hiding this comment.
Approved at exact head afd21435c1dbffaa585e3ca96b37f978205b1354 at the explicit direction of M4n5ter. No technical review was performed as part of this action; M4n5ter requested the approval and accepts full responsibility for subsequent handling.
At submission time, the PR was open, non-draft, and mergeable. The exact-head hosted test and label checks had completed successfully. This approval is not a merge decision, and no merge was performed.
Review notice: This approval was submitted by an automated review agent operated by jackwener and is published at the direction of M4n5ter, who requested this action and is the human accountable for it.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
English
Summary
Remove
scroll-geometry.spec.tsand its E2E budget entry. This is the CI cleanup below #5345; it changes test coverage, not production scrolling.The probe treats a fixed 50 ms after synthetic thumb movement as a stationary baseline while Host history can arrive concurrently. Diagnostics observed 1.3125 px and 4 px failures without an application
scrollTopwrite; browser scrolling continued after the sampled baseline. A no-publication control still showed a native tail step. Pixel-rounding the injected input did not give a reliable fix. These observations do not establish a production anchoring defect, and making the probe deterministic would require additional publication/input synchronization.Keep the existing Host paging E2E, origin-prepend and cold-content browser geometry checks, and scroll-authority tests. Remove stale references to the retired probe.
Coverage tradeoff
The remaining tests are not equivalent: there is no longer a real Electron held-thumb/across-origin/history-publication scenario enforcing a 1 px bound on every frame. In particular, the retained wheel paging E2E has a 40 px range-boundary allowance. This PR accepts that gap instead of retaining a gate that cannot reliably separate input completion from content-induced movement. It does not claim to fix native scrollbar drift.
Verification
AI use
Tool(s) and scope: OpenAI Codex investigated the failure, audited the retained coverage, removed the probe, and ran local validation.
Checklist
Does this PR entail a change in behavior?
中文
改了什么
这是 #5345 底层的测试清理 PR:删除
scroll-geometry.spec.ts及其 E2E 预算条目,清理文档和注释中的旧引用,不改生产滚动逻辑。这条测试在模拟拖动后固定等 50ms,就把当前位置视为已经静止;但 Host 历史可以同时到达。诊断中出现过 1.3125px 和 4px 的失败,期间应用没有写入
scrollTop,浏览器还在调整滚动位置。暂不发布历史的对照也记录到了原生输入尾帧;对输入坐标取整同样没得到可靠修复。这些结果不足以证明产品锚定有缺陷。若继续保留,需要额外控制历史发布与原生输入的时序,成本超过当前检查能提供的信心。真实 Host 分页、原点补页、冷内容几何和滚动状态测试继续保留。
明确的取舍
删除后,不再有“真实 Electron 滚动条持按跨原点、同时补入历史”的逐帧 1px 联合检查。其他测试不能完全替代它;其中保留的滚轮分页 E2E 允许范围切换时有 40px 位移。本 PR 接受这个覆盖缺口,不把删除测试说成修复了原生滚动问题。
验证
#5345 本轮审查前,stack 的完整本地 Electron E2E:38 项全部通过,耗时 6.4 分钟、内存峰值 1.0 GB;调整分支顺序后,代码树与通过测试的版本完全一致。38 项滚动 authority 与 chat-scroll 测试、E2E 预算检查及 Biome 均通过,预算为 21 个文件、38 项 E2E。WorkHub 界面截图放在 #5345,中英文两区都有。
AI 使用
OpenAI Codex 参与诊断、保留覆盖审计、测试删除及本地验证。检查项以英文区为准。