mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-05 20:34:18 +01:00
Moving a session into a new worktree uploaded only the git bundle, so staged, unstaged and untracked changes were dropped, unlike moves into the main checkout or an existing worktree. The CLI now sends the working-tree patch with the worktree-create request behind an X-OCM-Patch-Bytes header, and the backend applies it right after importing the bundle and before worktree setup runs, so setup sees the edits. A patch that fails to apply removes the new worktree instead of leaving it half-created.