Repository navigation
fix: restore compact diff replies around the composition renderer - #4586
Merged
Merged
Conversation
The retained Lit composition wrapper introduced in #4393 broke the direct-child selectors for compact diff replies. Follow that wrapper for both the active-draft predicates and the resting face, preserving the renderer and the compact Reply behavior chosen in #4323. Extend the browser check to keep a blurred nonempty draft expanded. Closes #4433
This was referenced Oct 29, 2026
leaf-agent
added a commit
that referenced
this pull request
Nov 1, 2026
The refused-reply journey now measures the compact Reply field when an empty diff reply has no visible action button, and compares the panel controls' shared aim across refusal instead of requiring Dictate and Send to have identical heights. This preserves the compact reply behavior restored in #4586 and the shorter, centered Send introduced in #4714. No product rendering changes. The panel failure reproduced at the prior PR head: Dictate occupied y=848–880 and Send y=852–876, both centered at 864. The corrected assertion still requires the action's horizontal position and vertical center, and the following passage's edges, to remain fixed. Exact draft restoration, refusal visibility, retry identity and single admitted reply assertions remain intact. Validation: all four `test_refused_reply_retains_its_live_foot` cases pass (outlet, nested-end, margin and panel); Ruff lint, formatting and diff whitespace checks pass. The outlet missing-node crash was reproduced on unchanged main during the original repair. Closes #4945 — automated triage --------- 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.
The retained composition renderer in #4393 inserted
leaf-composition-fieldbetween the reply row and its editor. The diff's direct-child selectors still used the old structure, so every empty reply showed a full editor instead of the compact Reply face chosen in #4323. Update those selectors to follow the retained renderer, including the conditions that keep attachments and nonempty drafts open.Empty, unfocused diff replies now show one compact line without a frame or microphone. Focused replies and nonempty drafts keep the expanded editor. The existing regression failed on the base with a 40px field and visible Dictate control; it passes with the repair, and now also checks that leaving a nonempty draft preserves its expanded face and words. The adjacent pinned-header Tab check passes; all 695 runtime tests pass.
Compared and inspected the
diff-file-replyanddiff-file-reply-dark-touchcatalogue stills against the base: the empty second reply becomes compact while the first conversation's active draft retains its editor. Reproduce withuv run leaf-dev stills 809f0927bf --state diff-file-reply --state diff-file-reply-dark-touch.Closes #4433 — automated triage