Repository navigation
test(probe): 手势往回拉一步等盖板撤掉再判 - #47
Merged
Merged
Conversation
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>
Bugbot couldn't run - usage limit reachedBugbot 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) |
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.
问题
--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
--gestureprobe’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.activeCountreaches 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.