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: Reconcile Canary Server Startup and Static Gates
Lia3a73e508fc56
diff --git a/api/server/routes/convos.js b/api/server/routes/convos.jsindex e9f1f008e8..0a6d32e5d2 100644--- a/api/server/routes/convos.js+++ b/api/server/routes/convos.js@@ -39,7 +39,6 @@ const {isStopConfirmed,} = require('@librechat/api');const { logger } = require('@librechat/data-schemas');-const { getAppConfig } = require('~/server/services/Config/app');const { CacheKeys, EModelEndpoint } = require('librechat-data-provider');const {createImportLimiters,diff --git a/client/src/components/Chat/Messages/Content/AskUserQuestionCall.tsx b/client/src/components/Chat/Messages/Content/AskUserQuestionCall.tsxindex e3e300d4ab..d746de0eb9 100644--- a/client/src/components/Chat/Messages/Content/AskUserQuestionCall.tsx+++ b/client/src/components/Chat/Messages/Content/AskUserQuestionCall.tsx@@ -157,10 +157,10 @@ export default function AskUserQuestionCall({subtitle={summary}icon={terminalFailure ? (- <TriangleAlert className="size-4 shrink-0 text-text-warning" aria-hidden="true" />+ <TriangleAlert className="text-text-warning size-4 shrink-0" aria-hidden="true" />) : (<MessageCircleQuestion- className="size-4 shrink-0 text-text-secondary"+ className="text-text-secondary size-4 shrink-0"aria-hidden="true"/>)@@ -179,15 +179,15 @@ export default function AskUserQuestionCall({)}<div style={expandStyle}><div className="overflow-hidden" ref={expandRef}>- <div className="my-2 flex w-full flex-col gap-4 rounded-lg border border-border-light bg-surface-secondary p-4">+ <div className="border-border-light bg-surface-secondary my-2 flex w-full flex-col gap-4 rounded-lg border p-4">{batch != null ? (batch.questions.map((item, index) => (<divkey={item.id}- className={index > 0 ? 'border-t border-border-light pt-4' : undefined}+ className={index > 0 ? 'border-border-light border-t pt-4' : undefined}>{item.header != null && (- <p className="mb-1 text-xs font-medium text-text-secondary">{item.header}</p>+ <p className="text-text-secondary mb-1 text-xs font-medium">{item.header}</p>)}<QuestionBodyquestion={item.question}@@ -210,7 +210,7 @@ export default function AskUserQuestionCall({/>)}{terminalFailure && (- <p className="text-sm leading-relaxed text-text-secondary">+ <p className="text-text-secondary text-sm leading-relaxed">{localize('com_ui_question_failed_description')}</p>)}@@ -248,27 +248,27 @@ function QuestionBody({return (<div className="min-w-0">{question.length > 0 && (- <p className="whitespace-pre-wrap text-sm font-medium leading-relaxed text-text-primary [overflow-wrap:anywhere]">+ <p className="text-text-primary text-sm leading-relaxed font-medium [overflow-wrap:anywhere] whitespace-pre-wrap">{question}</p>)}{description != null && description.length > 0 && (- <p className="mt-1 whitespace-pre-wrap text-sm leading-relaxed text-text-secondary [overflow-wrap:anywhere]">+ <p className="text-text-secondary mt-1 text-sm leading-relaxed [overflow-wrap:anywhere] whitespace-pre-wrap">{description}</p>)}{typeof answer === 'string' && (- <div className="mt-2.5 border-l-2 border-border-medium pl-3">- <p className="text-xs font-medium text-text-secondary">+ <div className="border-border-medium mt-2.5 border-l-2 pl-3">+ <p className="text-text-secondary text-xs font-medium">{localize('com_ui_you_answered')}</p>- <p className="mt-0.5 whitespace-pre-wrap text-sm leading-relaxed text-text-primary [overflow-wrap:anywhere]">+ <p className="text-text-primary mt-0.5 text-sm leading-relaxed [overflow-wrap:anywhere] whitespace-pre-wrap">{formatAnswerLabel({ question, options, multiSelect }, answer)}</p></div>)}{typeof answer !== 'string' && !failed && (- <p className="mt-2.5 text-sm italic text-text-secondary">+ <p className="text-text-secondary mt-2.5 text-sm italic">{localize('com_ui_question_unanswered')}</p>)}diff --git a/client/src/components/Chat/Messages/Content/BackgroundTaskCard.tsx b/client/src/components/Chat/Messages/Content/BackgroundTaskCard.tsxindex b46897aa91..2e3372f6ab 100644--- a/client/src/components/Chat/Messages/Content/BackgroundTaskCard.tsx+++ b/client/src/components/Chat/Messages/Content/BackgroundTaskCard.tsx@@ -64,18 +64,18 @@ export default function BackgroundTaskCard({return (<div- className="min-w-0 rounded-lg border border-border-light bg-surface-secondary/50 p-3"+ className="border-border-light bg-surface-secondary/50 min-w-0 rounded-lg border p-3"data-testid="background-task-card"><div className="flex min-w-0 items-start gap-2.5">- <span className="flex size-8 shrink-0 items-center justify-center rounded-md bg-surface-tertiary">- <ToolIcon type={iconType} iconUrl={iconUrl} className="text-text-primary" />+ <span className="bg-surface-tertiary flex size-8 shrink-0 items-center justify-center rounded-md">+ <ToolIcon type={iconType} iconUrl={iconUrl} /></span><div className="min-w-0 flex-1 pt-0.5">- <div className="truncate text-sm font-semibold text-text-primary" title={title}>+ <div className="text-text-primary truncate text-sm font-semibold" title={title}>{title}</div>- {subtitle && <div className="truncate text-xs text-text-secondary">{subtitle}</div>}+ {subtitle && <div className="text-text-secondary truncate text-xs">{subtitle}</div>}{delivery && (<divclassName={cn(@@ -89,7 +89,7 @@ export default function BackgroundTaskCard({</div><spanclassName={cn(- 'inline-flex shrink-0 items-center gap-1.5 rounded-full bg-surface-tertiary px-2 py-1 text-xs text-text-secondary',+ 'bg-surface-tertiary text-text-secondary inline-flex shrink-0 items-center gap-1.5 rounded-full px-2 py-1 text-xs',failed && 'text-status-error',)}>@@ -98,7 +98,7 @@ export default function BackgroundTaskCard({</span></div>{result && (- <div className="mt-3 border-t border-border-light pt-2.5">+ <div className="border-border-light mt-3 border-t pt-2.5"><divclassName={cn('mb-1.5 text-xs font-medium',@@ -107,7 +107,7 @@ export default function BackgroundTaskCard({>{localize(failed && !error ? 'com_ui_error' : 'com_ui_output')}</div>- <div className="min-w-0 rounded-md bg-surface-primary p-2.5">+ <div className="bg-surface-primary min-w-0 rounded-md p-2.5"><OutputRenderertext={isCode ? formatBackgroundCodeOutput(result) : result}copyText={result}@@ -116,11 +116,11 @@ export default function BackgroundTaskCard({</div>)}{error && (- <div className="mt-3 border-t border-border-light pt-2.5">- <div className="mb-1.5 text-xs font-medium text-status-error">+ <div className="border-border-light mt-3 border-t pt-2.5">+ <div className="text-status-error mb-1.5 text-xs font-medium">{localize('com_ui_error')}</div>- <div className="min-w-0 rounded-md bg-surface-primary p-2.5">+ <div className="bg-surface-primary min-w-0 rounded-md p-2.5"><OutputRenderertext={isCode ? formatBackgroundCodeOutput(error) : error}copyText={error}@@ -129,18 +129,18 @@ export default function BackgroundTaskCard({</div>)}{!result && !error && task.resultClaimed && task.status !== 'claimed' && (- <p className="mt-2 text-xs text-text-secondary">+ <p className="text-text-secondary mt-2 text-xs">{localize('com_ui_background_tasks_result_claimed')}</p>)}{!result && !error && task.resultAvailable && !task.resultClaimed && (- <p className="mt-2 text-xs text-text-secondary">+ <p className="text-text-secondary mt-2 text-xs">{localize('com_ui_background_tasks_result_available')}</p>)}- {noteKey && <p className="mt-2 text-xs text-text-secondary">{localize(noteKey)}</p>}+ {noteKey && <p className="text-text-secondary mt-2 text-xs">{localize(noteKey)}</p>}{messageKey && messageKey !== noteKey && (- <p className="mt-2 text-xs text-text-secondary">{localize(messageKey)}</p>+ <p className="text-text-secondary mt-2 text-xs">{localize(messageKey)}</p>)}{!result &&!error &&@@ -149,7 +149,7 @@ export default function BackgroundTaskCard({task.result === '' &&!task.note &&!task.message && (- <p className="mt-2 text-xs text-text-secondary">+ <p className="text-text-secondary mt-2 text-xs">{localize('com_ui_background_tasks_no_output')}</p>)}diff --git a/client/src/components/Chat/Messages/Content/Parts/BackgroundTaskCall.css b/client/src/components/Chat/Messages/Content/Parts/BackgroundTaskCall.cssnew file mode 100644index 0000000000..2a69f48e6f--- /dev/null+++ b/client/src/components/Chat/Messages/Content/Parts/BackgroundTaskCall.css@@ -0,0 +1,24 @@+/* The shared collapse hook keeps the body inert. The CSS keeps the same grid/opacity+ timing without an uninspectable style object, including a reduced-motion+ transitionend so the lazy body can unmount after it closes. */+[data-background-task-fold] {+ display: grid;+ grid-template-rows: 0fr;+ opacity: 0;+ transition:+ grid-template-rows 0.3s cubic-bezier(0.16, 1, 0.3, 1),+ opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);+}++[data-background-task-fold][data-expanded='true'] {+ grid-template-rows: 1fr;+ opacity: 1;+}++@media (prefers-reduced-motion: reduce) {+ [data-background-task-fold] {+ transition:+ grid-template-rows 0.01ms linear,+ opacity 0.01ms linear;+ }+}diff --git a/client/src/components/Chat/Messages/Content/Parts/BackgroundTaskCall.tsx b/client/src/components/Chat/Messages/Content/Parts/BackgroundTaskCall.tsxindex 8a4a95d63e..bcbaa5d939 100644--- a/client/src/components/Chat/Messages/Content/Parts/BackgroundTaskCall.tsx+++ b/client/src/components/Chat/Messages/Content/Parts/BackgroundTaskCall.tsx@@ -14,6 +14,7 @@ import { useToolCallIntent } from './intent';import ToolCallInfo from '../ToolCallInfo';import { TOOL_ROW_CLASSES } from '../rows';import { cn } from '~/utils';+import './BackgroundTaskCall.css';export default function BackgroundTaskCall({args,@@ -64,7 +65,7 @@ export default function BackgroundTaskCall({() => (display?.kind === 'list' ? backgroundListGuidanceKeys(display) : []),[display],);- const { showCode, toggleCode, expandStyle, expandRef, phase, hasContent } = useToolCallState({+ const { showCode, toggleCode, expandRef, phase, hasContent } = useToolCallState({initialProgress,isSubmitting,output,@@ -124,7 +125,8 @@ export default function BackgroundTaskCall({/></div><div- style={expandStyle}+ data-background-task-fold+ data-expanded={showCode}onTransitionEnd={handleTransitionEnd}data-tool-call-output-id={toolCallId}>diff --git a/client/src/components/Chat/Messages/Content/Parts/SteerPart.tsx b/client/src/components/Chat/Messages/Content/Parts/SteerPart.tsxindex ffd47c0bdb..7838a0c160 100644--- a/client/src/components/Chat/Messages/Content/Parts/SteerPart.tsx+++ b/client/src/components/Chat/Messages/Content/Parts/SteerPart.tsx@@ -123,7 +123,7 @@ const SteerPart = memo(function SteerPart({><div className="user-turn relative flex w-fit max-w-[90%] flex-col items-end sm:max-w-[85%]"><h2 className="sr-only">{label}</h2>- <div className="flex max-w-full flex-col items-start gap-2 rounded-theme-surface rounded-br-theme-control bg-surface-tertiary px-theme-normal py-2.5">+ <div className="rounded-theme-surface rounded-br-theme-control bg-surface-tertiary px-theme-normal flex max-w-full flex-col items-start gap-2 py-2.5"><MessageQuotes quotes={quotes} />{(imageFiles.length > 0 || otherFiles.length > 0) && (<div className="flex w-full flex-wrap gap-2">@@ -165,7 +165,7 @@ const SteerPart = memo(function SteerPart({* flush under the bubble's bottom-right corner. Leading them would* park them wherever the hover-revealed time happens to end, and that* width changes as the relative string ticks. */}- <div className="mt-1 flex min-h-8 items-center justify-end gap-2 text-text-secondary">+ <div className="text-text-secondary mt-1 flex min-h-8 items-center justify-end gap-2"><MessageTimestamp value={timestamp} className="ml-0" /><SteerReceipt state="applied" live={isSubmitting} animateIn={animateIn} /></div>diff --git a/client/src/components/Chat/Messages/Content/Parts/SubagentCall.tsx b/client/src/components/Chat/Messages/Content/Parts/SubagentCall.tsxindex da7f31a633..9b732e7158 100644--- a/client/src/components/Chat/Messages/Content/Parts/SubagentCall.tsx+++ b/client/src/components/Chat/Messages/Content/Parts/SubagentCall.tsx@@ -402,17 +402,17 @@ export default function SubagentCall({data-subagent-parent-message={parentMessageId}data-subagent-part-index={partIndex}className={cn(- 'my-2 flex w-full flex-col gap-1 rounded-lg border border-border-light bg-surface-secondary px-3 py-2 text-left transition',+ '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',running && !detachedStatusUnknown && 'animate-pulse-slow',)}aria-label={headerText}>- <div className="flex items-center gap-2 text-sm font-medium text-text-primary">+ <div className="text-text-primary flex items-center gap-2 text-sm font-medium"><divclassName={cn('flex h-5 w-5 shrink-0 items-center justify-center overflow-hidden rounded-full',- running && !subagentAgent && 'animate-pulse text-text-primary',+ running && !subagentAgent && 'text-text-primary animate-pulse',)}aria-hidden="true">@@ -435,7 +435,7 @@ export default function SubagentCall({</span>{subagentNameLabel ? (<span- className="min-w-0 flex-1 truncate font-normal text-text-secondary"+ className="text-text-secondary min-w-0 flex-1 truncate font-normal"title={subagentNameLabel}>{subagentNameLabel}@@ -446,13 +446,13 @@ export default function SubagentCall({{canOpenDetails && (<ChevronRightsize={14}- className="shrink-0 text-text-secondary transition group-hover:translate-x-0.5"+ className="text-text-secondary shrink-0 transition group-hover:translate-x-0.5"aria-hidden="true"/>)}</div>- <ul className="w-full space-y-0.5 pl-5 font-mono text-xs text-text-secondary">+ <ul className="text-text-secondary w-full space-y-0.5 pl-5 font-mono text-xs">{displayedTickerLines.length === 0 && running ? (<li className="truncate opacity-70">{localize('com_ui_subagent_waiting')}</li>) : null}@@ -521,7 +521,7 @@ function tickerLineKey(line: SubagentTickerLine): string {* reads as a "code" token rather than plain prose. */function ToolNameBadge({ name }: { name: string }): JSX.Element {return (- <code className="shrink-0 rounded bg-surface-tertiary px-1 text-text-primary">{name}</code>+ <code className="bg-surface-tertiary text-text-primary shrink-0 rounded px-1">{name}</code>);}@@ -543,7 +543,7 @@ function ToolIdentifier({return (<span className="inline-flex min-w-0 shrink items-baseline gap-1"><span className="truncate">{parsed.mcpServer}</span>- <span className="shrink-0 text-text-tertiary">·</span>+ <span className="text-text-tertiary shrink-0">·</span><ToolNameBadge name={parsed.toolName} /></span>);@@ -572,10 +572,10 @@ function TickerLineView({ line }: { line: SubagentTickerLine }): JSX.Element {const mcpServerNames = useMCPServerNames();if (line.kind === 'writing') {return (- <li className="flex w-full items-baseline overflow-hidden text-text-primary">+ <li className="text-text-primary flex w-full items-baseline overflow-hidden"><spandir="rtl"- className="min-w-0 flex-1 overflow-hidden text-ellipsis whitespace-nowrap text-left"+ className="min-w-0 flex-1 overflow-hidden text-left text-ellipsis whitespace-nowrap">{line.body}</span>@@ -584,11 +584,11 @@ function TickerLineView({ line }: { line: SubagentTickerLine }): JSX.Element {}if (line.kind === 'reasoning') {return (- <li className="flex w-full items-baseline gap-1 overflow-hidden text-text-primary">+ <li className="text-text-primary flex w-full items-baseline gap-1 overflow-hidden"><span className="shrink-0">{localize('com_ui_subagent_ticker_reasoning')}:</span><spandir="rtl"- className="min-w-0 flex-1 overflow-hidden text-ellipsis whitespace-nowrap text-left"+ className="min-w-0 flex-1 overflow-hidden text-left text-ellipsis whitespace-nowrap">{line.body}</span>@@ -603,12 +603,12 @@ function TickerLineView({ line }: { line: SubagentTickerLine }): JSX.Element {<span className="flex min-w-0 flex-1 items-baseline gap-1 overflow-hidden">{line.toolNames.map((name, i) => (<span key={`${i}-${name}`} className="flex min-w-0 items-baseline gap-1">- {i > 0 && <span className="shrink-0 text-text-tertiary">,</span>}+ {i > 0 && <span className="text-text-tertiary shrink-0">,</span>}<ToolIdentifier rawName={name} localize={localize} mcpServerNames={mcpServerNames} /></span>))}{line.argsSnippet && (- <span className="min-w-0 truncate text-text-tertiary">({line.argsSnippet})</span>+ <span className="text-text-tertiary min-w-0 truncate">({line.argsSnippet})</span>)}</span></li>@@ -622,10 +622,10 @@ function TickerLineView({ line }: { line: SubagentTickerLine }): JSX.Element {localize={localize}mcpServerNames={mcpServerNames}/>- <span className="shrink-0 text-text-tertiary">→</span>+ <span className="text-text-tertiary shrink-0">→</span><spandir="rtl"- className="min-w-0 flex-1 overflow-hidden text-ellipsis whitespace-nowrap text-left"+ className="min-w-0 flex-1 overflow-hidden text-left text-ellipsis whitespace-nowrap">{line.outputSnippet ?? localize('com_ui_subagent_ticker_tool_done')}</span>@@ -635,7 +635,7 @@ function TickerLineView({ line }: { line: SubagentTickerLine }): JSX.Element {/* error */const errorPrefix = localize('com_ui_subagent_ticker_error');return (- <li className="flex w-full items-baseline gap-1 overflow-hidden text-text-warning">+ <li className="text-text-warning flex w-full items-baseline gap-1 overflow-hidden"><span className="shrink-0">{errorPrefix}:</span><span className="min-w-0 flex-1 truncate">{line.message ?? ''}</span></li>diff --git a/client/src/components/Chat/Messages/Content/Parts/Thinking.tsx b/client/src/components/Chat/Messages/Content/Parts/Thinking.tsxindex 0c91612261..32f88e39b3 100644--- a/client/src/components/Chat/Messages/Content/Parts/Thinking.tsx+++ b/client/src/components/Chat/Messages/Content/Parts/Thinking.tsx@@ -62,8 +62,8 @@ export const ThinkingContent: FC<{animate && typeof children === 'string' ? <AnimatedText text={children} /> : children;return (- <div className="relative rounded-lg border border-border-light bg-surface-secondary p-3 pb-8 text-text-secondary">- <p className={cn('whitespace-pre-wrap leading-[26px]', fontSize)}>{content}</p>+ <div className="border-border-light bg-surface-secondary text-text-secondary relative rounded-lg border p-3 pb-8">+ <p className={cn('leading-[26px] whitespace-pre-wrap', fontSize)}>{content}</p></div>);});@@ -123,12 +123,12 @@ export const ThinkingButton = memo(><span className={cn(ROW_GLYPH_SLOT, 'relative mr-2')}><Lightbulb- className="icon-sm absolute text-text-secondary opacity-100 transition-opacity group-hover/button:opacity-0"+ className="icon-sm text-text-secondary absolute opacity-100 transition-opacity group-hover/button:opacity-0"aria-hidden="true"/><ChevronDownclassName={cn(- 'icon-sm absolute transform-gpu text-text-primary opacity-0 transition-all duration-300 group-hover/button:opacity-100',+ 'icon-sm text-text-primary absolute transform-gpu opacity-0 transition-all duration-300 group-hover/button:opacity-100',isExpanded && 'rotate-180',)}aria-hidden="true"@@ -159,7 +159,7 @@ export const ThinkingButton = memo('min-w-0 truncate text-left font-medium',shimmerLabel && !animateLabel && 'shimmer',animateLabel &&- 'duration-300 ease-out animate-in fade-in-0 slide-in-from-bottom-1 motion-reduce:animate-none',+ 'animate-in fade-in-0 slide-in-from-bottom-1 duration-300 ease-out motion-reduce:animate-none',)}>{shimmerLabel && animateLabel ? (@@ -177,7 +177,7 @@ export const ThinkingButton = memo(label={localize('com_ui_copy_thoughts_to_clipboard')}copiedLabel={localize('com_ui_copied_to_clipboard')}className={cn(- 'absolute right-0 top-1/2 -translate-y-1/2 opacity-0 transition-opacity',+ 'absolute top-1/2 right-0 -translate-y-1/2 opacity-0 transition-opacity','group-focus-within/thinking-container:opacity-100 group-hover/thinking-container:opacity-100','focus-visible:opacity-100',)}@@ -196,12 +196,12 @@ export const ThinkingButton = memo(*/export const ThinkingLabel = memo(({ label, title }: { label: string; title?: string }) => {return (- <div className="mb-2 pb-2 pt-2">+ <div className="mb-2 pt-2 pb-2"><div className="tool-status-text flex w-full items-center justify-start" title={title}><span className={cn(ROW_GLYPH_SLOT, 'relative mr-2')}><Lightbulb className="icon-sm text-text-secondary" aria-hidden="true" /></span>- <span className="min-w-0 truncate text-left font-medium text-text-secondary">{label}</span>+ <span className="text-text-secondary min-w-0 truncate text-left font-medium">{label}</span></div></div>);@@ -244,7 +244,7 @@ export const FloatingThinkingBar = memo(return (<divclassName={cn(- 'absolute bottom-3 right-3 flex items-center gap-2 transition-opacity duration-150',+ 'absolute right-3 bottom-3 flex items-center gap-2 transition-opacity duration-150',isVisible ? 'opacity-100' : 'pointer-events-none opacity-0',)}>@@ -356,7 +356,7 @@ const Thinking: React.ElementType = memo(({ children }: { children: React.ReactNonFocus={handleFocus}onBlur={handleBlur}>- <div className="mb-4 pb-2 pt-2" ref={headerRef}>+ <div className="mb-4 pt-2 pb-2" ref={headerRef}><ThinkingButtonisExpanded={isExpanded}onClick={handleClick}diff --git a/client/src/components/Chat/Messages/Content/Parts/__tests__/BackgroundTaskCall.test.tsx b/client/src/components/Chat/Messages/Content/Parts/__tests__/BackgroundTaskCall.test.tsxindex 45078e9cb4..0f1f6921e6 100644--- a/client/src/components/Chat/Messages/Content/Parts/__tests__/BackgroundTaskCall.test.tsx+++ b/client/src/components/Chat/Messages/Content/Parts/__tests__/BackgroundTaskCall.test.tsx@@ -424,6 +424,10 @@ describe('BackgroundTaskCall', () => {</RecoilRoot>,);expect(screen.getByTestId('task-header')).toHaveAttribute('aria-expanded', 'true');+ expect(screen.getByTestId('task-header').parentElement?.nextElementSibling).toHaveAttribute(+ 'data-expanded',+ 'true',+ );expect(screen.getByTestId('task-output')).toHaveTextContent('checked at=2026-09-27');});});diff --git a/client/src/components/Chat/Messages/Content/reveal.tsx b/client/src/components/Chat/Messages/Content/reveal.tsxindex 33a0d5c858..f9d4c1f4c2 100644--- a/client/src/components/Chat/Messages/Content/reveal.tsx+++ b/client/src/components/Chat/Messages/Content/reveal.tsx@@ -127,7 +127,7 @@ export function FailedRevealPill({<buttontype="button"className={cn(- 'inline-flex h-5 shrink-0 items-center gap-1 rounded-full border border-transparent bg-status-error-subtle px-2 text-[11.5px] font-semibold leading-none text-status-error',+ 'bg-status-error-subtle text-status-error inline-flex h-5 shrink-0 items-center gap-1 rounded-full border border-transparent px-2 text-xs leading-none font-semibold','hover:border-status-error-border focus-visible:border-status-error focus-visible:outline-none',className,)}diff --git a/client/src/components/Skills/display/SkillFileViewer.tsx b/client/src/components/Skills/display/SkillFileViewer.tsxindex b753816d00..26aff8539c 100644--- a/client/src/components/Skills/display/SkillFileViewer.tsx+++ b/client/src/components/Skills/display/SkillFileViewer.tsx@@ -78,17 +78,17 @@ function SkillFileViewer({ skillId, relativePath, skill }: SkillFileViewerProps)return (<div className="flex h-full flex-col">{/* Header — fixed h-10 prevents layout shift when toggle appears/disappears */}- <div className="flex h-10 items-center gap-2 border-b border-border-medium px-4">+ <div className="border-border-medium flex h-10 items-center gap-2 border-b px-4"><buttontype="button"onClick={() => navigate(`/skills/${skillId}`)}- className="rounded-md p-1 text-text-secondary transition-colors hover:bg-surface-hover hover:text-text-primary"+ className="text-text-secondary hover:bg-surface-hover hover:text-text-primary rounded-md p-1 transition-colors"aria-label={localize('com_ui_back')}><ArrowLeft className="size-4" /></button>- <FileText className="size-4 shrink-0 text-text-secondary" aria-hidden="true" />- <span className="min-w-0 flex-1 truncate text-sm font-medium text-text-primary">+ <FileText className="text-text-secondary size-4 shrink-0" aria-hidden="true" />+ <span className="text-text-primary min-w-0 flex-1 truncate text-sm font-medium">{data?.filename ?? relativePath}</span>@@ -107,7 +107,7 @@ function SkillFileViewer({ skillId, relativePath, skill }: SkillFileViewerProps)setEditingFile({ ...data, content: data.content });}}}- className="rounded-md p-1 text-text-secondary transition-colors hover:bg-surface-hover hover:text-text-primary"+ className="text-text-secondary hover:bg-surface-hover hover:text-text-primary rounded-md p-1 transition-colors"aria-label={localize('com_ui_edit')}><Pencil className="size-4" />@@ -123,7 +123,7 @@ function SkillFileViewer({ skillId, relativePath, skill }: SkillFileViewerProps)<buttontype="button"onClick={handleCopy}- className="rounded-md p-1 text-text-secondary transition-colors hover:bg-surface-hover hover:text-text-primary"+ className="text-text-secondary hover:bg-surface-hover hover:text-text-primary rounded-md p-1 transition-colors"aria-label={localize('com_ui_copy_to_clipboard')}><MorphIcon icon={isCopied ? Check : Copy} className="size-4" />@@ -153,12 +153,12 @@ function SkillFileViewer({ skillId, relativePath, skill }: SkillFileViewerProps)<>{isLoading && (<div className="flex items-center justify-center py-12">- <Spinner className="size-6 text-text-secondary" />+ <Spinner className="text-text-secondary size-6" /></div>)}{(isError || data === null) && !data && (- <div className="flex flex-col items-center justify-center gap-2 py-12 text-text-secondary">+ <div className="text-text-secondary flex flex-col items-center justify-center gap-2 py-12"><FileQuestion className="size-8" /><p className="text-sm">{localize('com_ui_skill_file_load_error')}</p><Button@@ -183,13 +183,13 @@ function SkillFileViewer({ skillId, relativePath, skill }: SkillFileViewerProps))}{data.isBinary && !isImage && (- <div className="flex flex-col items-center justify-center gap-2 py-12 text-text-secondary">+ <div className="text-text-secondary flex flex-col items-center justify-center gap-2 py-12"><FileQuestion className="size-8" /><p className="text-sm">{localize('com_ui_skill_file_binary')}</p><ahref={rawUrl}download- className="text-sm text-text-primary underline hover:no-underline"+ className="text-text-primary text-sm underline hover:no-underline">{localize('com_ui_skill_file_download')}</a>@@ -203,8 +203,8 @@ function SkillFileViewer({ skillId, relativePath, skill }: SkillFileViewerProps)<div className="mb-3 grid grid-cols-[max-content_1fr] items-baseline gap-x-8 gap-y-2">{parsed.fields.map(({ key, value }) => (<React.Fragment key={key}>- <span className="text-xs capitalize text-text-secondary">{key}</span>- <span className="text-sm text-text-primary">{value}</span>+ <span className="text-text-secondary text-xs capitalize">{key}</span>+ <span className="text-text-primary text-sm">{value}</span></React.Fragment>))}</div>@@ -216,7 +216,7 @@ function SkillFileViewer({ skillId, relativePath, skill }: SkillFileViewerProps)currentFilePath={relativePath}/>) : (- <pre className="whitespace-pre-wrap font-mono text-sm leading-relaxed text-text-primary">+ <pre className="text-text-primary font-mono text-sm leading-relaxed whitespace-pre-wrap">{data.content}</pre>)}@@ -225,20 +225,20 @@ function SkillFileViewer({ skillId, relativePath, skill }: SkillFileViewerProps){/* Non-markdown text */}{isText && !isMarkdown && (- <pre className="whitespace-pre-wrap font-mono text-sm leading-relaxed text-text-primary">+ <pre className="text-text-primary font-mono text-sm leading-relaxed whitespace-pre-wrap">{data.content}</pre>)}{/* Text file too large for JSON response — offer download */}{!data.isBinary && data.content == null && (- <div className="flex flex-col items-center justify-center gap-2 py-12 text-text-secondary">+ <div className="text-text-secondary flex flex-col items-center justify-center gap-2 py-12"><FileText className="size-8" /><p className="text-sm">{localize('com_ui_skill_file_download')}</p><ahref={rawUrl}download- className="text-sm text-text-primary underline hover:no-underline"+ className="text-text-primary text-sm underline hover:no-underline">{localize('com_ui_skill_file_download')}</a>diff --git a/client/src/components/Skills/display/SkillTextEditor.tsx b/client/src/components/Skills/display/SkillTextEditor.tsxindex 860cb6f788..3550c4b5f7 100644--- a/client/src/components/Skills/display/SkillTextEditor.tsx+++ b/client/src/components/Skills/display/SkillTextEditor.tsx@@ -75,27 +75,29 @@ export default function SkillTextEditor({return (<div className="flex h-full min-h-0 flex-col gap-3">- <Textarea- value={content}- onChange={(event) => setContent(event.target.value)}- onKeyDown={(event) => {- if ((event.ctrlKey || event.metaKey) && event.key === 's') {- event.preventDefault();- save();- }- }}- disabled={upload.isLoading}- spellCheck={false}- aria-label={`${localize('com_ui_edit')} ${file.filename}`}- className="min-h-0 flex-1 resize-none font-mono text-sm text-text-primary"- />+ <div className="flex min-h-0 flex-1 font-mono">+ <Textarea+ value={content}+ onChange={(event) => setContent(event.target.value)}+ onKeyDown={(event) => {+ if ((event.ctrlKey || event.metaKey) && event.key === 's') {+ event.preventDefault();+ save();+ }+ }}+ disabled={upload.isLoading}+ spellCheck={false}+ aria-label={`${localize('com_ui_edit')} ${file.filename}`}+ className="min-h-0 flex-1"+ />+ </div>{upload.isError && (- <p role="alert" className="text-sm text-text-destructive">+ <p role="alert" className="text-text-destructive text-sm">{localize(conflict ? 'com_ui_skill_file_conflict' : 'com_ui_skill_file_save_error')}</p>)}{!canEdit && (- <p role="note" className="text-sm text-text-secondary">+ <p role="note" className="text-text-secondary text-sm">{localize('com_ui_skill_no_edit_permission')}</p>)}diff --git a/eslint-suppressions.json b/eslint-suppressions.jsonindex 9117aecf48..d1154c8a55 100644--- a/eslint-suppressions.json+++ b/eslint-suppressions.json@@ -733,7 +733,7 @@},"client/src/components/Chat/Messages/Content/Parts/Thinking.tsx": {"shadcn/no-arbitrary-values": {- "count": 3+ "count": 1},"shadcn/no-inline-styles": {"count": 1