mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-23 16:36:23 +00:00
fmt(js): npm run fix on merge (#69823)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
parent
88a9557385
commit
2ebeede006
5 changed files with 8 additions and 5 deletions
|
|
@ -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'
|
||||
|
|
|
|||
|
|
@ -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?.()
|
||||
|
|
|
|||
|
|
@ -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'
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -152,6 +152,7 @@ function migrateWorkspaceCollapsedIds(): Record<string, boolean> {
|
|||
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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue