fix: [product] Git Workflow 多 Session 并发隔离改造 - Closes #124 #125

Merged
pzhang_zywl merged 1 commits from dev/issue-124-git-worktree-isolation into main 2026-06-08 16:14:21 +08:00
Owner

Summary

  • 重写 worktree 隔离机制:session-unique 路径 + detached from origin/main,支持多 session 并发
  • 所有 Agent 文档移除 git checkout main / git pull origin main
  • Feature branch 统一从 origin/main 创建
  • CLAUDE.md 新增工作区隔离章节,primary worktree 定义为只读参考区
  • 新增 start_generic.sh:Generic session 的 worktree 隔离启动器

修复类型

  • 代码级修复(UT 可验证)

Test

  • pytest 全量通过 (117 passed, 15 skipped)

Closes #124


[pzhangzywl]

## Summary - 重写 worktree 隔离机制:session-unique 路径 + detached from origin/main,支持多 session 并发 - 所有 Agent 文档移除 git checkout main / git pull origin main - Feature branch 统一从 origin/main 创建 - CLAUDE.md 新增工作区隔离章节,primary worktree 定义为只读参考区 - 新增 start_generic.sh:Generic session 的 worktree 隔离启动器 ## 修复类型 - [x] 代码级修复(UT 可验证) ## Test - [x] pytest 全量通过 (117 passed, 15 skipped) Closes #124 --- [pzhangzywl]
pzhang_zywl added 1 commit 2026-06-08 16:11:58 +08:00
核心变更:
- _common.sh: setup_worktree 改为 session-unique detached worktree (origin/main)
- 所有 Agent 文档移除 git checkout main / git pull origin main
- Feature branch 统一从 origin/main 创建: git fetch origin && git checkout -b <branch> origin/main
- CLAUDE.md: 新增工作区隔离章节, primary worktree 定义为只读参考区
- 新增 start_generic.sh: Generic session worktree 隔离启动器

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
pzhang_zywl merged commit dc0b9ba936 into main 2026-06-08 16:14:21 +08:00
Sign in to join this conversation.