# Fix duplicated branch logic and feature-branch dialog on push-only · screen/t3code-personal

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

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

Visibility: public

Requested revision: 61289a152d7c655a3239ff9c9cfef4ee3bd9f6c0

Requested commit: 61289a152d7c655a3239ff9c9cfef4ee3bd9f6c0

Commit: 61289a152d7c655a3239ff9c9cfef4ee3bd9f6c0

Tree: c330486d774d1461a9208be9474e7a5906833ec8

Author: Julius Marminge

Committer: Julius Marminge

## Message

```
Fix duplicated branch logic and feature-branch dialog on push-only

Deduplicate feature/ prefix logic in resolveAutoFeatureBranchName by
delegating to sanitizeFeatureBranchName. Skip the default-branch
confirmation dialog when there are no uncommitted changes (push-only),
since runFeatureBranchStep requires dirty worktree. Add merge-base
assertions to feature branch tests.

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

```

## Parents

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

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