Skip to content

Commit cc65232

Browse files
authored
Merge pull request #207 from Fr-e-d/contrib/sync-1776818553
sync: update 2 file(s) in core/
2 parents b89869d + b44f551 commit cc65232

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

.gaai/core/workflows/delivery-loop.workflow.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ git remote get-url origin 2>/dev/null || {
8484
# Resolve worktree path ONCE as absolute — all subsequent operations use $WORKTREE_PATH
8585
REPO_ROOT="$(git rev-parse --show-toplevel)"
8686
REPO_NAME="$(basename "$REPO_ROOT")"
87-
WORKTREE_PATH="${GAAI_WORKTREE_BASE:-${REPO_ROOT}/../.gaai/${REPO_NAME}/worktrees}/${id}-workspace"
87+
WORKTREE_PATH="${GAAI_WORKTREE_BASE:-${REPO_ROOT}/../.gaai-worktrees/${REPO_NAME}}/${id}-workspace"
8888
mkdir -p "$(dirname "$WORKTREE_PATH")"
8989

9090
# Step 0a: Sync with latest staging (under flock if concurrent)
@@ -118,7 +118,7 @@ fi
118118

119119
All sub-agents operate exclusively inside `$WORKTREE_PATH`. The main working directory stays on `staging` and is never switched. If two Stories run in parallel, each has its own worktree — zero filesystem conflicts. Worktree isolation is **unconditional** regardless of story tier.
120120

121-
Default worktree location is `<parent-of-repo>/.gaai/<repo-name>/worktrees/<story-id>-workspace` — this keeps all GAAI worktrees grouped under a single `.gaai/` folder at the parent level, avoiding pollution of the parent directory when multiple projects share it. Override by setting `GAAI_WORKTREE_BASE` (e.g., `export GAAI_WORKTREE_BASE=/tmp/gaai-worktrees` for cloud-synced repos).
121+
Default worktree location is `<parent-of-repo>/.gaai-worktrees/<repo-name>/<story-id>-workspace` — this groups all GAAI worktrees under a single dedicated folder at the parent level, avoiding pollution of the parent directory when multiple projects share it. The `.gaai-worktrees/` name avoids collision with the in-project `.gaai/` folder. Override by setting `GAAI_WORKTREE_BASE` (e.g., `export GAAI_WORKTREE_BASE=/tmp/gaai-worktrees` for cloud-synced repos).
122122

123123
### 1. Select Next Story
124124

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
---
99

10+
## [Unreleased]
11+
12+
### Changed
13+
- fix(framework): use .gaai-worktrees/ naming to avoid in-project .gaai/ collision
14+
1015
## [2.19.0] - 2026-04-22
1116

1217
### Changed

0 commit comments

Comments
 (0)