Skip to content

Close the page comment composer after sending - #2181

Merged
max-sixty merged 3 commits into
mainfrom
codex/close-sent-page-comment
Oct 9, 2026
Merged

max-sixty merged 3 commits into
mainfrom
codex/close-sent-page-comment

Conversation

@max-sixty

@max-sixty max-sixty commented Oct 9, 2026 •

Copy link
Copy Markdown
Owner

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.

This was written by Codex on behalf of max-sixty

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
leaf-agent previously approved these changes Oct 9, 2026

@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.

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
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
leaf-agent previously approved these changes Oct 9, 2026
@max-sixty
max-sixty merged commit 6580787 into main Oct 9, 2026
6 checks passed
@max-sixty
max-sixty deleted the codex/close-sent-page-comment branch October 9, 2026 23:09
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]>
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