fix(session): remove incorrect worktree removal in ensure_session #231
@@ -386,12 +386,6 @@ ensure_session() {
|
|||||||
return 0
|
return 0
|
||||||
fi
|
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
|
if ! $worktree_exists && $session_exists; then
|
||||||
log "warn" "ensure_session" "Session exists but worktree is missing. Removing stale session..."
|
log "warn" "ensure_session" "Session exists but worktree is missing. Removing stale session..."
|
||||||
rm -f "$session_path"
|
rm -f "$session_path"
|
||||||
|
|||||||
Reference in New Issue
Block a user