From 27b2d1bc3ea7b2b476f406685a1ec716692f6323 Mon Sep 17 00:00:00 2001 From: Jinjing <6427696+AmethystLiang@users.noreply.github.com> Date: Mon, 8 Jun 2026 01:02:25 -0700 Subject: [PATCH] Remove auto-rename-branch hint from workspace composer (#4872) - Deletes AutoRenameBranchHint component and its associated UI - Removes the gear affordance, popover, toggle, and inline "Auto-named if left blank" indicator - Simplifies the workspace name label area for git repos --- .../components/NewWorkspaceComposerCard.tsx | 26 ++---- .../new-workspace/AutoRenameBranchHint.tsx | 89 ------------------- 2 files changed, 5 insertions(+), 110 deletions(-) delete mode 100644 src/renderer/src/components/new-workspace/AutoRenameBranchHint.tsx diff --git a/src/renderer/src/components/NewWorkspaceComposerCard.tsx b/src/renderer/src/components/NewWorkspaceComposerCard.tsx index d45fff7d1..2dabc2b80 100644 --- a/src/renderer/src/components/NewWorkspaceComposerCard.tsx +++ b/src/renderer/src/components/NewWorkspaceComposerCard.tsx @@ -10,8 +10,7 @@ import { FolderPlus, LoaderCircle, PlugZap, - Settings2, - Sparkles + Settings2 } from 'lucide-react' import { Button } from '@/components/ui/button' import { Tooltip, TooltipContent, TooltipTrigger } from '@/components/ui/tooltip' @@ -35,7 +34,6 @@ import SparseCheckoutPresetSelect from '@/components/sparse/SparseCheckoutPreset import SmartWorkspaceNameField, { type SmartWorkspaceNameSelection } from '@/components/new-workspace/SmartWorkspaceNameField' -import AutoRenameBranchHint from '@/components/new-workspace/AutoRenameBranchHint' import type { SetupConfig } from '@/lib/new-workspace' import type { WorkspaceCreateErrorDisplay } from '@/lib/workspace-create-error-format' import type { SshConnectionStatus } from '../../../shared/ssh-types' @@ -264,7 +262,6 @@ export default function NewWorkspaceComposerCard({ const defaultTuiAgent = useAppStore((s) => s.settings?.defaultTuiAgent ?? null) const disabledTuiAgents = useAppStore((s) => s.settings?.disabledTuiAgents ?? []) const updateSettings = useAppStore((s) => s.updateSettings) - const autoRenameBranchFromWork = useAppStore((s) => s.settings?.autoRenameBranchFromWork ?? false) const nameInputFocusFrameRef = React.useRef(null) const submitShortcutModifierLabel = getScreenSubmitModifierLabel() const selectedRepoName = React.useMemo(() => { @@ -455,23 +452,10 @@ export default function NewWorkspaceComposerCard({
-
- - {selectedRepoIsGit ? ( -
- {autoRenameBranchFromWork ? ( - - - Auto-named if left blank - - ) : null} - -
- ) : null} -
+ s.settings?.autoRenameBranchFromWork ?? false) - const updateSettings = useAppStore((s) => s.updateSettings) - const openSettingsPage = useAppStore((s) => s.openSettingsPage) - const openSettingsTarget = useAppStore((s) => s.openSettingsTarget) - const closeModal = useAppStore((s) => s.closeModal) - - const handleOpenSettings = React.useCallback((): void => { - // Why: the toggle lives in the Git settings page (Git AI Author pane); - // closing the composer first keeps it from rendering behind the modal. - closeModal() - openSettingsTarget({ pane: 'git', repoId: null }) - openSettingsPage() - }, [closeModal, openSettingsPage, openSettingsTarget]) - - return ( - - - - - -
-
-
- Auto-name from work - -
-

- When you leave the name blank, Orca uses the first task to rename the sidebar title - and unpublished generated branch. -

-
- - -
-
-
- ) -}