Repository navigation
Draw the margin card's Reply as its editor at rest, so its c key shows - #1294
Merged
Merged
Conversation
A margin card's Reply box never showed the `c` key while the card was at rest, though `c` landed in it and the shortcut bar said "comment on the thread". The card drew its Reply as a stand-in button (`.lf-reply-disclosure`) over a hidden editor. `c`, the key badge and landing all name the editor, so the badge was painted on a box the user could not see. It showed only after the reply had been opened once and left open, for example after `c` then Escape, or once a draft existed. #1204 fixed which box `c` reaches, and its invariant test read the badge from the editor's `placeholder` attribute. That attribute records the hint whether or not it is drawn, so the test passed on every route while the key was invisible on eight of its ten. The stand-in had matched the empty editor's box and face since #1165, so it no longer changed how the card looked, only which node was on screen. The card now draws the editor itself, as the Threads panel does. The collapse/reveal state goes with the stand-in: its CSS, `lfCollapseReply`, and the collapse on closing the card. `lfRevealReply` remains the Threads panel's reveal. Behavior that moves: - At rest the card shows the editor's `Reply c` hint and its disabled send glyph. - Tab from the thread lands in the text box, as in the Threads panel, rather than on a button that left page keys live. - A press on the resting Reply focuses the editor directly instead of running the thread landing, which re-scrolled the page to the passage the card already stands beside. Tests: `test_c_lands_where_its_badge_is_and_in_the_card_on_screen` also requires the drawn key to be visible whenever a card is up. It fails on eight routes against the previous runtime and passes on all ten now. Margin, navigation, chrome-contract and draft tests that pressed the stand-in now press the editor, and assertions that the editor was hidden at rest are gone. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
leaf-agent
approved these changes
Sep 27, 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.
A margin card's Reply box never showed the
ckey while the card was at rest, thoughclanded in it and the shortcut bar said "comment on the thread". The card drew its Reply as a stand-in button (.lf-reply-disclosure) over a hidden editor.c, the key badge and landing all name the editor, so the badge was painted on a box the user could not see. The key appeared only after the reply had been opened and left open, for example aftercthen Escape, or once a draft existed.#1204 fixed which box
creaches, and its invariant test read the badge from the editor'splaceholderattribute. That attribute records the hint whether or not it is drawn, so the test passed on every route while the key was invisible on eight of its ten.The stand-in had matched the empty editor's box and face since #1165, so it no longer changed how the card looked, only which node was on screen. The card now draws the editor itself, as the Threads panel does. The collapse/reveal state goes with the stand-in: its CSS,
lfCollapseReply, and the collapse on closing the card.lfRevealReplyremains the Threads panel's reveal.Behavior that moves
Reply chint and its disabled send glyph.Tests
test_c_lands_where_its_badge_is_and_in_the_card_on_screenalso requires the drawn key to be visible whenever a card is up. It fails on eight routes against the previous runtime and passes on all ten now. Margin, navigation, chrome-contract and draft tests that pressed the stand-in now press the editor, and assertions that the editor was hidden at rest are gone.Local:
uv run pytest tests1451 passed;npm run test:runtime139 passed. Across the six affected browser files including nightly tests, the branch fails the same 13 tests as its merge-base (6e3897a), plus one Threads-panel scroll test that passes alone.🤖 Generated with Claude Code