Skip to content

fix: select the suggestion's own fold in test_a_decided_change_folds_away_rather_than_vanishing - #5828

Merged
leaf-agent merged 1 commit into
mainfrom
fix/issue-5825
Nov 11, 2026
Merged

leaf-agent merged 1 commit into
mainfrom
fix/issue-5825

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

#5771 made the panel's leaf twirl when On Me empties (its gesture table: "On Me empties → twirl"). Accepting the only suggestion on SHORT_SUGGESTION empties On Me, so the press now plays two motions that HOLD_MOTION holds: the slot's 220 ms fold on lf-old and the leaf's 420 ms twirl on its svg. The test treated every held motion as the fold, so its first check failed in both engines on every push run on main since e74d07dd5. The twirl is what #5771 intended, so this changes the test, not the runtime. The test now selects the held motions whose target is inside #sug and runs every later fold check against that list. Nothing it asserts about the fold changed: where the fold starts, its midpoint, its filled endpoint, the room given back, and undo during a second fold.

The issue reported that once the list was filtered, the fold's midpoint still left lf-old at full height. That doesn't happen here. With the leaf's gesture held at the same time, setting the fold to half its duration takes lf-old from 31.19px to 6.14px in Chromium. The test as changed passes three runs out of three in Chromium and Firefox (Playwright 1.65) and fails on main with the original ['lf-old', 'svg'] == ['lf-old'] assertion.

Closes #5825 — automated triage

…away_rather_than_vanishing

#5771 made the panel's leaf twirl when On Me empties, and accepting the page's
only suggestion empties it, so the press now plays two held motions: the slot's
fold and the leaf's gesture. The test read every held motion as the fold. It now
reads the held motions whose target is inside #sug; what it asserts of the fold
(its start, midpoint, filled endpoint and undo) is unchanged.

Closes #5825
@leaf-agent
leaf-agent merged commit f132580 into main Nov 11, 2026
6 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-5825 branch November 11, 2026 08:42
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.

test_a_decided_change_folds_away_rather_than_vanishing: the slot's fold stops carrying its height once #5771's leaf gesture runs

1 participant