Commit Graph

16 Commits

Author SHA1 Message Date
535fca933a fix: 修复工具调用限制器误判问题并优化记忆查询
1. 工具调用限制器修复 - 移除memory_recall关键词智能分类,统一归类为一般记忆查询

2. 工作记忆链限制调整 - 修改限制从2次/轮到5次/轮

3. 广度优先搜索实现 - 修复depth参数被忽略问题,添加深度标注

4. 提示词优化 - 新增强制执行顺序说明,明确task_link_info使用场景

Generated with CodeArts Agent
2026-04-16 08:35:54 +08:00
b7b2601180 feat: 将前端等待超时时间从30秒调整为5分钟
- 修改 core/server.py 中的响应超时时间

- 从 30 秒调整为 300 秒(5 分钟)

- 解决长对话超时中断问题
2026-04-15 23:01:06 +08:00
09a45c52e7 docs: 修正 API 文档响应结构描述 + 添加缺失测试
- 修正 PROCESS_MESSAGE 响应数据访问路径 (result['content'] -> result['data']['content'])
- 添加 CLEAR_HISTORY 文档说明 (基于 SAVE_HISTORY 空消息实现)
- 添加 test_clear_history 和 test_send_message_is_alias 测试用例
- 优化 BackendClient 历史相关方法的返回值处理
2026-04-15 12:09:48 +08:00
a282ec1a58 fix: 简化清空逻辑 - 空消息列表即清空 2026-04-15 11:10:29 +08:00
b86610d445 feat: 添加数据库迁移、清空聊天记录按钮 - 复用SAVE_HISTORY接口 2026-04-15 11:07:06 +08:00
b1db660d70 refactor: 合并配置相关Packet类型为GET_SETTINGS/SET_SETTINGS 2026-04-15 10:50:27 +08:00
a8165874ad feat: 添加聊天记录持久化功能 - 启动时从数据库加载历史,消息处理后自动保存 2026-04-15 10:49:53 +08:00
ddc84382fd fix: 修复 TUI 界面 API Key 配置和消息处理问题
1. 修复配置保存问题:config_section.py 现在正确发送 API 配置和工具限制两个消息
2. 修复代理环境变量问题:graph_client.py 自动修正缺少 scheme 前缀的代理 URL
3. 修复响应解析问题:app.py 正确从 data 字段获取 content 和 tool_calls
4. 添加操作日志更新:app.py 处理工具调用信息并更新操作日志

🤖 Generated with CodeArts Agent
2026-04-14 23:46:21 +08:00
dd685485b5 docs: 重构为双语文档结构,添加人设图机制
- 拆分为 docs/(CN) 和 docs_en/(EN) 两个文件夹
- 主 README 索引对应语言文档
- 新增 persona.md (人设图机制详细说明)
- 文件重命名为英文名
2026-04-14 13:20:24 +08:00
974b92fc45 revert: 提示词保持打包进二进制,不支持用户修改 2026-04-14 11:51:32 +08:00
c742a30e1b refactor: 统一 Packet 通信协议 + 后端配置管理 + UI 清理
- 合并 server.py 到 core/__init__.py,使用统一 Packet 协议
- 后端管理配置持久化 (~/.trulymem/config.json)
- 前端移除 ConfigService,通过 BackendClient 与后端通信
- 删除 UI 中冗余的 AI 推理逻辑 (chat_service, tool_service, message_handler)
- 删除 core/tools 重复文件 (tool_executor, tool_limiter)
- 提示词管理器支持用户自定义 (~/.trulyemem/system_prompt.md)
- 启动入口优化配置路径逻辑
- 更新测试覆盖 (42 tests)
- 更新文档
2026-04-14 11:49:39 +08:00
a846671c34 docs: 更新文档并修正打包脚本
- 新增 docs/api.md 后端API文档

- 修正文档中启动流程示例

- 移除不存在的F4快捷键

- 前端直接工具调用不受次数限制

- 打包脚本添加 config_service hidden-import

- Linux脚本添加python3检查
2026-04-13 08:36:41 +08:00
82903a3fa7 fix: multiple UI and API issues
- Fix tool calls format for DeepSeek API (add type field)

- Fix config event handler name

- Fix message history display (preserve all messages)

- Fix right panel width and scrolling

- Add async config update to prevent UI freeze

- Add prompt caching with singleton pattern

- Update build scripts with complete hidden imports
2026-04-12 23:41:19 +08:00
5c76b19624 refactor: packet-based IPC with core/ui separation
- All logic in core layer (BackendServer runs independently)
- Packet protocol: {id, type, body} for all communications
- UI simplified: just input→backend→display
- Config, history, tools all handled by core
- BackendServer can run standalone without UI
2026-04-12 20:47:07 +08:00
a820afada9 feat: add config/history management to core layer
- Add GET_CONFIG, SET_CONFIG, GET_HISTORY, SAVE_HISTORY to BackendServer
- Update BackendClient with get_config, get_message_history, save_message_history
- All API key and message history now stored in core layer
2026-04-12 18:22:07 +08:00
83906a6985 refactor: restructure to core/ + ui/ with multi-threaded backend 2026-04-12 18:15:55 +08:00