Skip to content

test(probe): 手势往回拉一步等盖板撤掉再判 - #47

Merged
surfine merged 1 commit into
mainfrom
fix/gesture-probe-pullback
Dec 2, 2026
Merged

surfine merged 1 commit into
mainfrom
fix/gesture-probe-pullback

Conversation

@surfine

@surfine surfine commented Dec 2, 2026 •

Copy link
Copy Markdown
Owner

问题

--gesture 第 5 步(上滑过门槛再往回拉)在 main 上稳定报 cover left behind after pull-back (active=1)。

原因

不是盖板卡住。a690038a(11-17)把 calm 弹簧从 0.34 改成 0.5,取消时盖板退回要约 1 秒才收敛到 FoldSpring 的 0.0001 门槛并撤掉。实测:0.50 → 0.10(267 ms)→ 0.008(530 ms)→ 撤掉(约 1000 ms),窗口回到原位、原尺寸。探针原来只等 700 ms。盖板 ignoresMouseEvents,不挡点击。

改动

只改探针:保留 700 ms 看有没有误执行,再等 activeCount 归零,松手后最多 1.5 秒;超时仍报原来的失败。

检查

  • bash tests/run-glance-probe.sh --gesture 连跑两次,PASS suite(往回拉那项 59%、56%)

🤖 Generated with Claude Code


Note

Low Risk
Test-only timing change in GestureProbe.swift; no production gesture or animation logic is modified.

Overview
The --gesture probe’s step 5 (swipe up past the roll-up threshold, then pull back to cancel) was failing because it asserted before the fold cover finished its dismiss animation.

After the existing 700 ms guard (unchanged), the probe now polls until windowEffects.activeCount reaches zero, with a 1.5 s deadline after release. That matches the slower calm spring (~1 s to clear), so the “cover left behind after pull-back” check no longer flakes when the overlay is still technically active but animating away correctly.

Reviewed by Cursor Bugbot for commit c9704a8. Bugbot is set up for automated code reviews on this repo. Configure here.

a690038 把 calm 从 0.34 改成 0.5 后,往回拉时盖板退回要约 1 秒才收敛撤掉
(实测 0.50→0.10@267ms→0.008@530ms→撤掉@≈1000ms,窗口回到原位)。
探针原来固定只等 700ms,报“盖板留下”;盖板并没有卡住,也不接鼠标。
保留 700ms 看有没有误执行,再轮询 activeCount 到 0,松手后最多 1.5 秒。

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@surfine
surfine merged commit ce3d913 into main Dec 2, 2026
@cursor

cursor Bot commented Dec 2, 2026

Copy link
Copy Markdown

Bugbot couldn't run - usage limit reached

Bugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit.

A user or team admin can review and increase usage limits in the Cursor dashboard.

(requestId: d9b2ccdf-29a0-4ea2-885a-74025781b207)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant