Repository navigation
Close the page comment composer after sending - #2181
Merged
Merged
Conversation
Sending a page comment now closes its composer and returns focus to the banner control (More on a phone). Threads retains the resulting conversation. Refusal restores the draft only while the original send still owns user intent. Remove held field and attachment sizing, update the keyboard contract, gallery and corpus, and replace empty-card expectations with lifecycle checks. Validate pointer, keyboard, IME, phone, open-panel, refusal, newer-draft, and all 48 appearance checkpoints; runtime tests and pre-commit pass. > _This was written by Codex on behalf of max-sixty_
leaf-agent
previously approved these changes
Oct 9, 2026
leaf-agent
reviewed
Oct 9, 2026
leaf-agent
left a comment
Collaborator
There was a problem hiding this comment.
The new page-comment send path shifts an existing open Threads card after a second page comment is sent. In the website turn’s “elsewhere” case, its summary, transcript, and reply controls move 34 px without input; the browser’s shift guard rejects that movement. CI’s test job fails on this head, and I reproduced the same failure locally. The exact case passes at merge base f148a358.
The send should still close the composer, but its panel reveal needs to preserve the existing card’s reading position through the return to the banner. This regression withholds my earlier approval.
leaf-agent
dismissed
their stale review
October 9, 2026 21:56
CI failed: the website turn elsewhere case reproduces a 34 px unprompted Threads card shift after a page comment send.
Closing the sent page composer exposed a no-op narrowing reset that discarded a held resolved row. A later reply reinserted that row above the selected thread. Preserve intent identity unless its actual fields change, including raw search words, and keep destination repainting unconditional.
leaf-agent
previously approved these changes
Oct 9, 2026
leaf-agent
approved these changes
Oct 9, 2026
leaf-agent
added a commit
that referenced
this pull request
Oct 10, 2026
[#2181](#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 `main` before 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](https://github.com/max-sixty/leaf/actions/runs/38013241865). --------- 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.
Sending a page comment left a large empty composer over the document. Send now closes that card and returns focus to its banner button (More on a phone); Threads holds the resulting conversation. A refused send restores the draft and its attachments only while the original gesture still owns user intent.
Remove the held field and attachment dimensions that kept the empty card enlarged. Update the keyboard contract, gallery, corpus, interaction tests and reviewed appearance snapshots together.
Closing the composer also exposed a panel stability defect: revealing a new Open thread replaced the view identity even when its filters were unchanged. That discarded a held resolved row, whose later reply reinserted it above the current conversation. No-op narrowing changes now preserve their intent identity while destinations still repaint.
Validation: pointer, keyboard, IME, phone, open-panel, refusal, cross-tab and newer-draft browser checks; all three hosted website-turn settlement journeys; all 275 runtime tests; 48 reviewed appearance checkpoints; pre-commit and independent source/browser review. Served base/candidate startup uses the same 242 requests with fewer bytes.