Skip to content

Commit 223e718

Browse files
authored
Merge pull request #582 from Fr-e-d/contrib/sync-1782348267
sync: update 2 file(s) in core/
2 parents 07d37f9 + 18e1fe1 commit 223e718

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

.gaai/core/scripts/delivery-daemon.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4155,6 +4155,13 @@ WRAPPER_EOF
41554155
[[ -n "${GAAI_IMPL_MODEL_FALLBACK:-}" ]] && tmux_env_args+=(-e "GAAI_IMPL_MODEL_FALLBACK=${GAAI_IMPL_MODEL_FALLBACK}")
41564156
[[ -n "${GAAI_AUTO_MERGE_POLICY:-}" ]] && tmux_env_args+=(-e "GAAI_AUTO_MERGE_POLICY=${GAAI_AUTO_MERGE_POLICY}")
41574157
[[ -n "${GAAI_AUTO_MERGE_ADMIN_FALLBACK:-}" ]] && tmux_env_args+=(-e "GAAI_AUTO_MERGE_ADMIN_FALLBACK=${GAAI_AUTO_MERGE_ADMIN_FALLBACK}")
4158+
# The delivery wrapper runs in its OWN tmux session and creates the per-story worktree.
4159+
# It MUST inherit the operator's real checkout + the daemon home, or its worktree-base
4160+
# derivation falls back to PROJECT_DIR (= the home when the daemon binary runs from the
4161+
# home worktree) and nests the worktrees under the home. Forward both.
4162+
[[ -n "${GAAI_REPO_ROOT:-}" ]] && tmux_env_args+=(-e "GAAI_REPO_ROOT=${GAAI_REPO_ROOT}")
4163+
[[ -n "${GAAI_DAEMON_HOME:-}" ]] && tmux_env_args+=(-e "GAAI_DAEMON_HOME=${GAAI_DAEMON_HOME}")
4164+
[[ -n "${GAAI_WORKTREES_BASE:-}" ]] && tmux_env_args+=(-e "GAAI_WORKTREES_BASE=${GAAI_WORKTREES_BASE}")
41584165

41594166
# ── Cross-cycle qa-report env setup ────────────────────────────────
41604167
local _cc_3p_wt_path

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1010
## [Unreleased]
1111

1212
### Changed
13+
- fix: forward REPO_ROOT/DAEMON_HOME to the per-story delivery wrapper
1314
- fix: instruct QA to read the ENTIRE decision incl. amendment/reword blocks
1415
- fix: anchor operator state + worktree base to the real checkout, not the home
1516
- fix: operator state (logs/locks) + worktree base anchor to REPO_ROOT, not the home

0 commit comments

Comments
 (0)