Files
opencode-manager/ocm-cli/src
Chris Scott a3af0866b9 fix(ocm): apply working-tree changes when moving into a new worktree
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.
2026-10-09 00:04:00 -04:00
..