Skip to content

feat(fork): move Chat sub-thread Reply right of the time - #262

Merged
orbitingflea merged 1 commit into
mainfrom
feat/subthread-reply-inline
Nov 23, 2026
Merged

orbitingflea merged 1 commit into
mainfrom
feat/subthread-reply-inline

Conversation

@orbitingflea

Copy link
Copy Markdown
Owner

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

  • SubThreadMetaReply in SubThreadReplyLine.tsx renders Reply right of the time and inherits hover, focus, and touch visibility. Row height stays fixed on hover.
  • SubThreadReplyButton skips rows with a meta row and uses group/assistant. Older rows without a meta row keep it.
  • Upstream TimelineAssistantRows.tsx edits 1 import line and adds 1 SubThreadMetaReply line. MessagesTimeline.tsx removes 1 group/sub-thread-row line.
  • Replied messages, Normal mode, the sub-thread view, and README stay unchanged.

Tradeoffs

A plain <button> keeps 12px text at all widths because shared Button xs grows on narrow screens and lint blocks restyling it. Keying on message.id is safe because those agent messages have no run id, so their meta row never moves below tool rows.

Verification

  • subThreadReplyButton.browser.test.tsx failed before and passes at 1194px and 361px for 2px alignment, one flex row, Enter, and replied rows.
  • Sub-thread cite, display-mode timeline, format, lint, knip, typecheck, and React compiler checks pass.
  • Desktop and phone touch screenshots show one meta row with nothing cut off.

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>
@github-actions github-actions Bot added vouch:trusted Author is trusted by repo permissions or the VOUCHED list. size:M labels Nov 23, 2026
@github-actions

Copy link
Copy Markdown

This PR changes the test suite by +3 test cases (browser +3, unit 0, server 0).

New browser test files: apps/web/src/fork/subThreads/subThreadReplyButton.browser.test.tsx.
Each browser test file costs CI seconds of module loading before its first test runs; a unit test costs milliseconds.

Keep tests that would fail for a real reason, and test logic below the UI where it can be. See Testing.

@orbitingflea
orbitingflea merged commit b1551ba into main Nov 23, 2026
27 checks passed
@orbitingflea
orbitingflea deleted the feat/subthread-reply-inline branch November 23, 2026 01:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:M vouch:trusted Author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant