Repository navigation
feat(fork): move Chat sub-thread Reply right of the time - #262
Merged
Merged
Conversation
In the Chat main list, an agent message with no replies showed its Reply button on a second line under the Copy button and the time. Reply now ends the meta row itself, so the metadata under a message is one row: Copy, time, Reply. It shows and hides with that row, on hover, on keyboard focus, and always on touch screens. An agent message drawn without a meta row keeps the old Reply under the message. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
This PR changes the test suite by +3 test cases (browser +3, unit 0, server 0). New browser test files: Keep tests that would fail for a real reason, and test logic below the UI where it can be. See Testing. |
1 task
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.
Behaviour change
Behaviour change: yes, Chat mode users see the Reply button on the same row as Copy and the time, instead of on a second row.
Why
This change moves Chat mode's Reply button onto the meta row, right of the time, so controls stay on one row. Before, unanswered agent messages put Reply on a second row and added a line on touch screens.
What changed
SubThreadMetaReplyinSubThreadReplyLine.tsxrenders Reply right of the time and inherits hover, focus, and touch visibility. Row height stays fixed on hover.SubThreadReplyButtonskips rows with a meta row and usesgroup/assistant. Older rows without a meta row keep it.TimelineAssistantRows.tsxedits 1 import line and adds 1SubThreadMetaReplyline.MessagesTimeline.tsxremoves 1group/sub-thread-rowline.Tradeoffs
A plain
<button>keeps 12px text at all widths because sharedButtonxsgrows on narrow screens and lint blocks restyling it. Keying onmessage.idis safe because those agent messages have no run id, so their meta row never moves below tool rows.Verification
subThreadReplyButton.browser.test.tsxfailed before and passes at 1194px and 361px for 2px alignment, one flex row, Enter, and replied rows.