The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 22, 09:30 UTC
fix(web): sidebar jump hints are readable and sit in the status slot (#26112)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: maria-rcks <maria@kuuro.net>
G-R3 committed
Oct 31, 2026 at 22:34 UTC
1dacdb9460068e216057f6fd9ea982c1f155a065
1 file changed
+11
-7
apps/web/src/components/sidebar/SidebarThreadRow.tsx
+11
-7
@@ -109,6 +109,7 @@ import { getTriggerDisplayModelName } from "../chat/providerIconUtils";
109
import { shouldShowInstanceBadge, type ProviderInstanceEntry } from "../../providerInstances";
110
import { useThreadRunningTerminalIds } from "../../state/terminalSessions";
111
import { InlineButton } from "../ui/button";
112
+import { Kbd } from "../ui/kbd";
113
import { Menu, MenuItem, MenuPopup, MenuSeparator, MenuShortcut, MenuTrigger } from "../ui/menu";
114
import { Tooltip, TooltipPopup, TooltipTrigger } from "../ui/tooltip";
115
import { MiddleTruncate } from "../ui/middle-truncate";
@@ -150,15 +151,15 @@ function threadTimeTimestamp(thread: SidebarThreadSummary): string {
151
152
function JumpHintBadge(props: { label: string }) {
153
return (
153
- <span
154
- aria-hidden
155
- className="pointer-events-none absolute right-1.5 top-1/2 z-10 inline-flex h-5 -translate-y-1/2 items-center rounded-full border border-border/80 bg-background/95 px-1.5 font-mono text-3xs font-medium tracking-tight text-foreground shadow-sm"
156
- >
154
+ <Kbd aria-hidden data-jump-hint>
155
{props.label}
158
- </span>
156
+ </Kbd>
157
);
158
}
159
160
+const JUMP_HINT_SLOT_CLASS_NAME =
161
+ "[&>:not([data-jump-hint])]:invisible [&>:not([data-jump-hint])]:absolute";
162
+
163
function WorkingDuration(props: { startedAt: string | null }) {
164
const startedMs = props.startedAt !== null ? Date.parse(props.startedAt) : Number.NaN;
165
if (Number.isNaN(startedMs)) return null;
@@ -931,6 +932,7 @@ const SidebarThreadRow = memo(function SidebarThreadRow(props: SidebarThreadRowP
932
// Closing here, not just masking, keeps the menu from reopening when the button returns.
933
if (snoozeMenuOpenRaw && !showSnoozeButton) setSnoozeMenuOpen(false);
934
const snoozeMenuOpen = snoozeMenuOpenRaw && showSnoozeButton;
935
+ const jumpHintLabel = snoozeMenuOpen ? null : props.jumpLabel;
936
const handlePrClick = (event: ReactMouseEvent<HTMLElement>, targetUrl?: string) => {
937
const url = targetUrl ?? pr?.url ?? currentLinkedPr?.url;
938
if (!url) return;
@@ -1262,6 +1264,7 @@ const SidebarThreadRow = memo(function SidebarThreadRow(props: SidebarThreadRowP
1264
className={cn(
1265
"relative ml-auto flex h-6 min-w-8 shrink-0 items-center justify-end",
1266
props.sweepAction !== null && "hidden",
1267
+ jumpHintLabel && JUMP_HINT_SLOT_CLASS_NAME,
1268
)}
1269
>
1270
<span
@@ -1372,12 +1375,12 @@ const SidebarThreadRow = memo(function SidebarThreadRow(props: SidebarThreadRowP
1375
<TooltipPopup side="top">Settle thread</TooltipPopup>
1376
</Tooltip>
1377
)}
1378
+ {jumpHintLabel ? <JumpHintBadge label={jumpHintLabel} /> : null}
1379
</span>
1380
)}
1381
{props.sweepAction !== null ? dragDestination : null}
1382
</div>
1383
{multiline ? metaLine : null}
1380
- {props.jumpLabel ? <JumpHintBadge label={props.jumpLabel} /> : null}
1384
</TooltipTrigger>
1385
{detailsTooltip}
1386
</Tooltip>
@@ -1448,6 +1451,7 @@ const SidebarThreadRow = memo(function SidebarThreadRow(props: SidebarThreadRowP
1451
className={cn(
1452
"group/sidebar-status-slot relative ml-auto flex h-5 min-w-8 shrink-0 items-stretch justify-end text-xs",
1453
props.sweepAction !== null && "hidden",
1454
+ jumpHintLabel && JUMP_HINT_SLOT_CLASS_NAME,
1455
)}
1456
>
1457
<span
@@ -1563,6 +1567,7 @@ const SidebarThreadRow = memo(function SidebarThreadRow(props: SidebarThreadRowP
1567
) : null}
1568
</span>
1569
) : null}
1570
+ {jumpHintLabel ? <JumpHintBadge label={jumpHintLabel} /> : null}
1571
</span>
1572
)}
1573
{props.sweepAction !== null ? dragDestination : null}
@@ -1578,7 +1583,6 @@ const SidebarThreadRow = memo(function SidebarThreadRow(props: SidebarThreadRowP
1583
</div>
1584
{metaLine}
1585
</div>
1581
- {props.jumpLabel ? <JumpHintBadge label={props.jumpLabel} /> : null}
1586
</TooltipTrigger>
1587
{detailsTooltip}
1588
</Tooltip>