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
TypeScript aianthropicartifactsawsazurechatgptchatgpt-cloneclaudeclonedeepseekgeminigooglegpt-5librechatmcpo1openairesponses-apivisionwebui
🫥 fix: Remove Hover and Press Backgrounds From Chat Tool Rows (#16749)
Marco Berettacf379d429398
diff --git a/client/src/components/Chat/Messages/Content/Parts/ArtifactRow.tsx b/client/src/components/Chat/Messages/Content/Parts/ArtifactRow.tsxindex 2dc7e70fc7..ba753ae572 100644--- a/client/src/components/Chat/Messages/Content/Parts/ArtifactRow.tsx+++ b/client/src/components/Chat/Messages/Content/Parts/ArtifactRow.tsx@@ -79,18 +79,18 @@ const ArtifactRow = forwardRef<HTMLButtonElement, ArtifactRowProps>(function Art}return (- <div className={cn(TOOL_ROW_CLASSES, 'text-sm text-text-secondary')}>+ <div className={cn(TOOL_ROW_CLASSES, 'text-text-secondary text-sm')}><Buttonref={ref}type="button"- variant="ghost"+ variant="disclosure"aria-controls="artifact-viewer"aria-expanded={isSelected}data-artifact-trigger={artifactId}onClick={onOpen}className={cn('inline-flex h-auto min-w-0 flex-1 items-center justify-start gap-2.5 rounded-none p-0',- 'hover:bg-transparent hover:text-text-primary focus-visible:ring-text-primary focus-visible:ring-offset-0',+ 'hover:text-text-primary focus-visible:ring-text-primary focus-visible:ring-offset-0',isSelected && 'text-text-primary',)}>@@ -107,7 +107,7 @@ const ArtifactRow = forwardRef<HTMLButtonElement, ArtifactRowProps>(function Artthe streaming cursor and a call header can trade places withoutmoving what is under them, and a taller child here would pushpast that box. */}- <span className="shrink-0 rounded px-1.5 text-[10px] font-medium uppercase leading-5 tracking-wide text-text-tertiary ring-1 ring-inset ring-border-light">+ <span className="text-text-tertiary ring-border-light shrink-0 rounded px-1.5 text-[10px] leading-5 font-medium tracking-wide uppercase ring-1 ring-inset">{label}</span>{/* The glyph's tint is the visual half of the preview/source split@@ -128,7 +128,7 @@ const ArtifactRow = forwardRef<HTMLButtonElement, ArtifactRowProps>(function Artsize="icon"onClick={onDownload}aria-label={`${localize('com_ui_download')} ${title}`}- className="size-5 shrink-0 rounded text-text-secondary hover:bg-surface-hover hover:text-text-primary focus-visible:ring-text-primary focus-visible:ring-offset-0"+ className="text-text-secondary hover:bg-surface-hover hover:text-text-primary focus-visible:ring-text-primary size-5 shrink-0 rounded focus-visible:ring-offset-0"><Download className="size-4" aria-hidden="true" /></Button>diff --git a/client/src/components/Chat/Messages/Content/Parts/SubagentCall.tsx b/client/src/components/Chat/Messages/Content/Parts/SubagentCall.tsxindex 02b2eb4418..c5bef1a9c7 100644--- a/client/src/components/Chat/Messages/Content/Parts/SubagentCall.tsx+++ b/client/src/components/Chat/Messages/Content/Parts/SubagentCall.tsx@@ -407,7 +407,7 @@ export default function SubagentCall({data-subagent-part-index={partIndex}className={cn('border-border-light bg-surface-secondary my-2 flex w-full flex-col gap-1 rounded-lg border px-3 py-2 text-left transition',- canOpenDetails ? 'group hover:bg-surface-tertiary' : 'cursor-default opacity-80',+ canOpenDetails ? 'group' : 'cursor-default opacity-80',running && !detachedStatusUnknown && 'animate-pulse-slow',)}aria-label={headerText}diff --git a/client/src/components/Chat/Messages/Content/Parts/Summary.tsx b/client/src/components/Chat/Messages/Content/Parts/Summary.tsxindex a2e01ad9f7..3d62a266ba 100644--- a/client/src/components/Chat/Messages/Content/Parts/Summary.tsx+++ b/client/src/components/Chat/Messages/Content/Parts/Summary.tsx@@ -77,12 +77,12 @@ const SummaryButton = memo(return (<div className="group/summary flex w-full items-center justify-between gap-2"><Button- variant="ghost"+ variant="disclosure"onClick={onClick}aria-expanded={isExpanded}aria-controls={contentId}className={cn(- 'group/button h-auto flex-1 justify-start gap-0 rounded-lg p-0 leading-[18px] font-normal hover:bg-transparent',+ 'group/button h-auto flex-1 justify-start gap-0 rounded-lg p-0 leading-[18px] font-normal',fontSize,)}>diff --git a/client/src/components/Chat/Messages/Content/Parts/WorkspaceChanges.tsx b/client/src/components/Chat/Messages/Content/Parts/WorkspaceChanges.tsxindex d49cc137b0..bb5a2aa0da 100644--- a/client/src/components/Chat/Messages/Content/Parts/WorkspaceChanges.tsx+++ b/client/src/components/Chat/Messages/Content/Parts/WorkspaceChanges.tsx@@ -51,13 +51,13 @@ const WorkspaceChange = memo(({ attachment }: { attachment: StatefulWorkspaceAtt});return (- <div className="flex min-w-0 items-center gap-2 rounded-lg bg-surface-secondary px-3 py-2">+ <div className="bg-surface-secondary flex min-w-0 items-center gap-2 rounded-lg px-3 py-2"><div className="min-w-0 flex-1">- <div className="truncate text-sm font-medium text-text-primary" title={filename}>+ <div className="text-text-primary truncate text-sm font-medium" title={filename}>{filename}</div>{path !== filename && (- <div className="truncate text-xs text-text-secondary" title={path}>+ <div className="text-text-secondary truncate text-xs" title={path}>{path}</div>)}@@ -104,12 +104,12 @@ export default function WorkspaceChanges({return (<div className="my-2 max-w-xl"><Button- variant="ghost"+ variant="disclosure"aria-expanded={isExpanded}aria-controls={panelId}aria-label={`${localize('com_ui_workspace_changes')}: ${countLabel}`}onClick={() => setIsExpanded((previous) => !previous)}- className="h-auto max-w-full justify-start py-1 pl-0 pr-2 font-normal text-text-secondary"+ className="text-text-secondary h-auto max-w-full justify-start py-1 pr-2 pl-0 font-normal"><Files className="size-4 shrink-0" aria-hidden="true" /><span className="shrink-0 font-medium">{localize('com_ui_workspace_changes')}</span>diff --git a/client/src/components/Chat/Messages/Content/WebSearch.tsx b/client/src/components/Chat/Messages/Content/WebSearch.tsxindex b72157061f..599a230599 100644--- a/client/src/components/Chat/Messages/Content/WebSearch.tsx+++ b/client/src/components/Chat/Messages/Content/WebSearch.tsx@@ -250,9 +250,9 @@ export default function WebSearch({</span><div className="relative flex h-5 items-center gap-1.5"><Button- variant="ghost"+ variant="disclosure"className={cn(- 'tool-status-text group/disclosure text-text-secondary h-5 min-w-0 justify-start gap-2 rounded-full p-0 font-normal hover:bg-transparent',+ 'tool-status-text group/disclosure text-text-secondary h-5 min-w-0 justify-start gap-2 rounded-full p-0 font-normal',/** This row is a status line, not a padded control: the shared* recipe's color transition would turn its hover into a fade,* and the chevron reveal beside it is deliberately instant. */diff --git a/eslint-suppressions.json b/eslint-suppressions.jsonindex 58ed82e8d7..daa7384f8b 100644--- a/eslint-suppressions.json+++ b/eslint-suppressions.json@@ -470,7 +470,7 @@"count": 1},"shadcn/no-restyle": {- "count": 14+ "count": 13}},"client/src/components/Chat/Messages/Content/Parts/Attachment.tsx": {@@ -580,7 +580,7 @@"count": 1},"shadcn/no-restyle": {- "count": 18+ "count": 17},"shadcn/require-static-classes": {"count": 1@@ -695,7 +695,7 @@"count": 1},"shadcn/no-restyle": {- "count": 16+ "count": 15}},"client/src/components/Chat/Messages/Content/animate.tsx": {