Block a user
[P1/优化] SessionRecorder appendFileSync 在高频写入时阻塞主进程
[P1/高] SessionService saveMessage 更新 message_count 非原子性,并发下计数错误
[P1/高] DatabaseService 迁移缺少事务包裹,部分失败导致 schema 不一致
[P1/高] MemoryManager store INSERT OR REPLACE 永远不 REPLACE,更新语义丢失
[P1/高] estimateTokens 忽略 tool.parameters,token 估算严重偏低
[P1/高] compressMessages 用 user 角色注入摘要,导致语义混淆
[P1/高] Agent Engine waitForAbort 总是返回 true,无法检测实际 abort 完成状态
[P1/高] Agnes Adapter 多模态索引映射在 system 消息存在时错位
[P1/高] DeepSeek Adapter 静默丢弃 images 字段,多模态输入完全不可用
[P1/高] openai-format tool 消息 content 可能被赋为 undefined,导致 API 400
[P1/高] sse-stream flushToolCallBuffer 静默丢弃 JSON 解析失败的工具调用
[P1/高] BaseAdapter getFetchSignal 每次新建 timer 未清理,导致 timer 泄漏
[P1/高] BaseAdapter mapError 字符串匹配 401/429,会误匹配 URL 中的数字
[P1/高] CodeSearchTool ripgrep pattern 未转义,可注入命令行选项
[P1/高] SearchFilesTool walkDir 递归无深度限制,可触发栈溢出或长时间阻塞
[P1/高] DeleteFileTool TOCTOU 竞态,存在检查与删除之间可被替换
[P1/高] GitDiffTool pathspec 未校验工作空间内,可读取任意仓库差异
[P1/高] ConfirmationHook waitForConfirmation 超时竞态条件
[P1/高] AuditLogHook 未 try-catch,异常会中断工具执行链
[P1/高] PromptInjectionDefender 单词边界缺失,关键词易被绕过