Repository navigation
Ring the card, not the message, when a message in a card holds focus - #4558
Merged
Merged
Conversation
Next on me lands focus on the agent reply it reaches. In a margin card that message wore a ring of its own, drawn over its sticky head since #4556: a frame inside the card, the frame-in-a-frame the card's own rule records rejecting for the thread. The card now wears the ring for a focused message as it does for the focused thread, since the keys that message answers (r, Enter) act on its thread, and the message draws none. The card test now expects the ring on the card face. Firefox showed the old message ring cut at the transcript's end too, which the card ring avoids. Co-Authored-By: Claude <[email protected]>
leaf-agent
approved these changes
Oct 28, 2026
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.
Next on me focuses the agent reply it lands on. In a margin card, #4556 drew that message its own whole ring over its sticky head. The card already wears the ring when its thread has focus ("the card is the thread's one frame"), so a message ring inside it made a frame in a frame, and the user asked for the card to wear it instead.
The change (
browser/runtime/annotation-overlay/annotation-chrome.css): the card's ring rule also matches a card whose thread holds a focused message, and a focused card message draws no ring of its own. This removes #4556's positioned::afterring. Only the card builds.lf-margin-thread, so messages in the panel and in page threads keep their own ring.Tests:
test_a_reply_next_on_me_lands_on_rings_its_card(tests/browser/margin/test_card_reply.py) pressesmonto a long reply in a card and expects the focused message, the card as the only ring worn, and no ring faults, which includes the pixel reading #4556 added. Theship-card-message-keyboardstill's docstring now describes the card's ring.