Implement worktree interactions for the sidebar (#51421)

Before you mark this PR as ready for review, make sure that you have:
- [x] Added a solid test coverage and/or screenshots from doing manual
testing
- [x] Done a self-review taking into account security and performance
aspects
- [x] Aligned any UI changes with the [UI
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)

Release Notes:

- N/A
5e60aa9872Mikayla Maki committed on 3/12/2026, 10:34:09 PM· committed by GitHubparentdd0e51e
8 files changedLine totals unavailable