Skip to content

Open the panel-thread stills states under the panel choice, which threads about a passage now need - #7125

Merged
max-sixty merged 3 commits into
mainfrom
fix-floating-thread-stills
Nov 25, 2026
Merged

max-sixty merged 3 commits into
mainfrom
fix-floating-thread-stills

Conversation

@max-sixty

@max-sixty max-sixty commented Nov 25, 2026 •

Copy link
Copy Markdown
Owner

Fifteen leaf-dev stills states that open a thread from Threads and capture the floating panel's view of it failed in Chromium and Firefox: floating-thread and the states built on it (reaction-palette, reaction-pressed, thread-code-copy, floating-thread-unread, floating-thread-retitled, panel-resolved, panel-new-reply, thread-reply-photo), progress-messages, thread-picture, image-preview, summary-panel, plan-panel-reply-long and plan-panel-reply-empty. Since #6796, which lets the user choose where threads about a passage open, a Threads row on a desktop window opens such a thread as a margin card, so the drive's wait for the panel's thread view timed out.

The panel's view of a thread still exists for a user who has chosen the panel, so each drive now makes that choice first, as the browser tests already do, and the crop shows what the state's docstring describes. The helper that makes the choice moves from tests/browser/threads to leaf_dev.browser, and every test imports it from there, so there is one copy.

Max asked for this fix. Tests: every one of the 15 states, plus detached-thread (unaffected, since a thread whose passage is gone always opens in the panel), runs through leaf-dev probe --state in Chromium and Firefox, and the screenshots show the panel's thread view. leaf-dev stills runs for the three states first reported, two test_threads_in_panel browser tests pass with the moved helper, and the changed test modules collect.

This was written by Claude Code on behalf of max-sixty

…eads about a passage now need

Since #6796 let the user choose where threads about a passage open, a row in Threads opens such a thread as a margin card on a desktop window until the user chooses the panel. Fourteen stills states drove a Threads row and waited for the floating panel's view of the thread, which never came, so they failed in Chromium and Firefox alike: floating-thread and the states built on it (reaction-palette, reaction-pressed, thread-code-copy, floating-thread-unread, floating-thread-retitled, panel-resolved, panel-new-reply, thread-reply-photo), progress-messages, thread-picture and image-preview through open_thread, and plan-panel-reply-long and plan-panel-reply-empty. Each subject, the panel's view of a thread, still exists for a user who chose the panel, so these drives now make that choice first, as tests do, and capture the panel view their docstrings describe. detached-thread was unaffected: a thread whose passage is gone always opens in the panel.

The choice's helper moves from tests/browser/threads to leaf_dev.browser, its one home, and every test imports it from there.

@leaf-agent leaf-agent left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

summary-panel fails the same way and isn't among the 14. summary_panel clicks the plan's stop thread (9303f850…, anchored to "The trusted supervisor owns shutdown.") from Threads at the default desktop window, then waits for .lf-summary-checkpoint in the panel's thread view. On this head, leaf-dev probe --state summary-panel ends in summary-panel: Locator expected to be visible with #lf-margin-preview laid out instead. Adding choose_threads_in_panel(page) before its go_to_threads(page) makes the same probe find the checkpoint in the panel. The function is outside the diff, so there's no inline suggestion. I can push that one line if you'd like, and its docstring could take the same "by a user who chose the panel for threads" wording as the others.

@max-sixty
max-sixty merged commit 669f874 into main Nov 25, 2026
6 checks passed
@max-sixty
max-sixty deleted the fix-floating-thread-stills branch November 25, 2026 06:32
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