Commit Graph
9 Commits
Author SHA1 Message Date
Mohamed Boudra 0919277fd7 fix(plugins): unify worktree list reader with Git 2.35 fallback and fetch PR head once 2026-11-20 12:14:50 +01:00
Mohamed Boudra d6c66922c7 fix(plugins): verify PR head commits, restore CLI worktree RPC, and fix Windows rollback paths 2026-11-20 11:38:57 +01:00
Mohamed Boudra 8fc0e2349f fix(worktrees): carry source trust and await managed creation
Preserve fork provenance for manager callbacks and the workspace record. Honor tracking branch creation in the manager example and let the CLI wait on the existing workspace creation lifecycle.
2026-11-20 10:39:50 +01:00
Mohamed Boudra 9aec7dc204 fix(plugins): preserve managed checkout targets and rollback
Keep branch creation ownership with the linked checkout so a failed after-hook can be retried with the same branch. Leave same-repository change requests with a local branch collision to the checkout path that fetches the change request head. Use the worktree timeout for compatibility commands.
2026-11-20 10:29:25 +01:00
Mohamed Boudra ba325922d2 fix(plugins): preserve worktree setup on retry and refresh branch bases
A failed setup could leave a new branch behind and send the retry through the built-in checkout. Use the manager's reported branch creation status during rollback. Share base preparation so both checkout paths start from the updated remote-tracking ref.
2026-11-20 10:16:51 +01:00
Mohamed Boudra cbaa8c7c90 fix(plugins): verify managed worktree ownership and restore targets
A failed callback does not establish ownership of worktrees created during its call. Require the manager to identify the checkout before Paseo attempts rollback, and verify the requested Git target before reopening a restored workspace.
2026-11-20 10:04:45 +01:00
Mohamed Boudra c1d10b4e75 fix(plugins): pass untrusted on create, clean up rejected worktrees, and sync docs 2026-11-20 08:30:52 +01:00
Mohamed Boudra 524116e111 fix(plugins): harden worktree manager lifecycle, rollback, and schema 2026-11-20 08:14:06 +01:00
Mohamed Boudra 1230337165 feat(plugins): let plugins manage worktree create, remove, and restore
Adds server.registerWorktreeManager({ create, remove?, restore? }) so external worktree tools such as Worktrunk can own Git worktree creation, removal, and restoration instead of overloading worktree.create.before.

Keeping worktree.create.before purely transformative preserves multi-plugin chaining, rollback, and the 30s hook budget, while giving manager operations a 120s budget matching git worktree commands. Paseo snapshots existing worktrees before create so managers cannot hijack pre-existing user worktrees, writes comparison-base and owning plugin metadata into paseo/worktree.json and the workspace record, saves refs/paseo/kept-commits before removal so restore stays safe, and falls back to built-in Git if a manager declines or is disabled.
2026-11-20 07:52:07 +01:00