# Enrich branches with worktree paths, fix toolbar display, and improve HMR config · pingdotgg/t3code

[View on GitCafe](https://git.cafe/pingdotgg/t3code/commit/8324949b54c9aadc5d5db1b6cebbd10325a0ea79)

Repository: [pingdotgg/t3code](https://git.cafe/pingdotgg/t3code)

Visibility: public

Requested revision: 8324949b54c9aadc5d5db1b6cebbd10325a0ea79

Requested commit: 8324949b54c9aadc5d5db1b6cebbd10325a0ea79

Commit: 8324949b54c9aadc5d5db1b6cebbd10325a0ea79

Tree: 51a015237cd3b6296ea705ccaca237a53725b1e3

Author: Julius Marminge

Committer: Julius Marminge

## Message

```
Enrich branches with worktree paths, fix toolbar display, and improve HMR config

- Add worktreePath to gitBranchSchema and populate from `git worktree list --porcelain`
- Redirect to existing worktree when selecting a branch that's already checked out
  (instead of failing with "already used by worktree")
- Distinguish main worktree (project cwd) from secondary worktrees in selection logic
- Fix toolbar to show three states: Local, Worktree (existing), New worktree (pending)
- Add explicit protocol/host to Vite HMR config for reliable Electron WebSocket
- Auto-open DevTools in dev mode for HMR debugging

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

```

## Parents

- [807e3d18dec858c9694a595deaea4f9ac588db5f](https://git.cafe/pingdotgg/t3code/commit/807e3d18dec858c9694a595deaea4f9ac588db5f?format=markdown)

[Source at this commit](https://git.cafe/pingdotgg/t3code/tree/8324949b54c9aadc5d5db1b6cebbd10325a0ea79?format=markdown)
