The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fmt(js): `npm run fix` on merge (#138013)
hermes-seaeye[bot]1e3a30fe690a
diff --git a/apps/desktop/electron/main.ts b/apps/desktop/electron/main.tsindex 86331aa271f..1aa614e238e 100644--- a/apps/desktop/electron/main.ts+++ b/apps/desktop/electron/main.ts@@ -12231,26 +12231,24 @@ async function runPoolBackendStart(backend.args,hiddenWindowsChildOptions({cwd: hermesCwd,- env: desktopBackendSpawnEnv(- {- // Never another profile's dotenv credentials from the Desktop env (#68367), and never- // the launch profile's TERMINAL_CWD: a pooled backend serves THIS --profile, whose- // placeholder/unset terminal.cwd sessions must resolve their own workspace, not the- // app-global one (#87584). The child re-resolves from its profile config like a- // standalone `hermes -p X serve`.- ...pooledProfileBackendEnv({ hermesHome: HERMES_HOME, profile, backendEnv: backend.env }),- HERMES_DASHBOARD_SESSION_TOKEN: token,- // Marks this dashboard backend as desktop-spawned so it runs the cron- // scheduler tick loop (the gateway isn't running under the app).- HERMES_DESKTOP: '1',- // Exact parent identity lets the backend self-exit after an unclean- // Desktop death without mistaking a reused PID for its owner. If the- // optional marker probe fails, retain legacy PID-only tracking.- ...parentIdentityEnv,- HERMES_WEB_DIST: webDist,- ...(readyFile ? { HERMES_DESKTOP_READY_FILE: readyFile } : {})- }- ),+ env: desktopBackendSpawnEnv({+ // Never another profile's dotenv credentials from the Desktop env (#68367), and never+ // the launch profile's TERMINAL_CWD: a pooled backend serves THIS --profile, whose+ // placeholder/unset terminal.cwd sessions must resolve their own workspace, not the+ // app-global one (#87584). The child re-resolves from its profile config like a+ // standalone `hermes -p X serve`.+ ...pooledProfileBackendEnv({ hermesHome: HERMES_HOME, profile, backendEnv: backend.env }),+ HERMES_DASHBOARD_SESSION_TOKEN: token,+ // Marks this dashboard backend as desktop-spawned so it runs the cron+ // scheduler tick loop (the gateway isn't running under the app).+ HERMES_DESKTOP: '1',+ // Exact parent identity lets the backend self-exit after an unclean+ // Desktop death without mistaking a reused PID for its owner. If the+ // optional marker probe fails, retain legacy PID-only tracking.+ ...parentIdentityEnv,+ HERMES_WEB_DIST: webDist,+ ...(readyFile ? { HERMES_DESKTOP_READY_FILE: readyFile } : {})+ }),shell: backend.shell,stdio: ['ignore', 'pipe', 'pipe']})@@ -13144,33 +13142,31 @@ async function runHermesStart({ supervisorRecovery = false }: { supervisorRecovebackend.args,hiddenWindowsChildOptions({cwd: hermesCwd,- env: desktopBackendSpawnEnv(- {- // Never another profile's dotenv credentials from the Desktop env (#68367).- ...profileBackendParentEnv({ hermesHome: HERMES_HOME, profile: activeProfile }),- // Explicitly pin HERMES_HOME for the child so Python's get_hermes_home()- // resolves to the SAME location our resolveHermesHome() picked. Without- // this pin, Python falls back to ~/.hermes on every platform — fine on- // mac/linux (where our default matches), but on Windows our default is- // %LOCALAPPDATA%\hermes, which differs from C:\Users\<u>\.hermes.- // Mismatch would split config / sessions / .env / logs across two- // directories. install.ps1 sets HERMES_HOME via setx; the desktop- // can't reliably do that, so we set it inline for every spawn.- HERMES_HOME,- ...backend.env,- TERMINAL_CWD: hermesCwd,- HERMES_DASHBOARD_SESSION_TOKEN: token,- // Marks this dashboard backend as desktop-spawned so it runs the cron- // scheduler tick loop (the gateway isn't running under the app).- HERMES_DESKTOP: '1',- // Exact parent identity lets the backend self-exit after an unclean- // Desktop death without mistaking a reused PID for its owner. If the- // optional marker probe fails, retain legacy PID-only tracking.- ...parentIdentityEnv,- HERMES_WEB_DIST: webDist,- ...(readyFile ? { HERMES_DESKTOP_READY_FILE: readyFile } : {})- }- ),+ env: desktopBackendSpawnEnv({+ // Never another profile's dotenv credentials from the Desktop env (#68367).+ ...profileBackendParentEnv({ hermesHome: HERMES_HOME, profile: activeProfile }),+ // Explicitly pin HERMES_HOME for the child so Python's get_hermes_home()+ // resolves to the SAME location our resolveHermesHome() picked. Without+ // this pin, Python falls back to ~/.hermes on every platform — fine on+ // mac/linux (where our default matches), but on Windows our default is+ // %LOCALAPPDATA%\hermes, which differs from C:\Users\<u>\.hermes.+ // Mismatch would split config / sessions / .env / logs across two+ // directories. install.ps1 sets HERMES_HOME via setx; the desktop+ // can't reliably do that, so we set it inline for every spawn.+ HERMES_HOME,+ ...backend.env,+ TERMINAL_CWD: hermesCwd,+ HERMES_DASHBOARD_SESSION_TOKEN: token,+ // Marks this dashboard backend as desktop-spawned so it runs the cron+ // scheduler tick loop (the gateway isn't running under the app).+ HERMES_DESKTOP: '1',+ // Exact parent identity lets the backend self-exit after an unclean+ // Desktop death without mistaking a reused PID for its owner. If the+ // optional marker probe fails, retain legacy PID-only tracking.+ ...parentIdentityEnv,+ HERMES_WEB_DIST: webDist,+ ...(readyFile ? { HERMES_DESKTOP_READY_FILE: readyFile } : {})+ }),shell: backend.shell,stdio: ['ignore', 'pipe', 'pipe']})diff --git a/apps/desktop/electron/remote-lifecycle.ts b/apps/desktop/electron/remote-lifecycle.tsindex 2f110deea02..5ec95d2ad47 100644--- a/apps/desktop/electron/remote-lifecycle.ts+++ b/apps/desktop/electron/remote-lifecycle.ts@@ -1283,14 +1283,7 @@ async function scrapeReadyPort(ssh, logPath, { timeoutMs = resolveReadyTimeoutMsasync function spawnRemoteDashboard(ssh,- {- hermesPath,- profile,- token,- ownershipId,- hermesHome = '~/.hermes',- assertInstallClear = async () => {}- }+ { hermesPath, profile, token, ownershipId, hermesHome = '~/.hermes', assertInstallClear = async () => {} }) {if (!(await remoteSupportsSshOwnership(ssh, hermesPath))) {const err: any = new Error(diff --git a/apps/desktop/src/app/session/hooks/use-message-stream/gateway-event/server-requests.ts b/apps/desktop/src/app/session/hooks/use-message-stream/gateway-event/server-requests.tsindex 87ccb4290b0..208ce75cb29 100644--- a/apps/desktop/src/app/session/hooks/use-message-stream/gateway-event/server-requests.ts+++ b/apps/desktop/src/app/session/hooks/use-message-stream/gateway-event/server-requests.ts@@ -107,7 +107,14 @@ type PreviewSessionRoute = 'ignore' | 'retry' | 'run'* would win the race, so the tool reports "no preview tab / no terminal" while* the owner's pane is open (#113348).*/-const WINDOW_OWNED_REQUESTS = new Set(['preview.act', 'preview.read', 'terminal.read', 'theme.apply', 'window.read', 'tour'])+const WINDOW_OWNED_REQUESTS = new Set([+ 'preview.act',+ 'preview.read',+ 'terminal.read',+ 'theme.apply',+ 'window.read',+ 'tour'+])/*** A window not hosting the session declines instead of staying silent. Thediff --git a/apps/desktop/src/app/session/hooks/use-message-stream/gateway-event/theme-requests.test.ts b/apps/desktop/src/app/session/hooks/use-message-stream/gateway-event/theme-requests.test.tsindex d83da6a3656..60ca54ecdde 100644--- a/apps/desktop/src/app/session/hooks/use-message-stream/gateway-event/theme-requests.test.ts+++ b/apps/desktop/src/app/session/hooks/use-message-stream/gateway-event/theme-requests.test.ts@@ -67,7 +67,10 @@ describe('set_theme requests', () => {expect(elsewhere.decline).toHaveBeenCalled()expect(elsewhere).not.toHaveBeenCalled()- expect(JSON.parse(onScreen.mock.calls[0][0].value)).toMatchObject({ success: false, error: 'Unknown layout "cockpit".' })+ expect(JSON.parse(onScreen.mock.calls[0][0].value)).toMatchObject({+ success: false,+ error: 'Unknown layout "cockpit".'+ })expect($pendingSkinApply.get()).toBeNull()})})diff --git a/apps/desktop/src/components/assistant-ui/setup-beat/setup-beat-tool.test.tsx b/apps/desktop/src/components/assistant-ui/setup-beat/setup-beat-tool.test.tsxindex 0eeacc53d3c..758d2e01f46 100644--- a/apps/desktop/src/components/assistant-ui/setup-beat/setup-beat-tool.test.tsx+++ b/apps/desktop/src/components/assistant-ui/setup-beat/setup-beat-tool.test.tsx@@ -29,10 +29,12 @@ describe('SetupBeatTool', () => {cleanup()})- it('draws the words typed while the card waited as the user\'s bubble', () => {+ it("draws the words typed while the card waited as the user's bubble", () => {renderRow({ beat: 'theme', said: 'look around and suggest one for me :D' })- expect(screen.getByText('look around and suggest one for me :D').closest('[data-slot="typed-answer"]')).not.toBeNull()+ expect(+ screen.getByText('look around and suggest one for me :D').closest('[data-slot="typed-answer"]')+ ).not.toBeNull()})it('draws nothing for a refusal meant for the model', () => {diff --git a/apps/desktop/src/components/assistant-ui/thread/streaming.test.tsx b/apps/desktop/src/components/assistant-ui/thread/streaming.test.tsxindex 33933f676a6..b7f9e2f85dd 100644--- a/apps/desktop/src/components/assistant-ui/thread/streaming.test.tsx+++ b/apps/desktop/src/components/assistant-ui/thread/streaming.test.tsx@@ -706,12 +706,21 @@ describe('assistant-ui streaming renderer', () => {it('keeps streaming reasoning collapsed in the onboarding chat', () => {$activeSessionId.set('onboarding-chat')- $onboardingSession.set({ connectionId: null, runId: 'run-1', runtimeId: 'onboarding-chat', storedId: 'stored-onboarding' })+ $onboardingSession.set({+ connectionId: null,+ runId: 'run-1',+ runtimeId: 'onboarding-chat',+ storedId: 'stored-onboarding'+ })$onboardingPhase.set('shown')const { container } = render(<RunningReasoningHarness />)- expect(within(container).getByRole('button', { name: /thinking/i }).getAttribute('aria-expanded')).toBe('false')+ expect(+ within(container)+ .getByRole('button', { name: /thinking/i })+ .getAttribute('aria-expanded')+ ).toBe('false')expect(container.querySelector('[data-slot="aui_reasoning-text"]')).toBeNull()})diff --git a/apps/desktop/src/components/assistant-ui/tool/fallback.tsx b/apps/desktop/src/components/assistant-ui/tool/fallback.tsxindex b82e9eb4522..312506f7d98 100644--- a/apps/desktop/src/components/assistant-ui/tool/fallback.tsx+++ b/apps/desktop/src/components/assistant-ui/tool/fallback.tsx@@ -1081,11 +1081,7 @@ export const ToolGroupSlot: FC<PropsWithChildren<{ endIndex: number; startIndex:const toolNameKey = useAuiState(state =>state.message.parts.slice(Math.max(0, startIndex), endIndex + 1)- .map(part =>- part.type === 'tool-call'- ? toolGroupKey(part.toolName, part.args)- : ''- )+ .map(part => (part.type === 'tool-call' ? toolGroupKey(part.toolName, part.args) : '')).join('\u0000'))diff --git a/apps/desktop/src/components/gateway-connecting-overlay.tsx b/apps/desktop/src/components/gateway-connecting-overlay.tsxindex d0db1e1a1c7..0c4dc00df17 100644--- a/apps/desktop/src/components/gateway-connecting-overlay.tsx+++ b/apps/desktop/src/components/gateway-connecting-overlay.tsx@@ -234,10 +234,6 @@ export function GatewayConnectingOverlay() {}return (- <ConnectingOverlayView- decoding={phase === 'live' && (previewing || connecting)}- onExit={onExit}- phase={phase}- />+ <ConnectingOverlayView decoding={phase === 'live' && (previewing || connecting)} onExit={onExit} phase={phase} />)}diff --git a/apps/desktop/src/components/onboarding/first-run/kickoff.test.ts b/apps/desktop/src/components/onboarding/first-run/kickoff.test.tsindex 749cf19c68a..d6104b5c0da 100644--- a/apps/desktop/src/components/onboarding/first-run/kickoff.test.ts+++ b/apps/desktop/src/components/onboarding/first-run/kickoff.test.ts@@ -11,7 +11,12 @@ import { $introCopy } from './intro'import { firstRunIntro } from './kickoff'const size = vi.fn()-const started: OnboardingStartResult = { resumed: false, run_id: 'run-1', session_id: 'rt-1', stored_session_id: 'st-1' }+const started: OnboardingStartResult = {+ resumed: false,+ run_id: 'run-1',+ session_id: 'rt-1',+ stored_session_id: 'st-1'+}const ensureProfile = async (): Promise<void> => undefined// SAFETY: the fake answers onboarding.start with its contract result; nothing else reads the answer.@@ -74,11 +79,15 @@ describe('first-run kickoff', () => {let answer: () => void = () => {}// A cold start that answers late.- const slow: OnboardingRequest = async <T>(...[method, params, timeoutMs]: Parameters<OnboardingRequest>): Promise<T> => {+ const slow: OnboardingRequest = async <T>(+ ...[method, params, timeoutMs]: Parameters<OnboardingRequest>+ ): Promise<T> => {calls.push([method, params, timeoutMs])// SAFETY: the fake answers onboarding.start with its contract result; the skip's answer is unread.- return method === 'onboarding.start' ? new Promise<T>(resolve => (answer = () => resolve(started as T))) : ({} as T)+ return method === 'onboarding.start'+ ? new Promise<T>(resolve => (answer = () => resolve(started as T)))+ : ({} as T)}const opening = startOnboarding(slow, adopt, { ensureProfile, intro: firstRunIntro() })@@ -91,7 +100,10 @@ describe('first-run kickoff', () => {answer()expect(await opening).toBe(false)- expect(calls.map(([method, , timeout]) => [method, timeout])).toEqual([['onboarding.start', 0], ['onboarding.skip', undefined]])+ expect(calls.map(([method, , timeout]) => [method, timeout])).toEqual([+ ['onboarding.start', 0],+ ['onboarding.skip', undefined]+ ])expect(calls[1][1]).toEqual({ session_id: 'rt-1' })expect(adopt).not.toHaveBeenCalledWith('st-1', true)})diff --git a/apps/desktop/src/components/onboarding/onboarding-end.tsx b/apps/desktop/src/components/onboarding/onboarding-end.tsxindex f9eaa6f9337..e5969e72d3c 100644--- a/apps/desktop/src/components/onboarding/onboarding-end.tsx+++ b/apps/desktop/src/components/onboarding/onboarding-end.tsx@@ -15,11 +15,7 @@ import {} from '@/components/ui/dialog'import { useI18n } from '@/i18n'import { readKey, writeKey } from '@/lib/storage'-import {- $localModelOfferPending,- LOCAL_MODEL_OFFERED_KEY,- LOCAL_MODEL_PENDING_KEY-} from '@/store/local-model-offer'+import { $localModelOfferPending, LOCAL_MODEL_OFFERED_KEY, LOCAL_MODEL_PENDING_KEY } from '@/store/local-model-offer'import { readConnectedLocalSetupEligibility, readLocalSetupEligibility } from '@/store/local-setup-offer'import { $onboardingSettleFrom } from '@/store/onboarding-run'import { requestRoute } from '@/store/recovery-requests'diff --git a/apps/desktop/src/i18n/en_first_run.ts b/apps/desktop/src/i18n/en_first_run.tsindex e193a360a6a..2b00a81a576 100644--- a/apps/desktop/src/i18n/en_first_run.ts+++ b/apps/desktop/src/i18n/en_first_run.ts@@ -22,7 +22,7 @@ export const enFirstRun: FirstRunCopy = {tours: {quick: 'Quick tour',full: 'Show me everything',- skip: 'Skip, let\'s build something'+ skip: "Skip, let's build something"},skippedAll: 'Setup skipped',skip: 'Skip setup',@@ -35,8 +35,8 @@ export const enFirstRun: FirstRunCopy = {notNow: 'Not now'},intro: {- greeting: 'Hi, I\'m Hermes.',- plan: 'Let\'s set things up for you. Then we\'ll get something cool done.'+ greeting: "Hi, I'm Hermes.",+ plan: "Let's set things up for you. Then we'll get something cool done."},rerun: {title: 'Run onboarding again',diff --git a/apps/desktop/src/i18n/fr_first_run.ts b/apps/desktop/src/i18n/fr_first_run.tsindex f34a3918853..969f681aeb4 100644--- a/apps/desktop/src/i18n/fr_first_run.ts+++ b/apps/desktop/src/i18n/fr_first_run.ts@@ -3,7 +3,7 @@ import type { FirstRunCopy } from './types_first_run'export const frFirstRun: FirstRunCopy = {beats: {name: 'Nom',- theme: 'Couleur d\'accent',+ theme: "Couleur d'accent",layout: 'Disposition',connectors: 'Applications',plugins: 'Plugins',@@ -40,9 +40,9 @@ export const frFirstRun: FirstRunCopy = {plan: 'Configurons tout pour vous. Ensuite, nous ferons quelque chose de génial.'},rerun: {- title: 'Relancer l\'accueil',+ title: "Relancer l'accueil",description: 'Ouvre un nouveau chat de configuration qui reprend les premières étapes avec votre modèle actuel.',action: 'Relancer',- failed: 'Impossible de lancer l\'accueil'+ failed: "Impossible de lancer l'accueil"}}diff --git a/apps/desktop/src/store/appearance-apply.ts b/apps/desktop/src/store/appearance-apply.tsindex 4bf510f53ef..0b4dabbf53c 100644--- a/apps/desktop/src/store/appearance-apply.ts+++ b/apps/desktop/src/store/appearance-apply.ts@@ -37,8 +37,7 @@ export interface AppliedAppearance {}export type AppearanceAnswer =- | { applied: AppliedAppearance; success: true }- | { available: string[]; error: string; success: false }+ { applied: AppliedAppearance; success: true } | { available: string[]; error: string; success: false }const listedLayoutIds = (): string[] =>registrydiff --git a/apps/desktop/src/store/clarify.ts b/apps/desktop/src/store/clarify.tsindex c3b10e4348e..f4becc2eb75 100644--- a/apps/desktop/src/store/clarify.ts+++ b/apps/desktop/src/store/clarify.ts@@ -271,7 +271,11 @@ function answerClarifyText(sessionId: string, text: string): null | Promise<boolreturn lockTypedAnswer(request, text)}-registerParkedCardAnswer('clarify', { $requests: $clarifyRequests, answer: answerClarifyText, waiting: hasClarifyRequest })+registerParkedCardAnswer('clarify', {+ $requests: $clarifyRequests,+ answer: answerClarifyText,+ waiting: hasClarifyRequest+})/** The choice typed text names (any case, as the messaging path matches labels), else the words themselves. */function typedAnswer(question: ClarifyQuestion, text: string): string {diff --git a/apps/desktop/src/store/free-tier-offer.test.ts b/apps/desktop/src/store/free-tier-offer.test.tsindex db4bd8597b0..d2acfae494c 100644--- a/apps/desktop/src/store/free-tier-offer.test.ts+++ b/apps/desktop/src/store/free-tier-offer.test.ts@@ -4,11 +4,7 @@ import { $freeTierStatus, type FreeTierRequester } from '@/store/free-tier'import { $freeTierSignIn, closeFreeTierSignIn, stopFreeTierOffer, syncFreeTierOffer } from '@/store/free-tier-sign-in'import { activeGatewayProfileKey, ensureGatewayForProfile } from '@/store/gateway'import { $localModelOfferPending } from '@/store/local-model-offer'-import {- $onboardingDecided,- markOnboardingDecided,- setOnboardingSurfaceActive-} from '@/store/onboarding-presence'+import { $onboardingDecided, markOnboardingDecided, setOnboardingSurfaceActive } from '@/store/onboarding-presence'import type { FreeTierStatus } from '@/types/hermes'const status = (nudge_due_in: null | number, available = true): FreeTierStatus => ({diff --git a/apps/desktop/src/store/onboarding-decide.test.ts b/apps/desktop/src/store/onboarding-decide.test.tsindex 2dd913741a7..3af7ed3b55d 100644--- a/apps/desktop/src/store/onboarding-decide.test.ts+++ b/apps/desktop/src/store/onboarding-decide.test.ts@@ -31,7 +31,7 @@ function slowBackend() {const firstState = new Promise<{ eligible: boolean; run: boolean }>(resolve => (answer = resolve))let stateReads = 0- const request: OnboardingRequest = <T,>(+ const request: OnboardingRequest = <T>(method: string,_params?: Parameters<OnboardingRequest>[1],timeoutMs?: numberdiff --git a/apps/desktop/src/store/onboarding-run.test.ts b/apps/desktop/src/store/onboarding-run.test.tsindex e52aa45ff2f..05f20f02e48 100644--- a/apps/desktop/src/store/onboarding-run.test.ts+++ b/apps/desktop/src/store/onboarding-run.test.ts@@ -31,7 +31,7 @@ function backend(state: { eligible: boolean; run: boolean }, runId: null | strinconst started = { resumed: false, run_id: 'run-1', session_id: 'rt-1', stored_session_id: 'st-1' }const read = { ...state, run_id: runId, session_id: runId && 'st-1' }- const request = async <T,>(method: string, params?: Parameters<OnboardingRequest>[1]): Promise<T> => {+ const request = async <T>(method: string, params?: Parameters<OnboardingRequest>[1]): Promise<T> => {calls.push(method)if (method === 'onboarding.start') {@@ -146,9 +146,9 @@ describe('onboarding run', () => {await startOnboarding(request, resume, { ensureProfile })// SAFETY: the fakes answer onboarding.state with its contract result shape.- const open = async <T,>(): Promise<T> => ({ eligible: true, run: true, run_id: 'run-1', session_id: 'st-1' }) as T+ const open = async <T>(): Promise<T> => ({ eligible: true, run: true, run_id: 'run-1', session_id: 'st-1' }) as T// SAFETY: as above.- const reread = async <T,>(): Promise<T> => ({ eligible: true, run: false, run_id: null, session_id: null }) as T+ const reread = async <T>(): Promise<T> => ({ eligible: true, run: false, run_id: null, session_id: null }) as Tawait reconcileOnboarding(open)expect($onboardingPhase.get()).toBe('shown')@@ -161,7 +161,7 @@ describe('onboarding run', () => {await startOnboarding(request, resume, { ensureProfile })// SAFETY: the fake answers onboarding.state with its contract result shape.- const noRun = async <T,>(): Promise<T> => ({ eligible: true, run: false, run_id: null, session_id: null }) as T+ const noRun = async <T>(): Promise<T> => ({ eligible: true, run: false, run_id: null, session_id: null }) as TsetPrimaryGatewayConnectionId('homelab')await reconcileOnboarding(noRun)@@ -208,7 +208,12 @@ describe('onboarding run', () => {it('releases the boot hold when the user takes the way out while the start is still pending', async () => {let exit: () => void = () => undefined- const intro = { failed: vi.fn(), opened: vi.fn(), started: vi.fn(), starting: (leave: () => void) => (exit = leave) }+ const intro = {+ failed: vi.fn(),+ opened: vi.fn(),+ started: vi.fn(),+ starting: (leave: () => void) => (exit = leave)+ }const request = (method: string) =>method === 'onboarding.start' ? new Promise<never>(() => undefined) : Promise.reject(new Error(method))@@ -227,7 +232,7 @@ describe('onboarding run', () => {await startOnboarding(request, resume, { ensureProfile })// The backend withdraws the old card while the rerun's start is still answering.- const rerun = async <T,>(method: string): Promise<T> => {+ const rerun = async <T>(method: string): Promise<T> => {if (method === 'onboarding.start') {noteOnboardingEnded({ outcome: 'replaced', run_id: 'run-1', stored_session_id: 'st-1' })}@@ -245,7 +250,7 @@ describe('onboarding run', () => {it('asks for a fresh-install run only on a --fresh-install launch, and never on a rerun', async () => {const sent: boolean[] = []- const request = async <T,>(method: string, params?: OnboardingStartParams): Promise<T> => {+ const request = async <T>(method: string, params?: OnboardingStartParams): Promise<T> => {if (method === 'onboarding.start') {sent.push(params !== undefined && 'assume_fresh' in params)}diff --git a/apps/desktop/src/store/onboarding-run.ts b/apps/desktop/src/store/onboarding-run.tsindex 7ef5d22b6a1..70455e6e3e9 100644--- a/apps/desktop/src/store/onboarding-run.ts+++ b/apps/desktop/src/store/onboarding-run.ts@@ -232,7 +232,11 @@ export function decideOnboarding(return decision}-async function readAndStart(request: OnboardingRequest, resume: OnboardingResume, options?: StartOptions): Promise<void> {+async function readAndStart(+ request: OnboardingRequest,+ resume: OnboardingResume,+ options?: StartOptions+): Promise<void> {// Continue on the boot overlay released this launch: a late answer opens nothing, and onboarding// stays due on the backend for the next launch or Settings' Run onboarding again.let released = falsediff --git a/apps/desktop/src/store/onboarding.ts b/apps/desktop/src/store/onboarding.tsindex b32cf7ae043..acf828dff80 100644--- a/apps/desktop/src/store/onboarding.ts+++ b/apps/desktop/src/store/onboarding.ts@@ -580,9 +580,7 @@ export function requestDesktopOnboarding(reason = DEFAULT_ONBOARDING_REASON) {// the making, and a credential probe that fires meanwhile would drop the// provider picker over it; onboarding hands over to the picker// itself when the account fails.- afterOnboardingSurfaceClear(() =>- patch({ reason: reason.trim() || DEFAULT_ONBOARDING_REASON, requested: true })- )+ afterOnboardingSurfaceClear(() => patch({ reason: reason.trim() || DEFAULT_ONBOARDING_REASON, requested: true }))}/** Credential warning delivered passively (session create/activate/resumediff --git a/apps/desktop/src/store/parked-card-answers.test.ts b/apps/desktop/src/store/parked-card-answers.test.tsindex a3edc81e909..937a19c4250 100644--- a/apps/desktop/src/store/parked-card-answers.test.ts+++ b/apps/desktop/src/store/parked-card-answers.test.ts@@ -43,7 +43,12 @@ describe('parked card answers', () => {it('reports an answer that failed to send, so the composer can restore the draft', async () => {const onFailed = vi.fn()- unregister.push(registerParkedCardAnswer('test-fails', kind(() => Promise.resolve(false))))+ unregister.push(+ registerParkedCardAnswer(+ 'test-fails',+ kind(() => Promise.resolve(false))+ )+ )expect(answerParkedCard('session-a', 'hello', onFailed)).toBe(true)await vi.waitFor(() => expect(onFailed).toHaveBeenCalledTimes(1))@@ -51,7 +56,9 @@ describe('parked card answers', () => {it('takes typed text for an onboarding-only card in the onboarding chat, and leaves every other chat alone', () => {const takes = vi.fn<ParkedCardAnswer>(() => Promise.resolve(true))- unregister.push(registerParkedCardAnswer('test-onboarding', { ...kind(takes), onboardingOnly: true, waiting: () => true }))+ unregister.push(+ registerParkedCardAnswer('test-onboarding', { ...kind(takes), onboardingOnly: true, waiting: () => true })+ )const $waiting = sessionOnboardingCardWaiting('session-a')expect(answerParkedCard('session-a', 'hello')).toBe(false)