feat(worktrees): copy included local files before setup and agents (#8100)

* feat(worktrees): copy included local files before setup and agents

Keep local-file materialization in one built-in lifecycle hook so workspace setup and the first agent see the completed copy. Reuse the community plugin algorithm with the source checkout supplied by the worktree hook.

Co-authored-by: Carlos Precioso <github@precioso.design>

* test(plugins): make worktree lifecycle checks portable on Windows

Compare source checkout filesystem identity across Git and Windows path spellings. Exercise copy rollback with a destination file blocking a directory, since Git for Windows accepts directories as exclude files.

---------

Co-authored-by: Carlos Precioso <github@precioso.design>
This commit is contained in:
Mohamed Boudra
2026-10-28 17:21:01 +07:00
committed by GitHub
co-authored by Carlos Precioso
parent 986687b8fd
commit dee0d138e9
11 changed files with 337 additions and 9 deletions
@@ -0,0 +1 @@
{ "id": "worktree-include", "requirements": { "paseo": ">=0.14.0-beta.1" } }