From c9f22f17887cc2e65271f2a66d2d159d0569d578 Mon Sep 17 00:00:00 2001 From: Zane Staggs Date: Sun, 20 Jul 2025 09:53:23 -0700 Subject: [PATCH 1/3] show token tooltips all the time --- ui/desktop/src/components/ChatInput.tsx | 12 +++++++++++- .../bottom_menu/BottomMenuAlertPopover.tsx | 10 +++------- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/ui/desktop/src/components/ChatInput.tsx b/ui/desktop/src/components/ChatInput.tsx index 7467dfe3c176..3c2a2d2e7831 100644 --- a/ui/desktop/src/components/ChatInput.tsx +++ b/ui/desktop/src/components/ChatInput.tsx @@ -382,7 +382,7 @@ export default function ChatInput({ useEffect(() => { clearAlerts(); - // Only show token alerts if we have loaded the real token limit + // Always show token alerts if we have loaded the real token limit and have tokens if (isTokenLimitLoaded && tokenLimit && numTokens && numTokens > 0) { if (numTokens >= tokenLimit) { // Only show error alert when limit reached @@ -409,6 +409,16 @@ export default function ChatInput({ }, }); } + } else if (isTokenLimitLoaded && tokenLimit) { + // Always show context window info even when no tokens are present (start of conversation) + addAlert({ + type: AlertType.Info, + message: 'Context window', + progress: { + current: 0, + total: tokenLimit, + }, + }); } // Add tool count alert if we have the data diff --git a/ui/desktop/src/components/bottom_menu/BottomMenuAlertPopover.tsx b/ui/desktop/src/components/bottom_menu/BottomMenuAlertPopover.tsx index 3cf85f7b2cf2..bd34285f1bd1 100644 --- a/ui/desktop/src/components/bottom_menu/BottomMenuAlertPopover.tsx +++ b/ui/desktop/src/components/bottom_menu/BottomMenuAlertPopover.tsx @@ -12,7 +12,6 @@ interface AlertPopoverProps { export default function BottomMenuAlertPopover({ alerts }: AlertPopoverProps) { const [isOpen, setIsOpen] = useState(false); - const [hasShownInitial, setHasShownInitial] = useState(false); const [isHovered, setIsHovered] = useState(false); const [wasAutoShown, setWasAutoShown] = useState(false); const [popoverPosition, setPopoverPosition] = useState({ top: 0, left: 0 }); @@ -116,17 +115,14 @@ export default function BottomMenuAlertPopover({ alerts }: AlertPopoverProps) { // Only auto-show if any of the new/changed alerts have autoShow: true const hasNewAutoShowAlert = changedAlerts.some((alert) => alert.autoShow === true); - // Auto show the popover only if: - // 1. There are new alerts that should auto-show AND - // 2. We haven't shown this specific alert before (tracked by hasShownInitial) - if (hasNewAutoShowAlert && !hasShownInitial) { + // Auto show the popover for new auto-show alerts + if (hasNewAutoShowAlert) { setIsOpen(true); - setHasShownInitial(true); setWasAutoShown(true); // Start 3 second timer for auto-show startHideTimer(3000); } - }, [alerts, hasShownInitial, startHideTimer]); + }, [alerts, startHideTimer]); // Handle auto-hide based on hover state changes useEffect(() => { From 75d55ab55da8dfbf21fcd7969006d11d78a0899e Mon Sep 17 00:00:00 2001 From: Zane Staggs Date: Mon, 21 Jul 2025 14:56:32 -0700 Subject: [PATCH 2/3] fix scrollbar flashing in directory path tooltip --- ui/desktop/src/components/bottom_menu/DirSwitcher.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/desktop/src/components/bottom_menu/DirSwitcher.tsx b/ui/desktop/src/components/bottom_menu/DirSwitcher.tsx index 5dd5483eb0c8..dd9f9462fa04 100644 --- a/ui/desktop/src/components/bottom_menu/DirSwitcher.tsx +++ b/ui/desktop/src/components/bottom_menu/DirSwitcher.tsx @@ -35,7 +35,7 @@ export const DirSwitcher: React.FC = ({ - + {window.appConfig.get('GOOSE_WORKING_DIR') as string} From c83acb4236764961795681fab94ecb71afe4a6dd Mon Sep 17 00:00:00 2001 From: Zane Staggs Date: Tue, 22 Jul 2025 18:25:30 -0700 Subject: [PATCH 3/3] removed classname altogether not needed --- ui/desktop/src/components/bottom_menu/DirSwitcher.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/desktop/src/components/bottom_menu/DirSwitcher.tsx b/ui/desktop/src/components/bottom_menu/DirSwitcher.tsx index dd9f9462fa04..c51bea91c9b7 100644 --- a/ui/desktop/src/components/bottom_menu/DirSwitcher.tsx +++ b/ui/desktop/src/components/bottom_menu/DirSwitcher.tsx @@ -35,7 +35,7 @@ export const DirSwitcher: React.FC = ({ - + {window.appConfig.get('GOOSE_WORKING_DIR') as string}