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
Owner

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.

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.
shoko added 1 commit 2026-04-08 01:39:40 +02:00
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
han approved these changes 2026-04-08 01:51:48 +02:00
han left a comment
First-time contributor

lgtm

lgtm
shoko merged commit ae8f1433a7 into main 2026-04-08 01:52:08 +02:00
Sign in to join this conversation.