Skip to content

fix: refresh sidebar and navigate away after worktree deletion (#315)#325

Merged
sauravpanda merged 2 commits intomainfrom
worktree-agent-aeb7c3ed
Apr 10, 2026
Merged

fix: refresh sidebar and navigate away after worktree deletion (#315)#325
sauravpanda merged 2 commits intomainfrom
worktree-agent-aeb7c3ed

Conversation

@sauravpanda
Copy link
Copy Markdown
Owner

Summary

  • After deleting a worktree, the UI now checks if it was the currently selected one
  • If so, clears selection (selectedWorktreeId/Path/Name → null), navigating user to home view
  • The worktree list was already refreshing on delete — only the selection cleanup was missing

Closes #315

Test plan

  • Delete a worktree that is currently selected → view switches to home
  • Delete a worktree that is NOT selected → sidebar updates, current view stays

🤖 Generated with Claude Code

@sauravpanda sauravpanda merged commit ecb2b1a into main Apr 10, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: deleted worktree not removed from sidebar/current view

1 participant