The best way to control Claude Code, Codex and more from any computer or phone
feat(web): sidebar titles glimmer while they regenerate (#29383)
Co-authored-by: maria-rcks <maria@kuuro.net> Co-authored-by: Julius Marminge <julius0216@outlook.com>
Jake Leventhal committed
Nov 17, 2026 at 01:04 UTC
ccf96b2f65b09506bee0e951d94f61af3e1c4729
3 files changed
+52
-29
apps/web/src/components/chat/TimelineRowParts.tsx
+10
-2
@@ -41,14 +41,22 @@ export function TimelineRowTimestamp({
41
);
42
}
43
44
-export function ActivityShimmerOverlay({ children }: { children: ReactNode }) {
44
+export function ActivityShimmerOverlay({
45
+ children,
46
+ className,
47
+}: {
48
+ children: ReactNode;
49
+ className?: string;
50
+}) {
51
return (
52
<span
53
aria-hidden
54
className="live-activity-focus pointer-events-none absolute inset-y-0 select-none"
55
>
56
<span className="live-activity-focus-counter block">
51
- <span className="live-activity-focus-aligned block text-foreground">{children}</span>
57
+ <span className={cn("live-activity-focus-aligned block text-foreground", className)}>
58
+ {children}
59
+ </span>
60
</span>
61
</span>
62
);
apps/web/src/components/sidebar/SidebarThreadRow.tsx
+41
-26
@@ -123,6 +123,8 @@ import { Kbd } from "../ui/kbd";
123
import { Menu, MenuItem, MenuItemDetail, MenuPopup, MenuSeparator, MenuTrigger } from "../ui/menu";
124
import { Tooltip, TooltipPopup, TooltipTrigger } from "../ui/tooltip";
125
import { MiddleTruncate } from "../ui/middle-truncate";
126
+import { ActivityShimmerOverlay } from "../chat/TimelineRowParts";
127
+import { observeVisibleAnimation } from "~/lib/visibleAnimation";
128
import { useThreadHasUnsentDraft } from "../../composerDraftStore";
129
130
// The fields thread rows show. Provider status pushes refresh `checkedAt`,
@@ -983,7 +985,7 @@ const SidebarThreadRow = memo(function SidebarThreadRow(props: SidebarThreadRowP
985
"group/sidebar-row relative w-full cursor-pointer overflow-hidden rounded-md text-left outline-none select-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring",
986
variantAction === "unsettle" &&
987
!props.isActive &&
986
- "[&:not(:hover):not(:focus-within)_*]:text-secondary-label",
988
+ "[&:not(:hover):not(:focus-within)_*:not(.live-activity-focus_*)]:text-secondary-label",
989
props.isActive
990
? "bg-sidebar-row-active text-sidebar-foreground light:ring-1 light:ring-inset light:ring-sidebar-border/70"
991
: isSelected || props.sweepAction !== null
@@ -1049,33 +1051,38 @@ const SidebarThreadRow = memo(function SidebarThreadRow(props: SidebarThreadRowP
1051
/>
1052
) : (
1053
<span
1054
+ ref={isRegeneratingTitle ? observeVisibleAnimation : undefined}
1055
className={cn(
1056
"min-w-0 flex-1 text-start text-sm transition-opacity motion-reduce:transition-none",
1057
shouldRecede ? "font-normal" : "font-medium",
1055
- variant !== "slim"
1056
- ? cn(
1057
- "truncate",
1058
- shouldRecede
1059
- ? "text-foreground/75 group-hover/sidebar-row:text-foreground group-focus-visible/sidebar-row:text-foreground"
1060
- : status === "failed" && !isUnread && !isWoke
1061
- ? "text-foreground/95"
1062
- : "text-foreground",
1063
- )
1064
- : cn(
1065
- "truncate group-focus-within/sidebar-row:text-foreground group-hover/sidebar-row:text-foreground",
1066
- shouldRecede
1067
- ? "text-secondary-label"
1068
- : props.isActive || isWoke || status === "input" || status === "request"
1069
- ? "text-foreground"
1070
- : isUnread
1071
- ? "text-muted-foreground"
1072
- : "text-secondary-label/70",
1073
- ),
1074
- isRegeneratingTitle && "opacity-55",
1058
+ isRegeneratingTitle
1059
+ ? "relative truncate text-muted-foreground"
1060
+ : variant !== "slim"
1061
+ ? cn(
1062
+ "truncate",
1063
+ shouldRecede
1064
+ ? "text-foreground/75 group-hover/sidebar-row:text-foreground group-focus-visible/sidebar-row:text-foreground"
1065
+ : status === "failed" && !isUnread && !isWoke
1066
+ ? "text-foreground/95"
1067
+ : "text-foreground",
1068
+ )
1069
+ : cn(
1070
+ "truncate group-focus-within/sidebar-row:text-foreground group-hover/sidebar-row:text-foreground",
1071
+ shouldRecede
1072
+ ? "text-secondary-label"
1073
+ : props.isActive || isWoke || status === "input" || status === "request"
1074
+ ? "text-foreground"
1075
+ : isUnread
1076
+ ? "text-muted-foreground"
1077
+ : "text-secondary-label/70",
1078
+ ),
1079
)}
1080
dir={textDirection(thread.title)}
1081
>
1082
{thread.title}
1083
+ {isRegeneratingTitle ? (
1084
+ <ActivityShimmerOverlay className="truncate">{thread.title}</ActivityShimmerOverlay>
1085
+ ) : null}
1086
</span>
1087
);
1088
@@ -1679,6 +1686,7 @@ export const SidebarSearchResultRow = memo(function SidebarSearchResultRow(props
1686
const { leaseLiveStatus, rowRef: leaseRowRef } = useSidebarRowSubscriptionLease(
1687
props.isHighlighted || props.isRouteActive,
1688
);
1689
+ const isRegeneratingTitle = thread.titleRegeneration != null;
1690
const rowRef = (row: HTMLElement | null) => {
1691
setDragNodeRef(row);
1692
return leaseRowRef(row);
@@ -1789,16 +1797,23 @@ export const SidebarSearchResultRow = memo(function SidebarSearchResultRow(props
1797
<span className="flex min-w-0 flex-1 flex-col">
1798
<span className="flex min-w-0 items-center gap-2.5">
1799
<span
1800
+ ref={isRegeneratingTitle ? observeVisibleAnimation : undefined}
1801
className={cn(
1802
"min-w-0 flex-1 truncate",
1794
- props.isSettled
1795
- ? "font-normal text-secondary-label/70 group-hover/sidebar-row:text-foreground"
1796
- : "font-medium text-foreground",
1797
- (props.isHighlighted || props.isRouteActive) && "text-foreground",
1798
- thread.titleRegeneration != null && "opacity-55",
1803
+ props.isSettled ? "font-normal" : "font-medium",
1804
+ isRegeneratingTitle
1805
+ ? "relative text-muted-foreground"
1806
+ : props.isSettled && !props.isHighlighted && !props.isRouteActive
1807
+ ? "text-secondary-label/70 group-hover/sidebar-row:text-foreground"
1808
+ : "text-foreground",
1809
)}
1810
>
1811
{thread.title}
1812
+ {isRegeneratingTitle ? (
1813
+ <ActivityShimmerOverlay className="truncate">
1814
+ {thread.title}
1815
+ </ActivityShimmerOverlay>
1816
+ ) : null}
1817
</span>
1818
<span id={`${props.resultId}-pr`} className="contents">
1819
<ThreadSearchPullRequestNumber
apps/web/src/index.css
+1
-1
@@ -657,7 +657,7 @@ html[data-mobile-composer-route-transition="true"]::view-transition-old(t3-mobil
657
658
@utility live-activity-focus-aligned {
659
width: calc(100% - var(--live-activity-focus-width) - var(--live-activity-focus-width));
660
- margin-left: var(--live-activity-focus-width);
660
+ margin-inline-start: var(--live-activity-focus-width);
661
}
662
663
@property --assistant-citation-highlight-opacity {