修复: AiCompleted 携带 pinned_goals 根治目标面板刷新
This commit is contained in:
@@ -580,7 +580,11 @@ function handleLifecycleEvent(event: AiChatEvent): boolean {
|
||||
timestamp: Date.now(),
|
||||
})
|
||||
}
|
||||
// 对话透明化 L1:刷新会话列表(更新 pinned_goals)
|
||||
// 对话透明化 L1:直接从事件更新 pinned_goals,不等 loadConversations 异步刷新
|
||||
if (event.pinned_goals && state.activeConversationId) {
|
||||
const conv = state.conversations.find(c => c.id === state.activeConversationId)
|
||||
if (conv) conv.pinned_goals = event.pinned_goals
|
||||
}
|
||||
void loadConversations()
|
||||
// token 用量记录(开关开时):lastTokenUsage 供当前回复展示,convTokenTotal 累加对话总量
|
||||
if (isShowTokenUsage()) {
|
||||
|
||||
Reference in New Issue
Block a user