Skip to content

Let the user's sent words run to the thread's column - #4109

Merged
max-sixty merged 2 commits into
mainfrom
sent-message-wrapping
Oct 25, 2026
Merged

max-sixty merged 2 commits into
mainfrom
sent-message-wrapping

Conversation

@max-sixty

@max-sixty max-sixty commented Oct 25, 2026 •

Copy link
Copy Markdown
Owner

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. test_a_draft_draws_a_list_as_the_message_will now 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.

This was written by Claude Code on behalf of max-sixty

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 leaf-agent left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[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]>
@max-sixty
max-sixty merged commit 846f07a into main Oct 25, 2026
4 checks passed
@max-sixty
max-sixty deleted the sent-message-wrapping branch October 25, 2026 20:15
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.

2 participants