From 73bd32b2477e9f5639544158ea0cb1383e7ba3e4 Mon Sep 17 00:00:00 2001 From: hailin Date: Tue, 10 Mar 2026 09:00:09 -0700 Subject: [PATCH] fix(app): hide iAgent FAB on My Agents tab to prevent confusion The floating iAgent chat button was visible on the /my-agents page, causing users to accidentally open the iAgent chat instead of their own agent instance's chat. Hide the FAB when the My Agents tab is active (currentIndex == 1). Co-Authored-By: Claude Sonnet 4.6 --- it0_app/lib/core/router/app_router.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/it0_app/lib/core/router/app_router.dart b/it0_app/lib/core/router/app_router.dart index 8cb08c3..825a27a 100644 --- a/it0_app/lib/core/router/app_router.dart +++ b/it0_app/lib/core/router/app_router.dart @@ -157,7 +157,9 @@ class _ScaffoldWithNavState extends ConsumerState Expanded(child: widget.child), ], ), - floatingActionButton: const FloatingRobotFab(), + // Hide the iAgent FAB on the My Agents tab so users don't mistake it + // for the per-instance chat button. + floatingActionButton: currentIndex == 1 ? null : const FloatingRobotFab(), floatingActionButtonLocation: FloatingActionButtonLocation.endFloat, bottomNavigationBar: NavigationBar( selectedIndex: currentIndex,