Repository navigation
Let the user's sent words run to the thread's column - #4109
Merged
Merged
Conversation
A message the user sent ended its lines up to 86px short of the agent's reply under it: 86px in the floating panel and 41px in a thread on the page, the room Send takes in the field it was typed in. #3679, a CI fix, narrowed the panel's user messages to the field's width so a draft's list would wrap as the sent message does; #3737 and #3813 widened that room to Send's on every surface. No review weighed the cost to every message the user reads back. A user's message now ends the thread's text inset short of the column (8px in the panel, 13px on the page), as far in as it starts, which is the room its rewrite's frame stands in, so a rewrite still keeps every line where it stood and its frame inside the reply box's width. That makes the rewrite's reach past the column (`--lf-msg-edit-past-end`) always zero, so it goes, with the panel's own sum and the root copy of `--lf-compose-send-end`. A margin card keeps its messages on the comment box's column, as before. Behavior change: a reply typed in the panel or a page thread can rewrap when sent, as one typed in a margin card already did. `test_the_user_s_words_end_where_the_agent_s_do` fails on main by 86px (panel) and 41px (page) and passes here. > _This was written by Claude Code on behalf of max-sixty_ Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
leaf-agent
reviewed
Oct 25, 2026
leaf-agent
left a comment
Collaborator
There was a problem hiding this comment.
[P2] Update the existing list-rendering test for the new send contract. test_a_draft_draws_a_list_as_the_message_will still compares every item's vertical position and the total draft/message height. Running that node on this head fails: the draft is 368px tall and the sent message 347px, with later items shifted up one line. That is consistent with the intentional rewrap, but leaves main's browser suite failing. Keep the list marker, indentation and formatting coverage while removing its assumption that unequal text columns produce identical wrapping and height.
Its three-line item wrapped a line shorter in the sent message's wider column, so the draft and the message no longer stood at one height. The list markers, insets and blank-line spacing the test protects don't depend on the column's width. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
leaf-agent
approved these changes
Oct 25, 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 message the user sent ended its lines up to 86px short of the agent's reply under it: 86px in the floating panel and 41px in a thread on the page, the room Send takes in the field it was typed in. #3679, a CI fix, narrowed the panel's user messages to the field's width so a draft's list would wrap as the sent message does; #3737 and #3813 widened that room to Send's on every surface. No review weighed the cost to every message the user reads back.
A user's message now ends the thread's text inset short of the column (8px in the panel, 13px on the page), as far in as it starts, which is the room its rewrite's frame stands in, so a rewrite still keeps every line where it stood and its frame inside the reply box's width. That makes the rewrite's reach past the column (
--lf-msg-edit-past-end) always zero, so it goes, with the panel's own sum and the root copy of--lf-compose-send-end. A margin card keeps its messages on the comment box's column, as before.Behavior change: a reply typed in the panel or a page thread can rewrap when sent, as one typed in a margin card already did.
test_the_user_s_words_end_where_the_agent_s_dofails on main by 86px (panel) and 41px (page) and passes here.test_a_draft_draws_a_list_as_the_message_willnow gives its long list item two lines' worth of words, which wrap to two lines in the field and in the wider sent column alike; its three-line item wrapped a line shorter once sent.