From ab7c11f0f5c0f2bfdf503bd6b49ff8ac11748737 Mon Sep 17 00:00:00 2001 From: npub1223z34hd7vtwc6qj4s7flsxkj644nlre2nthu7lrrmkumhu3xddsrx9r6w <52a228d6edf316ec6812ac3c9fc0d696ab59fc7954d77e7be31eedcddf91335b@sprout-oss.stage.blox.sqprod.co> Date: Mon, 8 Jun 2026 13:36:59 -0700 Subject: [PATCH] refactor(sidebar): unwrap no-op managed-agents FeatureGate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit managed-agents is tier: 'stable' in features.json, so the wrapper always resolved to true — leftover from the original fail-open blocker fix. Removed the wrapper, kept the SidebarMenuItem. Biome + typecheck clean; agents.spec.ts, smoke.spec.ts, and the screenshot-feature-flags suite all pass locally (27/27). Signed-off-by: Taylor Ho Signed-off-by: npub1223z34hd7vtwc6qj4s7flsxkj644nlre2nthu7lrrmkumhu3xddsrx9r6w <52a228d6edf316ec6812ac3c9fc0d696ab59fc7954d77e7be31eedcddf91335b@sprout-oss.stage.blox.sqprod.co> --- .../src/features/sidebar/ui/AppSidebar.tsx | 40 +++++++++---------- 1 file changed, 19 insertions(+), 21 deletions(-) diff --git a/desktop/src/features/sidebar/ui/AppSidebar.tsx b/desktop/src/features/sidebar/ui/AppSidebar.tsx index 8ce462c23d..735b1334e0 100644 --- a/desktop/src/features/sidebar/ui/AppSidebar.tsx +++ b/desktop/src/features/sidebar/ui/AppSidebar.tsx @@ -472,28 +472,26 @@ export function AppSidebar({ - - - + + + Agents + + {shouldShowAgentCount ? ( + - - Agents - - {shouldShowAgentCount ? ( - - {totalAgentCount} - - ) : null} - - + {totalAgentCount} + + ) : null} +