fix(flow): 修复 finish 阶段分支合并的多个问题

1. 在 BranchManager 添加 _cleanup_lock_file 方法,清理 lock 文件
2. 将分支合并移到 git 提交之后执行
3. 在分支合并前再次提交状态文件(解决 save_status 更新 hash 后未提交的问题)

测试任务:创建 test-cache/hello.py

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2025-12-17 05:42:24 +08:00
parent be25738437
commit 5c236672c5
6 changed files with 115 additions and 10 deletions

View File

@@ -4,6 +4,14 @@
## 2025-12-17
### 修复
**aide flow 分支切换问题修复**
- 修复 finish 阶段分支切换时 lock 文件冲突的问题
- 修复 finish 阶段状态文件未提交导致切换失败的问题
-`BranchManager` 添加 `_cleanup_lock_file` 方法
- 调整 `FlowTracker` 中分支合并的执行顺序(先提交再合并)
### 新增功能
**环境安装 Commands**