Skip to content

Conversation

@nicholaslocascio
Copy link

Summary

  • Fix copy_files not copying .env and other files to worktrees due to incorrect path handling
  • File search results include repo name prefix (e.g., repo-name/.env) for display, but this was incorrectly stored and used during copy operations, causing paths like /repo/repo-name/.env instead of /repo/.env

Test plan

  • Verify existing copy tests pass (cargo test -p local-deployment copy)
  • Add .env to copy_files in Project Settings via autocomplete
  • Confirm the path is stored without repo name prefix (just .env)
  • Create a new worktree and verify .env is copied from original repo
  • Test with existing entries that have the old format (should auto-normalize)

🤖 Generated with Claude Code

File search results include repo name prefix (e.g., repo-name/.env) for
display, but this was incorrectly stored and used during copy operations,
causing paths like /repo/repo-name/.env instead of /repo/.env.

This fix:
- Strips repo name prefix from patterns in container.rs during copy
- Adds repoName prop to file search components to strip prefix at selection
- Adds tests for hidden files and gitignored files copy functionality

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@vibe-kanban-cloud
Copy link

Review Complete

Your review story is ready!

View Story

Comment !reviewfast on this PR to re-generate the story.

@ggordonhall
Copy link
Contributor

I've added auto-complete to the copy file input box which should address the issue here: #2004.

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.

2 participants