diff --git a/health_app/lib/pages/home/home_page.dart b/health_app/lib/pages/home/home_page.dart index c98c30e..7cceefb 100644 --- a/health_app/lib/pages/home/home_page.dart +++ b/health_app/lib/pages/home/home_page.dart @@ -385,10 +385,7 @@ class _HomePageState extends ConsumerState { notifier.select(newAgent); if (newAgent != null) { ref.read(chatProvider.notifier).setAgent(newAgent); - if (!_welcomedAgents.contains(newAgent)) { - _welcomedAgents.add(newAgent); - ref.read(chatProvider.notifier).insertAgentWelcome(newAgent); - } + ref.read(chatProvider.notifier).insertAgentWelcome(newAgent); } }, child: Container( @@ -417,9 +414,6 @@ class _HomePageState extends ConsumerState { // 智能体胶囊栏(常驻,高度36) _buildAgentBar(selectedAgent), - // 选中智能体的操作面板(紧凑版) - if (selectedAgent != null) _buildCompactAgentPanel(selectedAgent), - // 输入框(紧凑) _buildCompactInputBar(context), ]);