0270e17a76
fix: 修复 context_rewrite 工具调用问题并优化系统提示词
...
1. 修复 context_rewrite 导致的 API 错误
- 删除错误的 tool 结果消息添加逻辑
- 添加 context_compressed 标记让 AI 识别压缩结果
- 将 context_rewrite 记录到 tool_calls 以便 TUI 显示
2. 优化系统提示词
- 添加强制触发条件:每5次记忆工具调用必须调用 context_rewrite
- 强化指代词处理规则:必须通过工作记忆链解析
- 扩展时间指代词:添加刚刚
- 更新执行检查清单
Generated with CodeArts Agent
2026-04-16 23:27:35 +08:00
2aa6e9240f
feat: 添加 context_rewrite 工具并清理工具限制器死配置
...
- 新增 context_rewrite 工具:允许 AI 在单轮内压缩工具调用上下文
- 清理 persona_query_max 和 task_query_max 死配置(commit 9be60ba 引入)
- 同步全栈:后端/前端/文档/测试 18 个文件
- 测试:70/70 通过
2026-04-16 14:33:21 +08:00
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
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
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
83906a6985
refactor: restructure to core/ + ui/ with multi-threaded backend
2026-04-12 18:15:55 +08:00