Repository navigation
Follow banner focus after sending a page comment - #2231
Merged
Merged
Conversation
Sending the page comment closes its popover and returns focus to the banner Comment control. Preserve the color-cue assertion on the Threads control while checking the actual focus handoff.
The command reference still opens and sends a page comment with quick shortcuts off; after sending, the popover closes and focus returns to the banner Comment control.
max-sixty
pushed a commit
that referenced
this pull request
Oct 10, 2026
## Cause In the 390 px package reader, the Email option starts below its scrollport. Playwright scrolls it into view before `click()`, but that synthetic scroll has no trusted input event. The layout shift watcher therefore flags the margin marker following the reader by 10 px as unsolicited motion. This reproduces on current `main` and is the sole Python test error in #2231, #2236, #2241, and #2243. ## Change Scroll the compact reader with a user wheel gesture before clicking Email. The case still exercises the native Ask, package presentation, retained draft, and new conversation. ## Verification - Before: `uv run pytest 'tests/test_render_application_boundary.py::test_primary_package_reader_retains_native_widgets_drafts_and_creation[390]' -q -n0 --tb=short` failed at teardown with `lf-margin-marker ... moved without input by (0, -10)px`. - After: the same command passes. - `uv run pytest tests/test_render_application_boundary.py -q -n0 --tb=short`: 46 passed. Co-authored-by: leaf-agent <[email protected]>
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.
#2181 made sending a page comment close the composer popover and return focus to its banner Comment control. Two browser journeys still expected the popover to remain visible and focused. Update their focus handoff checks. The color-cue variants continue to verify the Threads animation and final surface color in Chromium and Firefox; the shortcuts journey still verifies that a disabled quick-key setting leaves commands available through the reference.
All three focused cases failed on
mainbefore this change and passed afterward:uv run pytest tests/test_render_navigation.py::test_quick_shortcuts_can_be_disabled_without_withdrawing_commands tests/test_render_navigation.py::test_color_cues_fade_to_the_live_surface[banner-browser] tests/test_render_navigation.py::test_color_cues_fade_to_the_live_surface[banner-firefox_browser] -q -n0.This addresses three failures in main CI run 38013241865.