From 95bf5732f665e40ca0afb0b819a4e08e81504a03 Mon Sep 17 00:00:00 2001 From: MingNian <1281442923@qq.com> Date: Wed, 3 Jun 2026 16:22:09 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=83=B6=E5=9B=8A=E7=82=B9=E5=87=BB?= =?UTF-8?q?=E5=A7=8B=E7=BB=88=E6=98=BE=E7=A4=BA=E6=AC=A2=E8=BF=8E=E5=8D=A1?= =?UTF-8?q?=E7=89=87=20+=20=E7=A7=BB=E9=99=A4=E4=B8=AD=E9=97=B4=E9=9D=A2?= =?UTF-8?q?=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 每次点胶囊都插入 AgentWelcomeCard(去掉 Set 去重限制) - 移除胶囊和输入框之间的紧凑操作面板 --- health_app/lib/pages/home/home_page.dart | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) 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), ]);