Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 11 additions & 7 deletions apps/web/src/components/settings/BranchNamingSettings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,17 @@ export function BranchNamingSettings() {
serverScoped
settingKeys={["branchNamingMode"]}
{...searchableSetting("worktree-branch-naming")}
description="Choose how new worktree branches are named from your first message."
description={
<>
Choose how new worktree branches are named from your first message.
{!modeMixed && settings.branchNamingMode === "semantic" ? (
<span className="mt-1 block text-pretty">
The model chooses a prefix that describes the work, such as feat/add-search,
fix/login-timeout, or refactor/auth.
</span>
) : null}
</>
}
resetAction={
settings.branchNamingMode !== DEFAULT_SERVER_SETTINGS.branchNamingMode || modeMixed ? (
<SettingResetButton
Expand Down Expand Up @@ -109,12 +119,6 @@ export function BranchNamingSettings() {
}
/>
) : null}
{!modeMixed && settings.branchNamingMode === "semantic" ? (
<p className="pb-3 text-sm text-muted-foreground">
The model chooses a prefix that describes the work, such as feat/add-search,
fix/login-timeout, or refactor/auth.
</p>
) : null}
{!modeMixed && settings.branchNamingMode === "custom" ? (
<SettingsRow
serverScoped
Expand Down
Loading