From 417ad8149d2476425d3df95720c97daf1fd3122c Mon Sep 17 00:00:00 2001 From: Jason Date: Mon, 11 May 2026 23:15:57 +0800 Subject: [PATCH] fix(ui): hide empty toolbar capsule when Claude Desktop is active Claude Desktop disables Skills, Prompts, Sessions, and MCP, which left the secondary toolbar capsule next to the app switcher completely empty but still rendered as a grey rounded pill. Wrap the capsule in an activeApp !== "claude-desktop" guard so it disappears entirely, and drop the two inner guards that this outer check makes redundant. --- src/App.tsx | 296 ++++++++++++++++++++++++++-------------------------- 1 file changed, 149 insertions(+), 147 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index 9ffac348c..aa278081a 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1376,153 +1376,52 @@ function App() { compact={isToolbarCompact} /> -
- - - {activeApp === "hermes" ? ( - <> - - - - - - ) : activeApp === "openclaw" ? ( - <> - - - - - - - ) : ( - <> - - {activeApp !== "claude-desktop" && ( + {activeApp !== "claude-desktop" && ( +
+ + + {activeApp === "hermes" ? ( + <> + + - )} - - {activeApp !== "claude-desktop" && ( - )} - - )} - - -
+ + ) : activeApp === "openclaw" ? ( + <> + + + + + + + ) : ( + <> + + + + + + )} +
+
+
+ )}