From d0a5538bfff9c68463904e0603d482095381472e Mon Sep 17 00:00:00 2001 From: Bohdan Triapitsyn Date: Sun, 30 Aug 2026 18:03:29 +0300 Subject: [PATCH] feat: tune session sidebar tooltip timing Adds a shared sidebar tooltip provider with delayed open and instant close behavior Removes per-button tooltip delays so sidebar actions feel more consistent Aligns session sidebar hover interactions with the opencode-style tooltip experience --- .../ui/src/components/session/SessionSidebar.tsx | 13 ++++++------- .../sidebar/projects/SessionGroupSection.tsx | 6 +++--- .../session/sidebar/projects/sortableItems.tsx | 4 ++-- .../session/sidebar/sessions/SessionNodeItem.tsx | 2 +- .../session/sidebar/shell/SidebarHeader.tsx | 14 +++++++------- 5 files changed, 19 insertions(+), 20 deletions(-) diff --git a/packages/ui/src/components/session/SessionSidebar.tsx b/packages/ui/src/components/session/SessionSidebar.tsx index 0e5e11e1..48521e5f 100644 --- a/packages/ui/src/components/session/SessionSidebar.tsx +++ b/packages/ui/src/components/session/SessionSidebar.tsx @@ -592,13 +592,12 @@ const SessionSidebarComponent: React.FC = ({ }, [mobileVariant, openNewSessionDraft, setSessionSwitcherOpen]); return ( - // One shared tooltip provider for the whole sidebar: session tooltips open - // instantly, and moving between rows hands the tooltip over (grouping) - // instead of replaying the exit/enter animation for each row. - // closeDelay bridges the small gap between rows: the tooltip survives the - // pointer crossing row margins, and the grouping timeout hands it over to - // the next row without an exit/enter cycle. - + // One shared tooltip provider for the whole sidebar, matching the opencode + // sidebar feel: 400ms before the first tooltip opens, instant close on + // leave, and grouping — moving between rows within 600ms hands the tooltip + // over to the next row without replaying the open delay or exit/enter + // animation. +
{group.isArchivedBucket && allGroupSessions.length > 0 ? (
- +