Skip to content

fix: restore compact diff replies around the composition renderer - #4586

Merged
leaf-agent merged 1 commit into
mainfrom
fix/issue-4433
Oct 28, 2026
Merged

leaf-agent merged 1 commit into
mainfrom
fix/issue-4433

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

The retained composition renderer in #4393 inserted leaf-composition-field between 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-reply and diff-file-reply-dark-touch catalogue stills against the base: the empty second reply becomes compact while the first conversation's active draft retains its editor. Reproduce with uv run leaf-dev stills 809f0927bf --state diff-file-reply --state diff-file-reply-dark-touch.

Closes #4433 — automated triage

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
@leaf-agent
leaf-agent merged commit 63b2e3e into main Oct 28, 2026
5 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-4433 branch October 28, 2026 11:52
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]>
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.

Diff reply field retains its expanded face where the test expects rest

1 participant