From f776336eb17fcba7a413b1cbcddbdf256358044c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BB=9D=E5=B0=98?= <237809796@qq.com> Date: Sun, 28 Jun 2026 13:13:48 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0:=20=E5=AF=B9=E8=AF=9D?= =?UTF-8?q?=E8=AF=8A=E6=96=AD=E5=BE=85=E5=8A=9E=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 最新对话 d9aef24f 分析: 审批死锁 + Windows 兼容 + 标题失败 - P0: pending 超时自动取消 + create_project auto_create_dir - P1: run_command shell 适配提示 + PowerShell 反斜杠转义 - P2: 标题摘要合并连续同 role 防 GLM 1214 - P3: migration V33 + L0-handshake 防抖 --- PROGRESS.md | 12 ++++++++++++ todo.md | 25 +++++++++++++++++++++++++ 2 files changed, 37 insertions(+) diff --git a/PROGRESS.md b/PROGRESS.md index 5158314..b9efc16 100644 --- a/PROGRESS.md +++ b/PROGRESS.md @@ -1031,6 +1031,18 @@ --- +### 2026-06-28 — 最新对话 DB & Log 诊断:审批死锁 + Windows 兼容 + 标题 LLM 失败 + +> 分析来源:`devflow-trace.log` + `devflow-dev.db` 最新对话 `d9aef24f`(语音输入应用需求)。 +> 7 次工具连续失败后 L1 断路器熔断,1 条 pending 审批导致全链路死锁。 + +- [ ] **P0 — 审批 pending 超时自动取消**:`try_continue` 入口清理 >5min 的 pending。 +- [ ] **P0 — `create_project` 加 auto_create_dir**:消除建项目→建目录→绑定的死锁链。 +- [ ] **P1 — `run_command` 失败追加 shell 适配提示**:引导 LLM 改正 PowerShell 命令。 +- [ ] **P1 — PowerShell 反斜杠自动转义**:消除 `os error 123`(Unicode 转义误识别)。 +- [ ] **P2 — 标题摘要合并连续同 role**:避免标题 LLM 的 GLM 1214 拒绝。 +- [ ] **P3 — migration V33 + L0-handshake 防抖**。 + ## 七、开发约定 ### 构建命令 diff --git a/todo.md b/todo.md index 1f37558..ff38320 100644 --- a/todo.md +++ b/todo.md @@ -29,3 +29,28 @@ ### 后端 — IPC 接入 - [ ] **A2 批量评估命令**:`evaluate_ideas_batch`,遍历多个 idea 调同一 engine 实例(复用 provider 连接)。**⏳ 待定** + +## 最新对话分析-2026-06-28:死锁与审批卡死 + +> 分析来源:`devflow-trace.log` + `devflow-dev.db` 最新对话 `d9aef24f`(语音输入应用需求)。 +> 核心表现:7 次工具连续失败后 L1 断路器熔断,1 条 pending 审批导致全链路死锁。 + +### P0 — 审批 pending 死锁 + +- [ ] **审批超时自动取消**:pending 超 5min 自动取消(status=cancelled),LLM 收到回执不再盲猜。`try_continue` 入口清理过期 pending。 +- [ ] **`create_project` 加 auto_create_dir 参数**:为 true 时自动 mkdir 目标目录,消除建项目->建目录->绑定的死锁链。 + +### P1 — Windows 平台兼容 + +- [ ] **`run_command` 失败追加 shell 适配提示**:PowerShell 下在 tool result 尾部追加路径转义指引,引导 LLM 下次改正。 +- [ ] **PowerShell 反斜杠自动转义**:`run_command` 执行前对路径参数做 `\` 双重转义,消除 os error 123。 + +### P2 — 标题 LLM 失败 + +- [ ] **标题摘要合并连续同 role**:`ensure_conversation_title` 发 LLM 前合并相邻 user/assistant,避免 Anthropic 协议 1214。 + +### P3 — 其他 + +- [ ] **migration V33: `workflow_executions` 加 `updated_at` 列**。 +- [ ] **L0-handshake 防抖**:3s 内重复 `ai-client-ready` 跳过。 +