The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fmt(js): `npm run fix` on merge (#134819)
hermes-seaeye[bot]e675225af2b6
diff --git a/apps/desktop/electron/link-title-window.test.ts b/apps/desktop/electron/link-title-window.test.tsindex 57ace21d7da..bab6e6d4f7e 100644--- a/apps/desktop/electron/link-title-window.test.ts+++ b/apps/desktop/electron/link-title-window.test.ts@@ -73,7 +73,7 @@ test('createLinkTitleWindow hides and zeroes opacity so Windows cannot flash a bcalls.hide += 1}- this.setOpacity = (value) => {+ this.setOpacity = value => {calls.opacity.push(value)}}diff --git a/apps/desktop/src/app/settings/model-settings.tsx b/apps/desktop/src/app/settings/model-settings.tsxindex 0608f251876..d36650a76b8 100644--- a/apps/desktop/src/app/settings/model-settings.tsx+++ b/apps/desktop/src/app/settings/model-settings.tsx@@ -179,6 +179,7 @@ function switchProviderFor(}setSelectedModel('')+return slug})diff --git a/apps/desktop/src/components/assistant-ui/clarify/setup-pending.test.tsx b/apps/desktop/src/components/assistant-ui/clarify/setup-pending.test.tsxindex 20bc3bcb357..9a8516054b8 100644--- a/apps/desktop/src/components/assistant-ui/clarify/setup-pending.test.tsx+++ b/apps/desktop/src/components/assistant-ui/clarify/setup-pending.test.tsx@@ -6,7 +6,13 @@ import { afterEach, beforeEach, describe, expect, it, type MockInstance, vi } frimport { PRIMARY_SESSION_VIEW, type SessionView, SessionViewProvider } from '@/app/chat/session-view'import { accentsFor, NOUS_ACCENT } from '@/components/onboarding-chat/options'import { I18nProvider } from '@/i18n'-import { answerSetupCard, type ClarifyRequest, clearClarifyRequest, setClarifyRequest, type SetupChooseSpec } from '@/store/clarify'+import {+ answerSetupCard,+ type ClarifyRequest,+ clearClarifyRequest,+ setClarifyRequest,+ type SetupChooseSpec+} from '@/store/clarify'import { rememberServerRequest, resetServerRequestsForTests } from '@/store/server-requests'import { $accentOverride } from '@/themes/accent-override'diff --git a/apps/desktop/src/components/assistant-ui/start-chat-tool-parts.tsx b/apps/desktop/src/components/assistant-ui/start-chat-tool-parts.tsxindex 7cc84cc96f9..705388359d1 100644--- a/apps/desktop/src/components/assistant-ui/start-chat-tool-parts.tsx+++ b/apps/desktop/src/components/assistant-ui/start-chat-tool-parts.tsx@@ -14,7 +14,10 @@ const CAPTION = 'text-[length:var(--conversation-caption-font-size)] text-(--ui-const stringArg = (value: unknown): null | string => (typeof value === 'string' ? value : null)/** Card title before the session row exists: outcome title, then the requested title, then the message head. */-export function requestedTitle(started: null | { title?: null | string }, args: Record<string, unknown>): null | string {+export function requestedTitle(+ started: null | { title?: null | string },+ args: Record<string, unknown>+): null | string {const message = stringArg(args.message)?.trim() ?? ''return started?.title || stringArg(args.title)?.trim() || message.slice(0, TITLE_LIMIT) || nulldiff --git a/apps/desktop/src/components/assistant-ui/thread/assistant-message.tsx b/apps/desktop/src/components/assistant-ui/thread/assistant-message.tsxindex fdcaa4dbebe..af59003e690 100644--- a/apps/desktop/src/components/assistant-ui/thread/assistant-message.tsx+++ b/apps/desktop/src/components/assistant-ui/thread/assistant-message.tsx@@ -438,7 +438,11 @@ const AssistantStatusSlot: FC = () => {return null}- return slot === 'placeholder' ? <ResponseLoadingIndicator /> : <TurnActivityIndicator thinking={slot === 'thinking'} />+ return slot === 'placeholder' ? (+ <ResponseLoadingIndicator />+ ) : (+ <TurnActivityIndicator thinking={slot === 'thinking'} />+ )}/**diff --git a/apps/desktop/src/components/onboarding-chat/gate.test.tsx b/apps/desktop/src/components/onboarding-chat/gate.test.tsxindex 194551cb844..f098cc69a43 100644--- a/apps/desktop/src/components/onboarding-chat/gate.test.tsx+++ b/apps/desktop/src/components/onboarding-chat/gate.test.tsx@@ -40,9 +40,7 @@ describe('OnboardingChatGate', () => {const { OnboardingChatGate, gate, onboarding } = await loadWindow()onboarding.requestDesktopOnboarding('No provider configured')- render(- <OnboardingChatGate enabled onKickoff={neverKicksOff} requestGateway={unseenFirstRun} runsIntro={false} />- )+ render(<OnboardingChatGate enabled onKickoff={neverKicksOff} requestGateway={unseenFirstRun} runsIntro={false} />)await waitFor(() => expect(onboarding.$desktopOnboarding.get().requested).toBe(true))expect(gate.$onboardingGate.get().phase).toBe('idle')diff --git a/apps/desktop/src/components/onboarding-chat/signpost.ts b/apps/desktop/src/components/onboarding-chat/signpost.tsindex 1935f8cd0c1..e77b11d8dbd 100644--- a/apps/desktop/src/components/onboarding-chat/signpost.ts+++ b/apps/desktop/src/components/onboarding-chat/signpost.ts@@ -16,11 +16,13 @@ async function waitFor(selector: string, timeoutMs = 6000, ready = () => true):const deadline = Date.now() + timeoutMswhile (Date.now() < deadline) {- const visible = ready() && [...document.querySelectorAll(selector)].some(node => {- const { width, height } = node.getBoundingClientRect()+ const visible =+ ready() &&+ [...document.querySelectorAll(selector)].some(node => {+ const { width, height } = node.getBoundingClientRect()- return width > 0 && height > 0 && !node.closest('[data-pane-hidden]')- })+ return width > 0 && height > 0 && !node.closest('[data-pane-hidden]')+ })if (visible) {return truediff --git a/apps/desktop/src/hooks/use-media-image.frames.test.tsx b/apps/desktop/src/hooks/use-media-image.frames.test.tsxindex 647c29985f1..aa60ec002fe 100644--- a/apps/desktop/src/hooks/use-media-image.frames.test.tsx+++ b/apps/desktop/src/hooks/use-media-image.frames.test.tsx@@ -30,9 +30,11 @@ describe('inline image preview envelope (#74564)', () => {})const maxWidth = Number(stylesheet.match(/--image-preview-max-width:\s*([\d.]+)rem/)?.[1])+const heightClamp = stylesheet.match(/--image-preview-height:\s*clamp\(([\d.]+)rem,\s*calc\(var\(--vsq\)\s*\*\s*([\d.]+)\),\s*([\d.]+)rem\)/)+const [floor, vsqFactor, ceiling] = (heightClamp?.slice(1) ?? []).map(Number)it('guarantees a landscape frame can span the full preview width', () => {@@ -62,9 +64,7 @@ describe('inline image preview envelope (#74564)', () => {})it('keeps the natural-size cap so a small image is never upscaled', () => {- const { result } = renderHook(() =>- useMediaImage('/home/user/out/shot.png', 16 / 9, { width: 640, height: 360 })- )+ const { result } = renderHook(() => useMediaImage('/home/user/out/shot.png', 16 / 9, { width: 640, height: 360 }))expect(String(result.current.frameStyle?.width)).toContain('640px')})