From 3c443322cae1d6d4cf1f340968837a4d216dcee4 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 9 Apr 2026 12:02:51 +0000 Subject: [PATCH] fix: fix: load-project.sh should derive container repo paths instead of using TOML value (#502) Co-Authored-By: Claude Opus 4.6 (1M context) --- lib/load-project.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/load-project.sh b/lib/load-project.sh index 9d7afaf..e1e16ab 100755 --- a/lib/load-project.sh +++ b/lib/load-project.sh @@ -113,6 +113,13 @@ if [ -z "${OPS_REPO_ROOT:-}" ] && [ -n "${PROJECT_NAME:-}" ]; then export OPS_REPO_ROOT="/home/${USER}/${PROJECT_NAME}-ops" fi +# Inside the container, always derive repo paths from PROJECT_NAME — the TOML +# carries host-perspective paths that do not exist in the container filesystem. +if [ "${DISINTO_CONTAINER:-}" = "1" ] && [ -n "${PROJECT_NAME:-}" ]; then + export PROJECT_REPO_ROOT="/home/agent/repos/${PROJECT_NAME}" + export OPS_REPO_ROOT="/home/agent/repos/${PROJECT_NAME}-ops" +fi + # Derive FORGE_OPS_REPO if not explicitly set if [ -z "${FORGE_OPS_REPO:-}" ] && [ -n "${FORGE_REPO:-}" ]; then export FORGE_OPS_REPO="${FORGE_REPO}-ops"