Skip to content

Keep sandbox worktrees self-sufficient for auto-finish helpers#52

Merged
NagyVikt merged 1 commit intomainfrom
agent/codex/20260412-023329-perzeus-megkapja-hu-auto-finish-agent-branches
Apr 12, 2026
Merged

Keep sandbox worktrees self-sufficient for auto-finish helpers#52
NagyVikt merged 1 commit intomainfrom
agent/codex/20260412-023329-perzeus-megkapja-hu-auto-finish-agent-branches

Conversation

@NagyVikt
Copy link
Copy Markdown
Collaborator

Automated by scripts/agent-branch-finish.sh (PR flow).

agent-branch-start now hydrates scripts/codex-agent.sh into freshly created worktrees whenever the helper is missing there, using the repo copy or template fallback. This prevents follow-up auto-finish flows from failing due to absent local launcher scripts in new sandboxes.

Constraint: New agent worktrees may start without all helper scripts present

Rejected: Require manual rerun of gx setup in each worktree | adds friction and leaves automation brittle

Confidence: high

Scope-risk: narrow

Reversibility: clean

Directive: Keep hydration logic mirrored between live script and template script

Tested: npm test
@NagyVikt NagyVikt merged commit 078bd56 into main Apr 12, 2026
7 checks passed
@NagyVikt NagyVikt deleted the agent/codex/20260412-023329-perzeus-megkapja-hu-auto-finish-agent-branches branch April 12, 2026 00:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant