Skip to content

Enhanced ChatGPT Clone: Features Agents, MCP, Skills, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, Code Interpreter, langchain, DALL-E-3, OpenAPI Actions, Functions, Secure Multi-User Auth, Presets, open-source for self-hosting. Active

🗃️ fix: Enlarge Archived Chats and Align Conversation Icons (#17440)

Marco Beretta849bc029a92c
diff --git a/client/src/components/Nav/SettingsTabs/General/ArchivedChatsModal.tsx b/client/src/components/Nav/SettingsTabs/General/ArchivedChatsModal.tsx
index 1feec09651..9162fb4312 100644
--- a/client/src/components/Nav/SettingsTabs/General/ArchivedChatsModal.tsx
+++ b/client/src/components/Nav/SettingsTabs/General/ArchivedChatsModal.tsx
@@ -33,7 +33,7 @@ export function ArchivedChatsModal({
ref={contentRef}
tabIndex={-1}
onOpenAutoFocus={handleOpenAutoFocus}
- className="w-11/12 max-w-3xl shadow-2xl"
+ className="w-11/12 max-w-5xl shadow-2xl"
>
<OGDialogHeader>
<OGDialogTitle>{localize('com_nav_archived_chats')}</OGDialogTitle>
diff --git a/client/src/components/Nav/SettingsTabs/General/ArchivedChatsTable.tsx b/client/src/components/Nav/SettingsTabs/General/ArchivedChatsTable.tsx
index 50bc704e31..3a637d016d 100644
--- a/client/src/components/Nav/SettingsTabs/General/ArchivedChatsTable.tsx
+++ b/client/src/components/Nav/SettingsTabs/General/ArchivedChatsTable.tsx
@@ -23,7 +23,7 @@ import {
useDeleteConversationMutation,
useArchiveConvoMutation,
} from '~/data-provider';
-import { MinimalIcon } from '~/components/Endpoints';
+import ConversationEndpointIcon from '~/components/Conversations/ConversationEndpointIcon';
import { NotificationSeverity } from '~/common';
import { formatDate, logger } from '~/utils';
import { useLocalize } from '~/hooks';
@@ -171,7 +171,7 @@ export default function ArchivedChatsTable() {
to={`/c/${conversationId ?? ''}`}
target="_blank"
rel="noopener noreferrer"
- className="group text-text-primary focus-visible:ring-text-primary flex items-center gap-1.5 truncate rounded-sm font-medium underline-offset-4 hover:underline focus-visible:ring-2 focus-visible:outline-hidden"
+ className="group text-text-primary focus-visible:ring-text-primary flex min-w-0 items-center gap-1.5 truncate rounded-sm font-medium underline-offset-4 hover:underline focus-visible:ring-2 focus-visible:outline-hidden"
aria-label={localize('com_ui_open_archived_chat_new_tab_title', {
title: title ?? localize('com_ui_untitled'),
})}
@@ -185,12 +185,13 @@ export default function ArchivedChatsTable() {
);
return (
<div className="flex w-0 min-w-full items-center gap-2.5">
- <MinimalIcon
- endpoint={row.original.endpoint}
- size={28}
- isCreatedByUser={false}
- iconClassName="size-4"
- />
+ <span className="flex size-5 shrink-0 items-center justify-center">
+ <ConversationEndpointIcon
+ conversation={row.original}
+ size={20}
+ context="menu-item"
+ />
+ </span>
{title ? <TooltipAnchor description={title} render={link} /> : link}
</div>
);
diff --git a/client/src/components/Nav/SettingsTabs/General/__tests__/ArchivedChats.spec.tsx b/client/src/components/Nav/SettingsTabs/General/__tests__/ArchivedChats.spec.tsx
new file mode 100644
index 0000000000..bcd20a3616
--- /dev/null
+++ b/client/src/components/Nav/SettingsTabs/General/__tests__/ArchivedChats.spec.tsx
@@ -0,0 +1,89 @@
+import React from 'react';
+import { RecoilRoot } from 'recoil';
+import { MemoryRouter } from 'react-router-dom';
+import { ToastProvider } from '@librechat/client';
+import { render, screen } from '@testing-library/react';
+import { ArchivedChatsModal } from '../ArchivedChatsModal';
+
+jest.mock('~/hooks', () => ({
+ useLocalize: () => (key: string) => key,
+}));
+
+jest.mock('~/Providers', () => ({
+ useAgentsMapContext: () => ({
+ 'agent-1': { name: 'Archive agent', avatar: { filepath: '/images/agent.png' } },
+ }),
+ useAssistantsMapContext: () => ({}),
+}));
+
+jest.mock('~/data-provider', () => ({
+ useGetEndpointsQuery: () => ({ data: {} }),
+ useConversationsInfiniteQuery: () => ({
+ data: {
+ pages: [
+ {
+ conversations: [
+ {
+ conversationId: 'archived-1',
+ title: '<think> Hmm, the user is asking for a very complicated conversation title',
+ endpoint: 'agents',
+ agent_id: 'agent-1',
+ createdAt: '2025-08-01T00:00:00Z',
+ },
+ ],
+ },
+ ],
+ },
+ refetch: jest.fn(),
+ }),
+ useDeleteConversationMutation: () => ({ mutate: jest.fn() }),
+ useArchiveConvoMutation: () => ({ mutate: jest.fn() }),
+}));
+
+jest.mock('~/store', () => {
+ const { atom } = jest.requireActual('recoil');
+ return {
+ __esModule: true,
+ default: {
+ search: atom({ key: 'archived-chats-test-search', default: { enabled: false } }),
+ },
+ };
+});
+
+function renderArchive() {
+ return render(
+ <RecoilRoot>
+ <MemoryRouter>
+ <ToastProvider>
+ <ArchivedChatsModal open onOpenChange={jest.fn()} />
+ </ToastProvider>
+ </MemoryRouter>
+ </RecoilRoot>,
+ );
+}
+
+describe('archived chats presentation', () => {
+ it('uses the agent avatar from the conversation list', () => {
+ renderArchive();
+ expect(screen.queryByRole('img', { name: 'Archive agent' })).toHaveAttribute(
+ 'src',
+ '/images/agent.png',
+ );
+ });
+
+ it('reserves a nonshrinking icon slot beside long titles', () => {
+ renderArchive();
+ const link = screen.getByRole('link');
+ expect(link.parentElement?.firstElementChild).toHaveClass('size-5', 'shrink-0');
+ });
+
+ it('lets the title shrink without compressing the icon', () => {
+ renderArchive();
+ expect(screen.getByRole('link')).toHaveClass('min-w-0');
+ });
+
+ it('provides a larger desktop dialog', () => {
+ renderArchive();
+ expect(screen.getByRole('dialog')).toHaveClass('max-w-5xl');
+ });
+});