fix: fix: agents container should clone project repo on first startup; treat init's host clone as operator-side only (#605)
This commit is contained in:
parent
10be72f5ce
commit
c3074e83fc
3 changed files with 37 additions and 0 deletions
|
|
@ -664,6 +664,10 @@ p.write_text(text)
|
|||
preflight_check "$forge_repo" "$forge_url"
|
||||
|
||||
# Determine repo root (for new projects)
|
||||
# This host-side clone is operator-only convenience (#589): it enables
|
||||
# `cd ~/project && $EDITOR .` but is NOT read by agents at runtime.
|
||||
# Agents clone independently from FORGE_URL/FORGE_REPO into the
|
||||
# project-repos named volume at /home/agent/repos/${project_name}.
|
||||
repo_root="${repo_root:-/home/${USER}/${project_name}}"
|
||||
|
||||
# Clone or validate (try origin first for initial clone from upstream)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue