Repository navigation
Give the thread's reply field one focus band in either seat - #445
Merged
Merged
Conversation
leaf-agent
commented
Sep 8, 2026
leaf-agent
left a comment
Collaborator
Author
There was a problem hiding this comment.
The resting-tint repair holds and the case passes here under -n0. One point on the other half, inline: the reply_ring expectation moves to match a cascade collision that a15715c left un-reconciled, rather than to the offset that commit was setting. Which of the two rules is wrong is a design call about the reply field's ring, so this reads as one to settle in the layer rather than pin in the test.
The reply field's ring was set twice with different answers. `theme.css`'s conversation rule stood the band 1px off the box, the chrome text-box rule sat it on the border and cleared the border under it, and the conversation rule's higher specificity won — so the offset a15715c set reached every text box except the reply field it was written for. Reconcile it where the collision came from. The reply is a text box, so it takes the text box's band: the conversation rule keeps its 1px gap for the thread's buttons and summary, and the reply gets the chrome rule's terms repeated inside the shadow-carried slice. That repeat is the fix rather than a restatement. A thread an x-thread-surface widget seats inside its own shadow tree reads only that slice, so it never met the chrome rule at all: the reply there kept its resting border under the ring — the accented border plus outline the text box rule exists to remove — and now wears the same one band as the panel's copy. `test_a_diff_surface_keeps_the_complete_thread_lifecycle_inline` reads both seats and compares them, which is what pins the shadow half; the inline thread case reads the offset a15715c wrote.
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.
test_an_inline_thread_uses_surface_focus_until_its_reply_takes_overhas been red on every complete run since a15715c, and it is the third failure in the nightlycirun on7e403108— the one #444 measured at its merge base and correctly set aside as not its branch's.git bisectover0b50e4c5…7e403108puts it on a15715c (Simplify thread and reply chrome): the case passes at that commit's parent b094e80 and fails at a15715c, alone under-n0.Two things were wrong, and the second was hidden behind the first.
The case read the thread before the preview built one. a15715c added a resting-tint reading as its first act on the page, from
.lf-margin-preview .lf-conversation-thread. The margin preview builds its thread when it opens one, so at rest that locator resolves nothing and the case spent its 30s timeout there. The resting tint now comes from the same element once the region gives the focus back, sopointer["background"] != restingstill contrasts a current thread against a quiet one rather than against a value read before the thread existed.Every reading after that point had never run, and one of them was measuring a cascade collision. a15715c's message says Reply fields use one focus ring instead of an accented border plus outline, and it set the chrome text-box rule to
outline-offset: 0with the border cleared under the ring.theme.css's conversation rule still saidoutline-offset: 1px, and it wins the declaration at (0,3,0) against the text-box rule's (0,2,1) — the extra class coming from.lf-btnsitting in that:is()list besidetextarea. So the offset that commit set reached every text box in the document except the reply field it was written for, and one control shape wore the band at two offsets.The fix is in the layer rather than the expectation. The reply is a text box, so it takes the text box's band: the conversation rule keeps its 1px gap for the thread's buttons and summary, and the reply gets the chrome rule's terms — ring on the border, border cleared under it — repeated inside the shadow-carried slice.
That repeat is the fix rather than a restatement of a rule that already reached the field. A thread an
x-thread-surfacewidget seats inside its own shadow tree reads only the theme'slf-shadowslice;runtime/chrome.cssis never adopted there, so the reply in a diff's inline outlet never met the text-box rule at all. Measured on the diff fixture before this change, that field wore its resting--border-2border (rgb(69, 63, 54)on the dark scheme) and the 2px accent ring 1px outside it — exactly the accented border plus outline a15715c removed from the document copy. It now wears the same single band as the panel's copy, atoffset: 0pxwith the border transparent.test_a_diff_surface_keeps_the_complete_thread_lifecycle_inlinegained the reading that pins the shadow half: it focuses the reply in both seats and asserts the two bands are identical. Revertingtheme.cssalone fails it on all three fields — offset, border, and the ring's own name.Verified:
tests/test_render_navigation.py,tests/test_render_anchors.py, andtests/test_render_conversations.pygreen in full (253 passed); every-k ringcase across the nightly suite green (91 passed), including the corpus ring floor; the everyday suite green (904 passed, 6 skipped); pre-commit clean on the three changed files. The margin and startup failures in the same nightly run are #444's.Bisect and the state the preview is in at rest
Probing
INLINE_PAGEwith one anchored mark, on7e403108:The reply field's band before and after, in both seats
Read with
getComputedStyleon the focused reply textarea. The light-DOM reading is the inline thread the margin preview builds; the shadow reading is the same shared Thread view seated inlf-diff's outlet, which adopts only the theme'slf-shadowslice.offset: 1px,border: transparent,--lf-here-ring: conversationoffset: 0px,border: transparent,--lf-here-ring: text-boxoffset: 1px,border: rgb(213, 207, 194)light /rgb(69, 63, 54)dark — the resting--border-2—--lf-here-ring: conversationoffset: 0px,border: transparent,--lf-here-ring: text-boxThe panel's own reply field was already the second column and did not move; it is the control the new assertion compares the inline copy against.