# Extract branch selector and refresh branches on menu open · screen/t3code-personal

[View on GitCafe](https://git.cafe/screen/t3code-personal/commit/fabb3e07348eb864d6a2c33234db1afb59c7e310)

Repository: [screen/t3code-personal](https://git.cafe/screen/t3code-personal)

Visibility: public

Requested revision: fabb3e07348eb864d6a2c33234db1afb59c7e310

Requested commit: fabb3e07348eb864d6a2c33234db1afb59c7e310

Commit: fabb3e07348eb864d6a2c33234db1afb59c7e310

Tree: 95fbb0fd75bfbc620fdc02924a5be298cd4ad28a

Author: Julius Marminge

Committer: Julius Marminge

## Message

```
Extract branch selector and refresh branches on menu open

- Move branch combobox logic into `BranchToolbarBranchSelector` to simplify `BranchToolbar`
- Re-fetch git branches when opening the selector so options are current
- Preserve draft env mode correctly when switching between main and worktree branches

```

## Parents

- [9ca9a862a5d31f4f7dcf0d0fe263ed54026347d5](https://git.cafe/screen/t3code-personal/commit/9ca9a862a5d31f4f7dcf0d0fe263ed54026347d5?format=markdown)

[Source at this commit](https://git.cafe/screen/t3code-personal/tree/fabb3e07348eb864d6a2c33234db1afb59c7e310?format=markdown)
