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, 15:15 UTC
fix(desktop): keep release notes visible while downloading (#6412)
Exotic committed
Aug 24, 2026 at 01:53 UTC
b4be33f0747445f1c9df126e932c7b9792f322d5
1 file changed
+15
-7
apps/web/src/components/sidebar/SidebarUpdatePill.tsx
+15
-7
@@ -179,11 +179,12 @@ function SidebarUpdateControl() {
179
: showUpdateDetails
180
? isDesktopUpdateButtonDisabled(state)
181
: !canCheckForUpdate(state);
182
+ const isInteractionDisabled = disabled || isActionPending;
183
184
const handleAction = useCallback(async () => {
185
const bridge = window.desktopBridge;
186
if (!bridge || !state) return;
186
- if (disabled || isActionPending) return;
187
+ if (isInteractionDisabled) return;
188
189
setIsActionPending(true);
190
@@ -293,7 +294,7 @@ function SidebarUpdateControl() {
294
);
295
})
296
.finally(() => setIsActionPending(false));
296
- }, [action, disabled, isActionPending, prefersReducedMotion, state]);
297
+ }, [action, isInteractionDisabled, prefersReducedMotion, state]);
298
299
const handleCheckAnimationIteration = useCallback(() => {
300
setIsCheckAnimationLatched(
@@ -312,13 +313,20 @@ function SidebarUpdateControl() {
313
<button
314
type="button"
315
aria-label={tooltip}
315
- aria-disabled={disabled || isActionPending || undefined}
316
- disabled={disabled || isActionPending}
316
+ aria-disabled={isInteractionDisabled || undefined}
317
className={cn(
318
- "inline-flex size-8 items-center justify-center rounded-full outline-hidden ring-ring transition-colors enabled:cursor-pointer focus-visible:ring-2 disabled:cursor-not-allowed",
318
+ "inline-flex size-8 items-center justify-center rounded-full outline-hidden ring-ring transition-colors focus-visible:ring-2",
319
+ isInteractionDisabled ? "cursor-not-allowed" : "cursor-pointer",
320
showUpdateIconState
320
- ? "bg-update-surface text-update-foreground enabled:hover:bg-update/12"
321
- : "text-[var(--sidebar-icon-color)] enabled:hover:bg-sidebar-row-hover enabled:hover:text-sidebar-foreground",
321
+ ? cn(
322
+ "bg-update-surface text-update-foreground",
323
+ !isInteractionDisabled && "hover:bg-update/12",
324
+ )
325
+ : cn(
326
+ "text-[var(--sidebar-icon-color)]",
327
+ !isInteractionDisabled &&
328
+ "hover:bg-sidebar-row-hover hover:text-sidebar-foreground",
329
+ ),
330
disabled && !showUpdateIconState && "opacity-60",
331
)}
332
onClick={handleAction}