From 2ebeede006e19b1ea433ba723e33dd035fc8e10e Mon Sep 17 00:00:00 2001 From: "hermes-seaeye[bot]" <307254004+hermes-seaeye[bot]@users.noreply.github.com> Date: Thu, 23 Jul 2026 04:09:14 +0000 Subject: [PATCH] fmt(js): `npm run fix` on merge (#69823) Co-authored-by: github-actions[bot] --- apps/desktop/src/app/chat/session-tile.tsx | 2 +- .../desktop/src/app/contrib/hooks/use-desktop-integrations.ts | 4 ++-- apps/desktop/src/app/contrib/wiring.tsx | 2 +- .../desktop/src/app/session/hooks/use-session-list-actions.ts | 4 +++- apps/desktop/src/store/layout.ts | 1 + 5 files changed, 8 insertions(+), 5 deletions(-) diff --git a/apps/desktop/src/app/chat/session-tile.tsx b/apps/desktop/src/app/chat/session-tile.tsx index 81195e8f80de..6562880b58f5 100644 --- a/apps/desktop/src/app/chat/session-tile.tsx +++ b/apps/desktop/src/app/chat/session-tile.tsx @@ -21,8 +21,8 @@ import { useEffect, useMemo, useRef } from 'react' import { useGatewayRequest } from '@/app/gateway/hooks/use-gateway-request' import { useModelControls } from '@/app/session/hooks/use-model-controls' -import { resolveStoredSession } from '@/app/session/hooks/use-session-actions/utils' import { blobToDataUrl } from '@/app/session/hooks/use-prompt-actions/utils' +import { resolveStoredSession } from '@/app/session/hooks/use-session-actions/utils' import { ModelMenuPanel } from '@/app/shell/model-menu-panel' import { formatRefValue } from '@/components/assistant-ui/directive-text' import { CenteredThreadSpinner } from '@/components/assistant-ui/thread/status' diff --git a/apps/desktop/src/app/contrib/hooks/use-desktop-integrations.ts b/apps/desktop/src/app/contrib/hooks/use-desktop-integrations.ts index a1cd3cdfc469..dd1fe42633df 100644 --- a/apps/desktop/src/app/contrib/hooks/use-desktop-integrations.ts +++ b/apps/desktop/src/app/contrib/hooks/use-desktop-integrations.ts @@ -155,8 +155,8 @@ export function useDesktopIntegrations({ // OS-standard window close, esp. secondary windows). The Win/Linux keyboard // path is the `view.closeTab` keybind (use-keybinds), sharing closeActiveTab. useEffect(() => { - const unsubscribe = window.hermesDesktop?.onClosePreviewRequested?.(() => - void closeActiveTab(id => navigate(sessionRoute(id))) + const unsubscribe = window.hermesDesktop?.onClosePreviewRequested?.( + () => void closeActiveTab(id => navigate(sessionRoute(id))) ) return () => unsubscribe?.() diff --git a/apps/desktop/src/app/contrib/wiring.tsx b/apps/desktop/src/app/contrib/wiring.tsx index ca59bdabdf9f..b8908150c0aa 100644 --- a/apps/desktop/src/app/contrib/wiring.tsx +++ b/apps/desktop/src/app/contrib/wiring.tsx @@ -14,12 +14,12 @@ import { type CSSProperties, lazy, type ReactNode, Suspense, useCallback, useEff import { useLocation, useNavigate } from 'react-router-dom' import { formatRefValue } from '@/components/assistant-ui/directive-text' -import { $newSessionTabAction } from '@/components/pane-shell/tree/store' import { BootFailureOverlay } from '@/components/boot-failure-overlay' import { DesktopInstallOverlay } from '@/components/desktop-install-overlay' import { GatewayConnectingOverlay } from '@/components/gateway-connecting-overlay' import { NotificationStack } from '@/components/notifications' import { DesktopOnboardingOverlay } from '@/components/onboarding' +import { $newSessionTabAction } from '@/components/pane-shell/tree/store' import { FloatingPet } from '@/components/pet/floating-pet' import { RemoteDisplayBanner } from '@/components/remote-display-banner' import { emitGatewayEvent } from '@/contrib/events' diff --git a/apps/desktop/src/app/session/hooks/use-session-list-actions.ts b/apps/desktop/src/app/session/hooks/use-session-list-actions.ts index 2031b6806179..a94573226293 100644 --- a/apps/desktop/src/app/session/hooks/use-session-list-actions.ts +++ b/apps/desktop/src/app/session/hooks/use-session-list-actions.ts @@ -188,7 +188,9 @@ export function useSessionListActions({ profileScope }: UseSessionListActionsArg const tombstones = $removedSessionIds.get() const incoming = tombstones.size - ? recents.sessions.filter(s => !tombstones.has(s.id) && !(s._lineage_root_id && tombstones.has(s._lineage_root_id))) + ? recents.sessions.filter( + s => !tombstones.has(s.id) && !(s._lineage_root_id && tombstones.has(s._lineage_root_id)) + ) : recents.sessions // Signature-gate the swap (same pattern as cron/messaging): a refresh diff --git a/apps/desktop/src/store/layout.ts b/apps/desktop/src/store/layout.ts index 80d9343954a8..f329e965265b 100644 --- a/apps/desktop/src/store/layout.ts +++ b/apps/desktop/src/store/layout.ts @@ -152,6 +152,7 @@ function migrateWorkspaceCollapsedIds(): Record { return {} } } + // Auto-derived (git-repo) projects the user has dismissed ("deleted") from the // overview. Keyed by repo-root path; persisted so they stay hidden. Explicit // projects are deleted for real instead — this only declutters the auto tier.