Create the Worker's worktree around files gc staged #4
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/worktree-setup-staged-workdir"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
gc stages the work dir before
pre_startruns: the skill catalog snapshot (.gc/tmp/skill-catalog-*.b64) is written at template resolution, and the exec provider copies.gc/settings.jsonin before it runspre_starton the host (gascity 6bd609f,cmd/gc/template_resolve.go:704,internal/runtime/exec/hoststage.go:82-89).worktree-setup.shthen rangit worktree addinto a non-empty directory, which exits 128 with "already exists", so every Worker seat in the city ended asfailed-create.The script now moves what is there aside, adds the worktree, and copies it back over the checkout; a failed add puts it back unchanged.
tests/worktree-setup.shcovers both, and ascriptsjob runs it.Assisted-By: Claude noreply@anthropic.com