Skip to content

feat: copy repository files into new worktrees - #109

Merged
abiswas97 merged 3 commits into
mainfrom
codex/worktree-file-copy-config
Jul 29, 2026
Merged

feat: copy repository files into new worktrees#109
abiswas97 merged 3 commits into
mainfrom
codex/worktree-file-copy-config

Conversation

@abiswas97

Copy link
Copy Markdown
Owner

Summary

  • add top-level .sentei.yaml worktree_files rules with explicit container-relative sources, worktree-relative destinations, and opt-in overwrite
  • copy files during the shared creator Setup phase with traversal and symlink containment checks, nested parent creation, atomic writes, permission preservation, and visible failures
  • keep env_files independent while forwarding automatic rules through both CLI and TUI creation
  • document configuration semantics and cover config, copy safety, orchestration, UI, CLI, and realistic bare-container behavior

Test plan

  • go test -race -count=1 ./...
  • go test -tags=e2e -count=1 ./...
  • go vet ./...
  • golangci-lint run ./...
  • go build ./...
  • goreleaser check
  • goreleaser build --snapshot --clean
  • branch-binary smoke test against a fresh .bare Sentei container, verifying nested .codex/config.toml, copied content, and mode 0600

@codecov

codecov Bot commented Jul 29, 2026

Copy link
Copy Markdown

@abiswas97
abiswas97 merged commit 6740340 into main Jul 29, 2026
5 checks passed
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