Skip to content

Wait for collapsed reasoning to let go of its text before counting the column - #86

Merged
splitbrain merged 1 commit into
splitbrain:mainfrom
splitbrain-bot:claude/flaky-row-run-test
Oct 3, 2026
Merged

splitbrain merged 1 commit into
splitbrain:mainfrom
splitbrain-bot:claude/flaky-row-run-test

Conversation

@splitbrain-bot

Copy link
Copy Markdown

Fixes the flaky e2e/ux.test.ts › a row run stays a list across a message that speaks, which failed on main in 37118036046 (expected 7 to be 6) and 37150134723 (expected 8 to be 6), on commits that did not touch the thread view.

Cause

The test measures the turn's layout once the reasoning panels have collapsed, and waited for every panel to have height 0. Radix closes a panel in two steps: the animation brings the height to 0, and only when it has ended are the panel's children removed. In the frame between, a panel is at height 0 and still holds its text. That text is markdown with the aui-md class, one of the selectors the test counts as prose, so a measurement in that window counts one or two reasoning texts on top of the six seams.

Confirmed with an instrumented copy of the test: in a failing run both panels were at height 0 and still held their markdown, and the extra entries were the two reasoning texts, inside [data-slot="reasoning-content"].

Fix

The wait now ends when no reasoning panel contains .aui-md any more, which is when the collapse is finished. The other test with a height-based wait counts only triggers, which a zero-height panel does not move, so it stays.

Locally the flake hit about one run in twenty before, and six runs passed after.

…e column

The row-run layout test counted the turn's rows and paragraphs once every reasoning panel had height 0. A closing panel reaches height 0 one frame before Radix removes its children, and the reasoning text inside is markdown the count took for prose. The test then found 7 or 8 elements instead of 6, about one run in twenty. The wait now ends when no panel holds markdown any more.
@splitbrain
splitbrain merged commit 57d0495 into splitbrain:main Oct 3, 2026
7 checks passed
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.

2 participants