Skip to content

fix: keep the panel thread's Copy button inside its message head's clip - #6745

Merged
leaf-agent merged 1 commit into
mainfrom
fix/issue-6743
Nov 22, 2026
Merged

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

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

#6672 hung each panel message's react and copy 12px into the room the transcript keeps at its end, with a negative margin on .lf-msg-control-room. But a message head cuts what it holds a gap (--lf-sp-2, 8px) past its own end (surfaces.css, :where(.lf-msg-head)'s clip-path). So the last 4px of Copy, the head's last control, fell outside the cut. A press there reached .lf-thread-transcript, and the nightly aim sweep read Copy as a 0×0 target:

lf-icon-action "" at 0.0x0.0 under .lf-thread-transcript

This was a visible control losing part of its box, not a hidden control the sweep should skip. In the panel at 1200px, Copy's box spans x 836–864, but a press at x 860–863 hit the transcript.

The negative margin now sits on the panel's .lf-msg-head instead of its control room. The head itself reaches into the end room, its controls stay its last item and end where #6672 put them, and the cut stands a gap past them. The margin card's heads are untouched, since the rule stays scoped to .lf-fp-messages.

Verification

  • tests/journeys/test_render_controls.py::test_every_control_the_layer_offers_is_a_box_the_user_can_hit fails on d53e9994f and passes with the change, for both [False] and [True].
  • leaf-dev stills --state floating-thread --state reaction-palette --state plan-thread-in-panel reports 0 px changed against main. At rest the panel draws the same. The change shows only where Copy's last 4px and its focus ring had been cut.
  • The focused reaction, panel, rewrite and thread-layout tests that read the head's geometry pass.

Closes #6743 — automated triage

#6672 hung each panel message's controls 12px into the transcript's end
room with a negative margin on the control room. The message head cuts
what it holds a gap (8px) past its own end (surfaces.css), so the last
4px of Copy, the head's last control, fell outside the cut: a press
there reached the transcript, and the aim sweep read Copy as a 0x0
target. The head itself now reaches into that room, so the controls
end in the same place and the cut stands a gap past them.

Drawn at rest, the floating-thread, reaction-palette and
plan-thread-in-panel stills are pixel-identical to main.
test_every_control_the_layer_offers_is_a_box_the_user_can_hit fails
before and passes after, under both pointers.

Closes #6743
@leaf-agent
leaf-agent merged commit 81906e7 into main Nov 22, 2026
7 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-6743 branch November 22, 2026 12:02
max-sixty added a commit that referenced this pull request Nov 22, 2026
Main's #6745 fixes the panel thread's clipped Copy button by moving the
negative end margin from the control room to the panel's message head, so
the head's cut moves out with it. The branch had fixed the same defect with
an `--lf-msg-controls-hang` variable read in three sheets; the merge keeps
main's one-rule fix and drops the branch's.
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.

test_every_control_the_layer_offers_is_a_box_the_user_can_hit: a 0x0 icon action under the thread transcript since #6672

1 participant