The best way to control Claude Code, Codex and more from any computer or phone
fix(web): wrap interruption footers as one sentence (#34649)
Yash Singh committed
Nov 11, 2026 at 18:02 UTC
c0b67b7631c26fe9c6d50e907d3fd3f9ac2e6bf1
1 file changed
+22
-6
apps/web/src/components/chat/TimelineSystemDivider.tsx
+22
-6
@@ -17,14 +17,22 @@ export function TimelineSystemDivider(props: {
17
const Icon = props.icon;
18
const content = (
19
<>
20
- {Icon ? <Icon className="size-3 shrink-0" /> : null}
21
- <span className="font-medium">{props.label}</span>
20
+ <span
21
+ className={cn(
22
+ "inline-flex items-center gap-1.5 align-baseline font-medium",
23
+ props.wrapDetail && "shrink-0 whitespace-nowrap",
24
+ )}
25
+ >
26
+ {Icon ? <Icon className="size-3 shrink-0 self-center" /> : null}
27
+ {props.label}
28
+ </span>
29
{props.detail ? (
30
<span
31
className={cn(
25
- "inline-flex min-w-0 items-center opacity-70",
32
+ "min-w-0 opacity-70",
33
+ props.wrapDetail ? "ml-1.5 wrap-anywhere" : "inline-flex items-center",
34
typeof props.detail === "string" &&
27
- (props.wrapDetail ? "max-w-80 whitespace-pre-wrap" : "max-w-80 truncate"),
35
+ (props.wrapDetail ? "whitespace-pre-wrap" : "max-w-80 truncate"),
36
)}
37
>
38
{props.showDetailSeparator === false ? null : "·\u00a0"}
@@ -50,7 +58,10 @@ export function TimelineSystemDivider(props: {
58
type="button"
59
aria-label={props.actionLabel}
60
onClick={props.onAction}
53
- className="flex min-w-0 cursor-pointer items-center gap-1.5 rounded-full border border-border/70 bg-background px-2.5 py-1 transition-colors hover:bg-accent hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring/70"
61
+ className={cn(
62
+ "min-w-0 cursor-pointer rounded-full border border-border/70 bg-background px-2.5 py-1 transition-colors hover:bg-accent hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring/70",
63
+ props.wrapDetail ? "text-center" : "flex items-center gap-1.5",
64
+ )}
65
/>
66
}
67
>
@@ -59,7 +70,12 @@ export function TimelineSystemDivider(props: {
70
<TooltipPopup side="top">{props.actionLabel}</TooltipPopup>
71
</Tooltip>
72
) : (
62
- <span className="flex min-w-0 flex-wrap items-center justify-center gap-1.5 rounded-full px-2 py-1">
73
+ <span
74
+ className={cn(
75
+ "min-w-0 rounded-full px-2 py-1",
76
+ props.wrapDetail ? "text-center" : "flex flex-wrap items-center justify-center gap-1.5",
77
+ )}
78
+ >
79
{content}
80
</span>
81
)}