From 594c8075449a56db7abd22e93c977c90f2a5e25a Mon Sep 17 00:00:00 2001 From: Ignacio Cervino Date: Thu, 15 Jan 2026 01:19:13 -0300 Subject: [PATCH] fix: keep debug button accessible after clearing logs --- src/App.tsx | 4 ++-- src/components/Sidebar.tsx | 6 +++--- src/hooks/useDebugLog.ts | 19 ++++++++++++++++++- src/hooks/useLayoutNodes.tsx | 4 ++-- 4 files changed, 25 insertions(+), 8 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index a69309e1f..2a4985189 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -125,7 +125,7 @@ function MainApp() { debugOpen, setDebugOpen, debugEntries, - hasDebugAlerts, + showDebugButton, addDebugEntry, handleCopyDebug, clearDebugEntries @@ -619,7 +619,7 @@ function MainApp() { handleApprovalDecision, onOpenSettings: handleOpenSettings, onOpenDebug: handleDebugClick, - hasDebugAlerts, + showDebugButton, onAddWorkspace: handleAddWorkspace, onSelectHome: selectHome, onSelectWorkspace: (workspaceId) => { diff --git a/src/components/Sidebar.tsx b/src/components/Sidebar.tsx index 9f5fb230a..671260240 100644 --- a/src/components/Sidebar.tsx +++ b/src/components/Sidebar.tsx @@ -20,7 +20,7 @@ type SidebarProps = { accountRateLimits: RateLimitSnapshot | null; onOpenSettings: () => void; onOpenDebug: () => void; - hasDebugAlerts: boolean; + showDebugButton: boolean; onAddWorkspace: () => void; onSelectHome: () => void; onSelectWorkspace: (id: string) => void; @@ -44,7 +44,7 @@ export function Sidebar({ accountRateLimits, onOpenSettings, onOpenDebug, - hasDebugAlerts, + showDebugButton, onAddWorkspace, onSelectHome, onSelectWorkspace, @@ -733,7 +733,7 @@ export function Sidebar({ > - {hasDebugAlerts && ( + {showDebugButton && (