From 7a2329c642394518b02fc6c75edee5a815d1c8e2 Mon Sep 17 00:00:00 2001 From: Julius Marminge Date: Fri, 20 Nov 2026 19:02:49 -0800 Subject: [PATCH 1/4] fix(web): timeline row actions no longer jump when the row is hovered The hover timestamp was the last item in a work row's trailing slot, so revealing it pushed Sign in, Open chat, Open subagent and the expand chevron sideways. The timestamp now comes first and takes label space. MCP Sign in sits inline after the notice text, and that row keeps the timestamp's space reserved so the button stays put at any width. Co-Authored-By: Claude Opus 5.5 --- .../components/chat/TimelineWorkEntryRow.tsx | 38 ++++++++++++------- 1 file changed, 25 insertions(+), 13 deletions(-) diff --git a/apps/web/src/components/chat/TimelineWorkEntryRow.tsx b/apps/web/src/components/chat/TimelineWorkEntryRow.tsx index 7d9cbbb491dd2..eb90db194991d 100644 --- a/apps/web/src/components/chat/TimelineWorkEntryRow.tsx +++ b/apps/web/src/components/chat/TimelineWorkEntryRow.tsx @@ -417,6 +417,18 @@ function WorkEntryLogRow(props: WorkEntryRowProps) { : null; const viewedImagePath = workEntryViewedImagePath(workEntry); const payload = workEntry.structuredPayload; + const mcpSignIn = + payload?.type === "system_notice" && + payload.mcpSignIn !== undefined && + payload.providerThreadId !== null ? ( + + ) : null; const skill = payload?.type === "dynamic_tool" ? claudeSkillInvocation(payload.toolName, payload.input) @@ -545,7 +557,11 @@ function WorkEntryLogRow(props: WorkEntryRowProps) {

{isReasoning && !expanded ? ( ) : null} + {mcpSignIn}

} trailing={ <> + {/* First, so revealing it takes label space instead of moving the controls. A label + that ends in an action keeps that space reserved, so the action stays put too. */} + {createdThread ? ( ) : null} - {payload?.type === "system_notice" && - payload.mcpSignIn !== undefined && - payload.providerThreadId !== null ? ( - - ) : null} {notifiedSubagentThreadId ? ( ) : null} - } > From 806a456b6893885de61bca2e06d79a812e274cf5 Mon Sep 17 00:00:00 2001 From: Julius Marminge Date: Fri, 20 Nov 2026 19:07:47 -0800 Subject: [PATCH 2/4] fix(web): MCP sign-in notices drop the expand chevron A sign-in notice is a single line, so expanding it only repeated the row, and its chevron sat alone at the far right once Sign in moved inline. Co-Authored-By: Claude Opus 5.5 --- apps/web/src/components/chat/TimelineWorkEntryRow.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/web/src/components/chat/TimelineWorkEntryRow.tsx b/apps/web/src/components/chat/TimelineWorkEntryRow.tsx index eb90db194991d..315dbf3952513 100644 --- a/apps/web/src/components/chat/TimelineWorkEntryRow.tsx +++ b/apps/web/src/components/chat/TimelineWorkEntryRow.tsx @@ -479,8 +479,10 @@ function WorkEntryLogRow(props: WorkEntryRowProps) { plainOutput !== undefined && workEntry.projectedItem !== undefined && turnItemNeedsDetailFetch(workEntry.projectedItem.item); + // A sign-in notice is one line, so expanding it would only repeat the row. const canExpandProjectedItem = - plainOutput !== undefined + mcpSignIn === null && + (plainOutput !== undefined ? Boolean(plainOutput || viewedImage || workEntry.questionAnswer || plainOutputFetches) : workEntry.projectedItem === undefined ? canExpand @@ -490,7 +492,7 @@ function WorkEntryLogRow(props: WorkEntryRowProps) { viewedImage || workEntry.questionAnswer || turnItemHasDetail(workEntry.projectedItem.item), - ); + )); const iconWrapperClass = cn( "flex size-4 items-center justify-center", showWarningIndicator From 0598f30c7a0842153fff7bb5c69ae7bdab7ea880 Mon Sep 17 00:00:00 2001 From: Julius Marminge Date: Fri, 20 Nov 2026 19:18:30 -0800 Subject: [PATCH 3/4] fix(web): notices expand only when their text is cut off A notice's details repeat its row, so a notice that fits was expandable for nothing, while a cut-off sign-in notice could not be read at all. Notices now measure their label and expand exactly when it overflows, and keep the hover timestamp's space reserved so hovering never changes what fits. Co-Authored-By: Claude Opus 5.5 --- .../components/chat/TimelineWorkEntryRow.tsx | 28 +++++++++++++++---- 1 file changed, 22 insertions(+), 6 deletions(-) diff --git a/apps/web/src/components/chat/TimelineWorkEntryRow.tsx b/apps/web/src/components/chat/TimelineWorkEntryRow.tsx index 315dbf3952513..11145bd56e733 100644 --- a/apps/web/src/components/chat/TimelineWorkEntryRow.tsx +++ b/apps/web/src/components/chat/TimelineWorkEntryRow.tsx @@ -27,7 +27,7 @@ import { } from "@t3tools/client-runtime/work-log/item-detail"; import { claudeSkillInvocation } from "@t3tools/shared/toolActivity"; import { msg, T, useGT, useMessages, Var } from "gt-react"; -import { memo, use, useState, type KeyboardEvent } from "react"; +import { memo, use, useLayoutEffect, useRef, useState, type KeyboardEvent } from "react"; import { workEntryDisplayIndicatesToolFailure, workEntrySignalsSevereFailure, @@ -42,6 +42,7 @@ import * as DateTime from "effect/DateTime"; import { ChevronRightIcon, CircleAlertIcon, XIcon, RotateCcwIcon } from "lucide-react"; import { Button, InlineButton } from "../ui/button"; import { useAssetUrls } from "../../assets/assetUrls"; +import { observeResize } from "../../lib/observeResize"; import { useThreadShell } from "../../state/entities"; import { threadReadTargetId, @@ -300,6 +301,20 @@ function WorkEntryLogRow(props: WorkEntryRowProps) { const [expanded, setExpanded] = useState( () => groupView?.state.expandedEntries.has(workEntry.id) ?? false, ); + const noticeMessage = + workEntry.structuredPayload?.type === "system_notice" + ? workEntry.structuredPayload.message + : null; + const labelRef = useRef(null); + const [noticeCutOff, setNoticeCutOff] = useState(false); + // oxlint-disable-next-line t3code/no-unreasoned-state-sync -- only layout knows whether a notice fits its row + useLayoutEffect(() => { + const label = labelRef.current; + if (!label || noticeMessage === null) return; + const measure = () => setNoticeCutOff(label.scrollWidth > label.clientWidth); + measure(); + return observeResize(label, measure); + }, [noticeMessage]); const onInitialOutputReady = () => { if (groupView) groupView.onContentReady?.(workEntry.id); else props.onContentReady?.(); @@ -479,9 +494,9 @@ function WorkEntryLogRow(props: WorkEntryRowProps) { plainOutput !== undefined && workEntry.projectedItem !== undefined && turnItemNeedsDetailFetch(workEntry.projectedItem.item); - // A sign-in notice is one line, so expanding it would only repeat the row. + // A notice's details repeat its row, so it expands only to show text the row cuts off. const canExpandProjectedItem = - mcpSignIn === null && + (noticeMessage === null || noticeCutOff) && (plainOutput !== undefined ? Boolean(plainOutput || viewedImage || workEntry.questionAnswer || plainOutputFetches) : workEntry.projectedItem === undefined @@ -559,6 +574,7 @@ function WorkEntryLogRow(props: WorkEntryRowProps) {

- {/* First, so revealing it takes label space instead of moving the controls. A label - that ends in an action keeps that space reserved, so the action stays put too. */} + {/* First, so revealing it takes label space instead of moving the controls. Notices + keep that space reserved, so hovering never changes what fits or moves Sign in. */} {createdThread ? (