fix: 胶囊点击始终显示欢迎卡片 + 移除中间面板
- 每次点胶囊都插入 AgentWelcomeCard(去掉 Set 去重限制) - 移除胶囊和输入框之间的紧凑操作面板
This commit is contained in:
@@ -385,10 +385,7 @@ class _HomePageState extends ConsumerState<HomePage> {
|
|||||||
notifier.select(newAgent);
|
notifier.select(newAgent);
|
||||||
if (newAgent != null) {
|
if (newAgent != null) {
|
||||||
ref.read(chatProvider.notifier).setAgent(newAgent);
|
ref.read(chatProvider.notifier).setAgent(newAgent);
|
||||||
if (!_welcomedAgents.contains(newAgent)) {
|
ref.read(chatProvider.notifier).insertAgentWelcome(newAgent);
|
||||||
_welcomedAgents.add(newAgent);
|
|
||||||
ref.read(chatProvider.notifier).insertAgentWelcome(newAgent);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
child: Container(
|
child: Container(
|
||||||
@@ -417,9 +414,6 @@ class _HomePageState extends ConsumerState<HomePage> {
|
|||||||
// 智能体胶囊栏(常驻,高度36)
|
// 智能体胶囊栏(常驻,高度36)
|
||||||
_buildAgentBar(selectedAgent),
|
_buildAgentBar(selectedAgent),
|
||||||
|
|
||||||
// 选中智能体的操作面板(紧凑版)
|
|
||||||
if (selectedAgent != null) _buildCompactAgentPanel(selectedAgent),
|
|
||||||
|
|
||||||
// 输入框(紧凑)
|
// 输入框(紧凑)
|
||||||
_buildCompactInputBar(context),
|
_buildCompactInputBar(context),
|
||||||
]);
|
]);
|
||||||
|
|||||||
Reference in New Issue
Block a user