diff --git a/apps/web/src/components/chat/MessagesTimeline.tsx b/apps/web/src/components/chat/MessagesTimeline.tsx
index 2c7dffca77bc4..1dd98645139d7 100644
--- a/apps/web/src/components/chat/MessagesTimeline.tsx
+++ b/apps/web/src/components/chat/MessagesTimeline.tsx
@@ -1690,7 +1690,6 @@ const TimelineRowContent = memo(function TimelineRowContent({ row }: { row: Time
row.kind === "assistant-meta"
? "group/assistant"
: null,
- "group/sub-thread-row",
)}
data-timeline-row-id={row.id}
data-timeline-row-kind={row.kind}
diff --git a/apps/web/src/components/chat/TimelineAssistantRows.tsx b/apps/web/src/components/chat/TimelineAssistantRows.tsx
index 7d2de1e2bb1ee..d3e090cbea0cf 100644
--- a/apps/web/src/components/chat/TimelineAssistantRows.tsx
+++ b/apps/web/src/components/chat/TimelineAssistantRows.tsx
@@ -41,7 +41,7 @@ import { MESSAGE_HEADING_LEVEL, MessageAuthorHeading } from "./TimelineRowParts"
import { useAtomValue } from "@effect/atom-react";
import { AsyncResult, Atom } from "effect/reactivity";
import { vcsEnvironment } from "../../state/vcs";
-import { SubThreadReplyLine } from "../../fork/subThreads/SubThreadReplyLine";
+import { SubThreadMetaReply, SubThreadReplyLine } from "../../fork/subThreads/SubThreadReplyLine";
import { AgentMessageDivider } from "../../fork/displayMode/AgentMessageDivider";
import { EditedMark } from "../../fork/displayMode/EditedMark";
@@ -291,6 +291,7 @@ function AssistantMessageMeta({
)}
+
);
}
diff --git a/apps/web/src/fork/subThreads/SubThreadReplyLine.tsx b/apps/web/src/fork/subThreads/SubThreadReplyLine.tsx
index 53fe0326c4d39..68d5d76024a49 100644
--- a/apps/web/src/fork/subThreads/SubThreadReplyLine.tsx
+++ b/apps/web/src/fork/subThreads/SubThreadReplyLine.tsx
@@ -92,28 +92,30 @@ function ReplyLine(props: {
}
/**
- * The Reply slot's height with a mouse: the button's 16px less the row's bottom padding, so the
- * button stays inside the row, which the list clips. Mirrors TimelineRowContent's message padding:
- * pb-1 when grouped with the next row, pb-2 for an agent message with no meta, else pb-4.
+ * Height of the Reply slot with a mouse. The Reply button is 16px tall, and the list clips
+ * anything outside the row, so the slot is 16px minus the row's bottom padding. For an agent
+ * message with no meta row (the Copy and time line), TimelineRowContent sets pb-1 (4px) when
+ * grouped with the next row and pb-2 (8px) otherwise, giving h-3 or h-2.
*/
const fineSlotHeight = (row: Extract) =>
- row.groupedWithNext
- ? "h-3"
- : row.message.role === "assistant" && !row.showAssistantMeta
- ? "h-2"
- : "h-0";
+ row.groupedWithNext ? "h-3" : "h-2";
/**
- * At the end of one of the agent's main-list rows that has no reply yet: a Reply button, since the
- * user follows up on what the agent said. With a mouse it shows while the pointer is on the row, in
- * the row's bottom padding and a slot that tops it up. On a touch screen it always shows and has its
- * own height, so it stays clear of the next row.
+ * Reply button under an agent's main-list message with no replies yet and no meta row (the line
+ * with Copy and the time). Rows with a meta row use SubThreadMetaReply instead. With a mouse, it
+ * shows on row hover or focus and sits in the row's bottom padding plus a slot. On touch, it
+ * always shows with its own height so it clears the next row.
*/
export function SubThreadReplyButton(props: {
readonly row: Extract;
}) {
const subThread = useRowSubThread(props.row.id);
- if (subThread === null || props.row.message.role === "user" || subThread.summary.replies > 0)
+ if (
+ subThread === null ||
+ props.row.message.role === "user" ||
+ props.row.showAssistantMeta ||
+ subThread.summary.replies > 0
+ )
return null;
const { threadRef, summary } = subThread;
return (
@@ -121,7 +123,7 @@ export function SubThreadReplyButton(props: {