diff --git a/src/renderer/src/components/tab-bar/QuickLaunchButton.tsx b/src/renderer/src/components/tab-bar/QuickLaunchButton.tsx index 63f16839eaa..c13031303dd 100644 --- a/src/renderer/src/components/tab-bar/QuickLaunchButton.tsx +++ b/src/renderer/src/components/tab-bar/QuickLaunchButton.tsx @@ -1,5 +1,5 @@ import React, { useCallback } from 'react' -import { MessageSquare, Settings as SettingsIcon } from 'lucide-react' +import { Settings as SettingsIcon } from 'lucide-react' import { toast } from 'sonner' import { DropdownMenuItem, DropdownMenuShortcut } from '@/components/ui/dropdown-menu' import { getAgentCatalog, AgentIcon } from '@/lib/agent-catalog' @@ -15,7 +15,6 @@ import { filterEnabledTuiAgents } from '../../../../shared/tui-agent-selection' import { translate } from '@/i18n/i18n' -import { useStructuredAgentSessionCreate } from '../native-chat/use-structured-agent-session-create' export type QuickLaunchAgentMenuItemsProps = { worktreeId: string @@ -117,7 +116,6 @@ function QuickLaunchAgentMenuItemsInner({ const openSettingsPage = useAppStore((s) => s.openSettingsPage) const openSettingsTarget = useAppStore((s) => s.openSettingsTarget) const newAgentShortcut = useOptionalShortcutLabel('tab.newAgent') - const structuredSession = useStructuredAgentSessionCreate(worktreeId) const openAgentSettings = useCallback(() => { openSettingsTarget({ pane: 'agents', repoId: null }) @@ -218,35 +216,6 @@ function QuickLaunchAgentMenuItemsInner({ {newAgentShortcut} ) : null} - {agent === 'codex' && structuredSession.supported ? ( - { - void structuredSession.create().catch((error) => { - toast.error( - translate( - 'auto.components.tab.bar.QuickLaunchButton.f378201fbd', - 'Could not create chat session' - ), - { description: error instanceof Error ? error.message : String(error) } - ) - }) - }} - className="gap-2 rounded-[7px] px-2 py-1.5 pl-6 text-[12px] leading-5 font-medium" - title={translate( - 'auto.components.tab.bar.QuickLaunchButton.a847779775', - 'Start Codex without a terminal' - )} - > - - - {translate( - 'auto.components.tab.bar.QuickLaunchButton.0ea6a78efb', - 'Chat session' - )} - - - ) : null} ) })}