fix(session): remove incorrect worktree removal in ensure_session #231

Merged
shoko merged 1 commits from fix/issue-229-ensure-session-worktree-bug into main 2026-04-08 01:52:08 +02:00

1 Commits

Author SHA1 Message Date
shokollm
b16a97514e fix(session): remove incorrect worktree removal in ensure_session
When worktree exists but session is missing, ensure_session was
incorrectly removing the worktree before recreating. This caused
issues when cmd_continue called ensure_worktree first (creating the
worktree) then ensure_session (which wrongly removed it).

The fix removes the block that removes worktree when session is missing.
If worktree exists, just create the session without touching the worktree.

Fixes #229
2026-04-07 23:39:18 +00:00