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
Showing only changes of commit b16a97514e - Show all commits

View File

@@ -386,12 +386,6 @@ ensure_session() {
return 0
fi
if $worktree_exists && ! $session_exists; then
log "warn" "ensure_session" "Worktree exists but session is missing. Removing worktree to recreate both..."
remove_worktree_for_issue "$issue_ref"
worktree_exists=false
fi
if ! $worktree_exists && $session_exists; then
log "warn" "ensure_session" "Session exists but worktree is missing. Removing stale session..."
rm -f "$session_path"