@devries-cameron20 / t3code Mirror · read-only / commits / e6d487e4f5
Fork 0

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 24, 14:00 UTC

fix(web): delay thread shortcut hints by 200 ms (#8172)

Theo Browne committed Aug 25, 2026 at 00:01 UTC e6d487e4f5d3cd049dbb373c7ca74192302443ae
2 files changed +8 -5
apps/web/src/components/Sidebar.logic.ts
+1 -1
@@ -15,7 +15,7 @@ import { isLatestTurnSettled } from "../session-logic";
15 import { resolveServerBackedAppStageLabel } from "../branding.logic";
16
17 export const THREAD_SELECTION_SAFE_SELECTOR = "[data-thread-item], [data-thread-selection-safe]";
18 -export const THREAD_JUMP_HINT_SHOW_DELAY_MS = 100;
18 +export const THREAD_JUMP_HINT_SHOW_DELAY_MS = 200;
19 // Visible sidebar rows are prewarmed into the thread-detail cache so opening a
20 // nearby thread usually reuses an already-hot subscription. Each prewarmed
21 // thread holds a live, fully hydrated detail subscription (all messages and
apps/web/src/components/Sidebar.tsx
+7 -4
@@ -142,6 +142,7 @@ import {
142 sortPinnedThreadsForSidebar,
143 sortSettledThreadsForSidebar,
144 sortThreadsForSidebar,
145 + useThreadJumpHintVisibility,
146 } from "./Sidebar.logic";
147 import { resolveLocalCheckoutBranchMismatch } from "./BranchToolbar.logic";
148 import {
@@ -2308,7 +2309,7 @@ export default function Sidebar() {
2309 }
2310 return mapping;
2311 }, [keybindings, orderedThreadKeys]);
2311 - const [showJumpHints, setShowJumpHints] = useState(false);
2312 + const { showThreadJumpHints, updateThreadJumpHintsVisibility } = useThreadJumpHintVisibility();
2313
2314 // Settled threads are live shells, so opening one is plain navigation:
2315 // history stays readable without un-settling, and sending a message or
@@ -3342,8 +3343,8 @@ export default function Sidebar() {
3343 },
3344 );
3345 useEffect(() => {
3345 - setShowJumpHints(shouldShowJumpHintsNow);
3346 - }, [shouldShowJumpHintsNow]);
3346 + updateThreadJumpHintsVisibility(shouldShowJumpHintsNow);
3347 + }, [shouldShowJumpHintsNow, updateThreadJumpHintsVisibility]);
3348
3349 const attachListAutoAnimateRef = useCallback((node: HTMLUListElement | null) => {
3350 if (!node) return;
@@ -3721,7 +3722,9 @@ export default function Sidebar() {
3722 wokeAt={threadWokeAt(thread, { now: snoozeNow })}
3723 isActive={routeThreadKey === threadKey}
3724 openPullRequestsInRightPanel={routeThreadRef !== null}
3724 - jumpLabel={showJumpHints ? (jumpLabelByKey.get(threadKey) ?? null) : null}
3725 + jumpLabel={
3726 + showThreadJumpHints ? (jumpLabelByKey.get(threadKey) ?? null) : null
3727 + }
3728 currentEnvironmentId={primaryEnvironmentId}
3729 environmentLabel={environmentLabelById.get(thread.environmentId) ?? null}
3730 projectCwd={