fix: 对话历史上限增至100条 + filterActions 兼容 <app> 动作标签

- 会话历史存储上限从 50 条增至 100 条
- filterActions 同时处理 <action> 和 <app> 标签(DeepSeek 偶用 <app> 替代 <action>)

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-06-02 12:31:48 +08:00
parent b085e58031
commit 67b204b23c
2 changed files with 20 additions and 27 deletions
+1 -1
View File
@@ -133,7 +133,7 @@ func main() {
}
// 初始化会话历史存储
convStore := ctxbuild.NewConversationStore(50)
convStore := ctxbuild.NewConversationStore(100)
// 从数据库恢复主会话历史(避免重启丢失上下文)
adminUserID := "admin"