fix(web): semantic branch naming hint lines up with its setting (#16972)

This commit is contained in:
Daniel Alvim authored and GitHub committed 2026-10-08 23:50:57 +00:00
1 parent 5b78b34bba
commit 6308db4ff5
1 file changed
+5 -6
@@ -37,6 +37,11 @@ export function BranchNamingSettings() {
settingKeys={["branchNamingMode"]}
{...searchableSetting("worktree-branch-naming")}
description="Choose how new worktree branches are named from your first message."
status={
!modeMixed && settings.branchNamingMode === "semantic"
? "The model chooses a prefix that describes the work, such as feat/add-search, fix/login-timeout, or refactor/auth."
: undefined
}
resetAction={
settings.branchNamingMode !== DEFAULT_SERVER_SETTINGS.branchNamingMode || modeMixed ? (
<SettingResetButton
@@ -109,12 +114,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