The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fmt(js): `npm run fix` on merge (#121210)
hermes-seaeye[bot]3b8c77c42814
diff --git a/apps/desktop/electron/pet-overlay.test.ts b/apps/desktop/electron/pet-overlay.test.tsindex e012a48a9c2..2a037fa9509 100644--- a/apps/desktop/electron/pet-overlay.test.ts+++ b/apps/desktop/electron/pet-overlay.test.ts@@ -30,14 +30,8 @@ const PET_BOUNDS = { x: 200, y: 150, width: 300, height: 400 }test('resolvePetOverlayBounds returns null for missing or garbage input', () => {assert.equal(resolvePetOverlayBounds(null, LAPTOP, ANCHOR_ON_LAPTOP), null)assert.equal(resolvePetOverlayBounds(undefined, LAPTOP, ANCHOR_ON_LAPTOP), null)- assert.equal(- resolvePetOverlayBounds({ x: NaN, y: 0, width: 100, height: 100 }, LAPTOP, ANCHOR_ON_LAPTOP),- null- )- assert.equal(- resolvePetOverlayBounds({ x: 0, y: 0, width: 'wide', height: 100 }, LAPTOP, ANCHOR_ON_LAPTOP),- null- )+ assert.equal(resolvePetOverlayBounds({ x: NaN, y: 0, width: 100, height: 100 }, LAPTOP, ANCHOR_ON_LAPTOP), null)+ assert.equal(resolvePetOverlayBounds({ x: 0, y: 0, width: 'wide', height: 100 }, LAPTOP, ANCHOR_ON_LAPTOP), null)})test('resolvePetOverlayBounds returns requested unchanged with no displays to validate against', () => {diff --git a/apps/desktop/src/app/chat/composer/contrib.ts b/apps/desktop/src/app/chat/composer/contrib.tsindex 05b4ef0b145..19684e4df49 100644--- a/apps/desktop/src/app/chat/composer/contrib.ts+++ b/apps/desktop/src/app/chat/composer/contrib.ts@@ -182,7 +182,11 @@ export interface ComposerModelPillProvider {/** The first provider-supplied pill label, or `null` for the core label. A* throwing provider is treated as declining — a broken plugin can't blank the* pill. */-export function useComposerModelPillLabel({ compact, model, reasoningEffort }: ComposerModelPillContext): null | string {+export function useComposerModelPillLabel({+ compact,+ model,+ reasoningEffort+}: ComposerModelPillContext): null | string {const contributions = useContributions(COMPOSER_AREAS.modelPill)// Memoised on the primitive fields (the caller builds a fresh ctx objectdiff --git a/apps/desktop/src/app/chat/composer/focus.ts b/apps/desktop/src/app/chat/composer/focus.tsindex 4f51b80bba6..f7fef135314 100644--- a/apps/desktop/src/app/chat/composer/focus.ts+++ b/apps/desktop/src/app/chat/composer/focus.ts@@ -500,9 +500,7 @@ export const requestComposerGetDraft = (const token = ++draftTokenconst promise =- cleaned.length || active- ? requestDraftOnce('get', GET_DRAFT_EVENT, { active, ids: cleaned, token })- : null+ cleaned.length || active ? requestDraftOnce('get', GET_DRAFT_EVENT, { active, ids: cleaned, token }) : nullif (!promise) {return Promise.resolve(null)@@ -515,19 +513,13 @@ export const requestComposerGetDraft = (* re-renders through `renderComposerContents`, so `@`-ref / `/`-command* tokens hydrate as chips exactly like official paste). Returns false when* no mounted surface answers; never writes another session's composer. */-export const requestComposerSetDraft = (- ids: string[],- text: string,- opts?: { active?: boolean }-): Promise<boolean> => {+export const requestComposerSetDraft = (ids: string[], text: string, opts?: { active?: boolean }): Promise<boolean> => {const cleaned = [...new Set(ids.map(id => id?.trim()).filter(Boolean))] as string[]const active = opts?.active === trueconst token = ++draftTokenconst promise =- cleaned.length || active- ? requestDraftOnce('set', SET_DRAFT_EVENT, { active, ids: cleaned, text, token })- : null+ cleaned.length || active ? requestDraftOnce('set', SET_DRAFT_EVENT, { active, ids: cleaned, text, token }) : nullreturn promise ? promise.then(reply => reply?.ok === true) : Promise.resolve(false)}@@ -588,7 +580,9 @@ export const onComposerDraftRequests = (} else if (e.type === SET_DRAFT_EVENT) {const ok = handlers.write(e.detail.text ?? '')- window.dispatchEvent(new CustomEvent<DraftReplyDetail>(DRAFT_REPLY_EVENT, { detail: { ok, token: e.detail.token } }))+ window.dispatchEvent(+ new CustomEvent<DraftReplyDetail>(DRAFT_REPLY_EVENT, { detail: { ok, token: e.detail.token } })+ )}}diff --git a/apps/desktop/src/app/chat/composer/hooks/use-composer-draft.ts b/apps/desktop/src/app/chat/composer/hooks/use-composer-draft.tsindex 4b76081d483..bf41c4ecb3c 100644--- a/apps/desktop/src/app/chat/composer/hooks/use-composer-draft.ts+++ b/apps/desktop/src/app/chat/composer/hooks/use-composer-draft.ts@@ -297,9 +297,7 @@ export function useComposerDraft({return onComposerDraftRequests({getIds: () => {- const ids = [sessionIdRef.current, activeQueueSessionKeyRef.current].filter(- (id): id is string => Boolean(id)- )+ const ids = [sessionIdRef.current, activeQueueSessionKeyRef.current].filter((id): id is string => Boolean(id))// A surface with no session yet IS the new-chat draft (the stash keys// it '__new__'); once one opens, the new-chat draft belongs elsewhere.diff --git a/apps/desktop/src/app/chat/composer/model-pill.test.tsx b/apps/desktop/src/app/chat/composer/model-pill.test.tsxindex 1e6270d8abf..35caad92989 100644--- a/apps/desktop/src/app/chat/composer/model-pill.test.tsx+++ b/apps/desktop/src/app/chat/composer/model-pill.test.tsx@@ -191,7 +191,9 @@ describe('ModelPill label providers', () => {it('renders a provider-supplied label, and the core label once the provider declines', () => {setCurrentModel('deepseek/deepseek-v4-flash')- const label = vi.fn(({ model, reasoningEffort }: ComposerModelPillContext) => `${model} · ${reasoningEffort || 'none'}`)+ const label = vi.fn(+ ({ model, reasoningEffort }: ComposerModelPillContext) => `${model} · ${reasoningEffort || 'none'}`+ )register(label)const { unmount } = render(@@ -206,6 +208,7 @@ describe('ModelPill label providers', () => {// not consulted at all (the chevron has no text to leak, so only the spy// proves the skip).label.mockClear()+const compactRender = render(<ModelPill compact disabled={false} model={modelState({ model: 'deepseek/deepseek-v4-flash' })} />)diff --git a/apps/desktop/src/app/chat/sidebar/session-row-slots.tsx b/apps/desktop/src/app/chat/sidebar/session-row-slots.tsxindex e274643f890..940d1b36d08 100644--- a/apps/desktop/src/app/chat/sidebar/session-row-slots.tsx+++ b/apps/desktop/src/app/chat/sidebar/session-row-slots.tsx@@ -44,7 +44,12 @@ export const SessionRowSlot: FC<{ area: string; sessionId: string }> = ({ area,const render = (contribution.data as SessionRowSlotContribution | undefined)?.renderreturn render ? (- <SessionRowSlotEntry id={contribution.id} key={`${contribution.source ?? 'core'}:${contribution.id}`} render={render} sessionId={sessionId} />+ <SessionRowSlotEntry+ id={contribution.id}+ key={`${contribution.source ?? 'core'}:${contribution.id}`}+ render={render}+ sessionId={sessionId}+ />) : null})}</>