Skip to content

The agent that grows with you

fmt(js): `npm run fix` on merge (#86915)

hermes-seaeye[bot]3d5f45078170
diff --git a/apps/desktop/electron/main.ts b/apps/desktop/electron/main.ts
index a638d8e1d08..c56f4112acb 100644
--- a/apps/desktop/electron/main.ts
+++ b/apps/desktop/electron/main.ts
@@ -12019,12 +12019,7 @@ ipcMain.handle('hermes:connections:update-all', async () => {
const descriptor: any = await ensureRegistryBackend(connection.id, null)
- const body: any = await postJsonForBackend(
- descriptor,
- '/api/hermes/update',
- {},
- { timeoutMs: 15_000 }
- )
+ const body: any = await postJsonForBackend(descriptor, '/api/hermes/update', {}, { timeoutMs: 15_000 })
if (body?.ok === false) {
// The backend refused (docker/nix/externally-managed installs) —
diff --git a/apps/desktop/src/app/settings/toolset-config-panel.tsx b/apps/desktop/src/app/settings/toolset-config-panel.tsx
index 1cee5ec8431..c3ca93cc512 100644
--- a/apps/desktop/src/app/settings/toolset-config-panel.tsx
+++ b/apps/desktop/src/app/settings/toolset-config-panel.tsx
@@ -60,7 +60,6 @@ const MODEL_CATALOG_TOOLSETS = new Set(['image_gen', 'video_gen'])
*/
function useOptionalNavigate(): null | ReturnType<typeof useNavigate> {
try {
- // eslint-disable-next-line react-hooks/rules-of-hooks -- stable per instance: router presence never changes for a mounted component's lifetime
return useNavigate()
} catch {
return null
diff --git a/apps/desktop/src/app/settings/use-deep-link-highlight.ts b/apps/desktop/src/app/settings/use-deep-link-highlight.ts
index 27809b2ac27..35321c1ac60 100644
--- a/apps/desktop/src/app/settings/use-deep-link-highlight.ts
+++ b/apps/desktop/src/app/settings/use-deep-link-highlight.ts
@@ -17,7 +17,6 @@ interface DeepLinkHighlightOptions {
// try/catch never changes the hook count between renders (rules-of-hooks safe).
function useOptionalSearchParams(): ReturnType<typeof useSearchParams> {
try {
- // eslint-disable-next-line react-hooks/rules-of-hooks -- stable per instance: router presence never changes for a mounted component's lifetime
return useSearchParams()
} catch {
return [new URLSearchParams(), () => undefined]