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 <noreply@anthropic.com>
This commit is contained in:
hailin 2026-03-10 09:00:09 -07:00
parent 5d94ed4e8b
commit 73bd32b247
1 changed files with 3 additions and 1 deletions

View File

@ -157,7 +157,9 @@ class _ScaffoldWithNavState extends ConsumerState<ScaffoldWithNav>
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,