Skip to content

The agent that grows with you

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

hermes-seaeye[bot]c80b199f36db
diff --git a/apps/desktop/src/app/command-palette/index.tsx b/apps/desktop/src/app/command-palette/index.tsx
index 43b5e0b733f..f627f139574 100644
--- a/apps/desktop/src/app/command-palette/index.tsx
+++ b/apps/desktop/src/app/command-palette/index.tsx
@@ -313,6 +313,7 @@ export function CommandPalette() {
const { availableThemes, mode, resolvedMode, setMode, setTheme, themeName } = useTheme()
const [search, setSearch] = useState('')
const [page, setPage] = useState<string | null>(null)
+
// cmdk's onSelect doesn't forward the triggering event — keep the last
// click/keydown modifiers so session rows can honour ⌘-Enter / ⌘-click.
const lastSelectMods = useRef<{ ctrlKey: boolean; metaKey: boolean; shiftKey: boolean }>({
@@ -320,6 +321,7 @@ export function CommandPalette() {
metaKey: false,
shiftKey: false
})
+
const noteSelectMods = (event: { ctrlKey: boolean; metaKey: boolean; shiftKey: boolean }) => {
lastSelectMods.current = {
ctrlKey: event.ctrlKey,
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 315b53530b9..b6573431f4e 100644
--- a/apps/desktop/src/app/contrib/hooks/use-desktop-integrations.ts
+++ b/apps/desktop/src/app/contrib/hooks/use-desktop-integrations.ts
@@ -130,10 +130,7 @@ export function useDesktopIntegrations({
useEffect(() => {
const unsubscribe = window.hermesDesktop?.onFocusSession?.(sessionId => {
if (sessionId) {
- openSession(
- storedSessionIdForNotification(sessionId, runtimeIdByStoredSessionId.current),
- navigate
- )
+ openSession(storedSessionIdForNotification(sessionId, runtimeIdByStoredSessionId.current), navigate)
}
})
diff --git a/apps/desktop/src/app/contrib/wiring.tsx b/apps/desktop/src/app/contrib/wiring.tsx
index 17fec6d2677..9bd6db5d80b 100644
--- a/apps/desktop/src/app/contrib/wiring.tsx
+++ b/apps/desktop/src/app/contrib/wiring.tsx
@@ -72,13 +72,7 @@ import { RemoteFolderPicker } from '../right-sidebar/files/remote-picker'
import { resetProjectTreeState } from '../right-sidebar/files/use-project-tree'
import { PersistentTerminal } from '../right-sidebar/terminal/persistent'
import { closeAllTerminals } from '../right-sidebar/terminal/terminals'
-import {
- CRON_ROUTE,
- navigateToWorkspacePage,
- routeSessionId,
- SETTINGS_ROUTE,
- syncWorkspaceRoute
-} from '../routes'
+import { CRON_ROUTE, navigateToWorkspacePage, routeSessionId, SETTINGS_ROUTE, syncWorkspaceRoute } from '../routes'
import { SessionPickerOverlay } from '../session-picker-overlay'
import { SessionSwitcher } from '../session-switcher'
import { useBackgroundQueueDrain } from '../session/hooks/use-background-queue-drain'
diff --git a/apps/desktop/src/app/open-session.ts b/apps/desktop/src/app/open-session.ts
index a9781b63535..e6582fe4e9e 100644
--- a/apps/desktop/src/app/open-session.ts
+++ b/apps/desktop/src/app/open-session.ts
@@ -11,11 +11,7 @@
* - `window` (⇧⌘-click) — pop into its own window; falls back to `tab` when
* the bridge has no session-window support.
*/
-import {
- focusedSessionNeedsRoute,
- focusOpenSession,
- openSessionTile
-} from '@/store/session-states'
+import { focusedSessionNeedsRoute, focusOpenSession, openSessionTile } from '@/store/session-states'
import { canOpenSessionWindow, openSessionInNewWindow } from '@/store/windows'
import { $workspaceIsPage, sessionRoute } from './routes'
diff --git a/apps/desktop/src/components/pane-shell/tree/floating-adoption.test.ts b/apps/desktop/src/components/pane-shell/tree/floating-adoption.test.ts
index 4020b03ddce..2a619a84404 100644
--- a/apps/desktop/src/components/pane-shell/tree/floating-adoption.test.ts
+++ b/apps/desktop/src/components/pane-shell/tree/floating-adoption.test.ts
@@ -20,7 +20,13 @@ describe('floating panes stay out of the layout tree', () => {
const model = await import('@/components/pane-shell/tree/model')
const { registry } = await import('@/contrib/registry')
- registry.register({ id: 'workspace', area: 'panes', title: 'chat', data: { placement: 'main' }, render: () => null })
+ registry.register({
+ id: 'workspace',
+ area: 'panes',
+ title: 'chat',
+ data: { placement: 'main' },
+ render: () => null
+ })
tree.declareDefaultTree(model.group(['workspace'], { id: 'grp-main' }))