From b33e0bfd35c8535e39e62e343a13d8928ccfce2c Mon Sep 17 00:00:00 2001
From: Brennan Benson <79079362+brennanb2025@users.noreply.github.com>
Date: Tue, 18 Aug 2026 15:15:01 -0700
Subject: [PATCH] feat(native-chat): drop the standalone Chat session launcher
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
The QuickLaunch "Chat session" entry ("Start Codex without a terminal") was
scaffolding for testing the structured path, not a product surface. Shipping it
would introduce a second way to reach chat alongside the existing terminal
toggle, and then take it away again once the toggle routes codex to the
structured path — a surface that appears and disappears for exactly the
experimental users who would notice.
Structured chat now ships dormant: the store, journal, lease and app-server
transport are all present and exercised at startup, with no user-facing entry
point. The toggle users already know (right-click a codex tab -> Switch to chat
view, plus the pane menu, the pane shortcut, and the source-control surfaces)
becomes the single door in a follow-up, once a running CLI session can be
adopted into a structured one.
`useStructuredAgentSessionCreate` stays — adoption will call agentSession.create
through it. Only the menu entry and its now-unused imports go.
Verified: 1198 renderer tests, web typecheck, oxlint clean.
---
.../components/tab-bar/QuickLaunchButton.tsx | 33 +------------------
1 file changed, 1 insertion(+), 32 deletions(-)
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}
)
})}