Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.
fix(desktop): keep release notes visible while downloading (#6412)
Exoticb4be33f07474
diff --git a/apps/web/src/components/sidebar/SidebarUpdatePill.tsx b/apps/web/src/components/sidebar/SidebarUpdatePill.tsxindex fa7103aef..f576fdd4e 100644--- a/apps/web/src/components/sidebar/SidebarUpdatePill.tsx+++ b/apps/web/src/components/sidebar/SidebarUpdatePill.tsx@@ -179,11 +179,12 @@ function SidebarUpdateControl() {: showUpdateDetails? isDesktopUpdateButtonDisabled(state): !canCheckForUpdate(state);+ const isInteractionDisabled = disabled || isActionPending;const handleAction = useCallback(async () => {const bridge = window.desktopBridge;if (!bridge || !state) return;- if (disabled || isActionPending) return;+ if (isInteractionDisabled) return;setIsActionPending(true);@@ -293,7 +294,7 @@ function SidebarUpdateControl() {);}).finally(() => setIsActionPending(false));- }, [action, disabled, isActionPending, prefersReducedMotion, state]);+ }, [action, isInteractionDisabled, prefersReducedMotion, state]);const handleCheckAnimationIteration = useCallback(() => {setIsCheckAnimationLatched(@@ -312,13 +313,20 @@ function SidebarUpdateControl() {<buttontype="button"aria-label={tooltip}- aria-disabled={disabled || isActionPending || undefined}- disabled={disabled || isActionPending}+ aria-disabled={isInteractionDisabled || undefined}className={cn(- "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",+ "inline-flex size-8 items-center justify-center rounded-full outline-hidden ring-ring transition-colors focus-visible:ring-2",+ isInteractionDisabled ? "cursor-not-allowed" : "cursor-pointer",showUpdateIconState- ? "bg-update-surface text-update-foreground enabled:hover:bg-update/12"- : "text-[var(--sidebar-icon-color)] enabled:hover:bg-sidebar-row-hover enabled:hover:text-sidebar-foreground",+ ? cn(+ "bg-update-surface text-update-foreground",+ !isInteractionDisabled && "hover:bg-update/12",+ )+ : cn(+ "text-[var(--sidebar-icon-color)]",+ !isInteractionDisabled &&+ "hover:bg-sidebar-row-hover hover:text-sidebar-foreground",+ ),disabled && !showUpdateIconState && "opacity-60",)}onClick={handleAction}