From 7e1acedfcff2b40c1d48ddef430ac81205280ce3 Mon Sep 17 00:00:00 2001 From: Arjun <6592213+arkml@users.noreply.github.com> Date: Wed, 24 Jun 2026 12:01:10 +0530 Subject: [PATCH] remove recents from new chat --- apps/x/apps/renderer/src/App.tsx | 3 - .../src/components/chat-empty-state.tsx | 55 ++----------------- .../renderer/src/components/chat-sidebar.tsx | 5 -- 3 files changed, 5 insertions(+), 58 deletions(-) diff --git a/apps/x/apps/renderer/src/App.tsx b/apps/x/apps/renderer/src/App.tsx index ea575a26..fda27bf6 100644 --- a/apps/x/apps/renderer/src/App.tsx +++ b/apps/x/apps/renderer/src/App.tsx @@ -6219,9 +6219,6 @@ function App() { {!tabHasConversation ? ( void navigateToView({ type: 'chat', runId: rid })} - onOpenChatHistory={() => void navigateToView({ type: 'chat-history' })} onPickPrompt={setPresetMessage} /> ) : ( diff --git a/apps/x/apps/renderer/src/components/chat-empty-state.tsx b/apps/x/apps/renderer/src/components/chat-empty-state.tsx index 9423d060..fca21600 100644 --- a/apps/x/apps/renderer/src/components/chat-empty-state.tsx +++ b/apps/x/apps/renderer/src/components/chat-empty-state.tsx @@ -1,19 +1,9 @@ -import { ArrowUpRight, Bot, Mail, MessageSquare, Sparkles, Telescope } from 'lucide-react' +import { Bot, Mail, Sparkles, Telescope } from 'lucide-react' import { cn } from '@/lib/utils' -import { formatRelativeTime } from '@/lib/relative-time' import { ToolConnectionsCard } from '@/components/tool-connections-card' -export interface ChatEmptyStateRun { - id: string - title?: string - createdAt: string -} - interface ChatEmptyStateProps { - recentRuns?: ChatEmptyStateRun[] - onSelectRun?: (runId: string) => void - onOpenChatHistory?: () => void /** Fill the composer with a starter prompt (does not submit). */ onPickPrompt: (prompt: string) => void /** Use a wider column — for the full-screen chat where the narrow column looks cramped. */ @@ -27,13 +17,10 @@ const SUGGESTED_ACTIONS: { icon: typeof Mail; title: string; sub: string; prompt ] /** - * Empty-state body for the chat surface: greeting, recent chats, and starter - * action cards. Shown in both the side-pane copilot and full-screen chat. + * Empty-state body for the chat surface: greeting and starter action cards. + * Shown in both the side-pane copilot and full-screen chat. */ export function ChatEmptyState({ - recentRuns = [], - onSelectRun, - onOpenChatHistory, onPickPrompt, wide = false, }: ChatEmptyStateProps) { @@ -45,45 +32,13 @@ export function ChatEmptyState({
What are we working on?
-
Ask anything, or pick up where you left off.
+
Ask anything, or start with a suggestion.
- {recentRuns.length > 0 && ( -
-
- Recent chats - {onOpenChatHistory && ( - - )} -
-
- {recentRuns.slice(0, 4).map((run) => ( - - ))} -
-
- )} -
- {recentRuns.length > 0 ? 'Or start fresh' : 'Get started'} + Get started
{SUGGESTED_ACTIONS.map((action) => ( diff --git a/apps/x/apps/renderer/src/components/chat-sidebar.tsx b/apps/x/apps/renderer/src/components/chat-sidebar.tsx index f0f29439..a463b080 100644 --- a/apps/x/apps/renderer/src/components/chat-sidebar.tsx +++ b/apps/x/apps/renderer/src/components/chat-sidebar.tsx @@ -674,11 +674,6 @@ export function ChatSidebar({ {!tabHasConversation ? ( ) : (