Skip to content

feat(worktree): prefix worktree leaves with repo basename instead of literal 'agent'#406

Merged
NagyVikt merged 1 commit intomainfrom
agent/claude/rename-worktree-leaf-prefix-to-repo-2026-04-23-22-19
Apr 23, 2026
Merged

feat(worktree): prefix worktree leaves with repo basename instead of literal 'agent'#406
NagyVikt merged 1 commit intomainfrom
agent/claude/rename-worktree-leaf-prefix-to-repo-2026-04-23-22-19

Conversation

@NagyVikt
Copy link
Copy Markdown
Collaborator

Automated by gx branch finish (PR flow).

…literal 'agent'

Replaces the `agent__` prefix in resolve_worktree_leaf with the repo
basename (e.g. `gitguardex__codex__...`, `recodee__codex__...`) so
sandbox directories show where the agent started from.

- scripts/agent-branch-start.sh + templates/ + frontend/ mirror
- scripts/codex-agent.sh + templates/ + frontend/ mirror
- test/sandbox.test.js expectations updated to use path.basename(repoDir)

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@NagyVikt NagyVikt merged commit 91ef8a0 into main Apr 23, 2026
@NagyVikt NagyVikt deleted the agent/claude/rename-worktree-leaf-prefix-to-repo-2026-04-23-22-19 branch April 23, 2026 20:28
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