Skip to content

The agent that grows with you

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

hermes-seaeye[bot]5eb99eb2844b
diff --git a/apps/desktop/src/app/chat/composer/index.tsx b/apps/desktop/src/app/chat/composer/index.tsx
index 8cd701d1678..cbfd9a9f2dc 100644
--- a/apps/desktop/src/app/chat/composer/index.tsx
+++ b/apps/desktop/src/app/chat/composer/index.tsx
@@ -88,7 +88,13 @@ import { ComposerTriggerPopover } from './trigger-popover'
import type { ChatBarProps } from './types'
import { isRedoShortcut, isUndoShortcut } from './undo-history'
import { UrlDialog } from './url-dialog'
-import { chipTypedUrlOnSpace, linkifyUrls, markdownLinkFor, resolveExactLinkPaste, selectionLinkLabel } from './url-refs'
+import {
+ chipTypedUrlOnSpace,
+ linkifyUrls,
+ markdownLinkFor,
+ resolveExactLinkPaste,
+ selectionLinkLabel
+} from './url-refs'
import { VoiceActivity, VoicePlaybackActivity } from './voice-activity'
export function ChatBar({
diff --git a/apps/desktop/src/app/chat/composer/url-refs.test.ts b/apps/desktop/src/app/chat/composer/url-refs.test.ts
index 565666e00ec..86e3da39c1d 100644
--- a/apps/desktop/src/app/chat/composer/url-refs.test.ts
+++ b/apps/desktop/src/app/chat/composer/url-refs.test.ts
@@ -2,7 +2,13 @@ import type { KeyboardEvent } from 'react'
import { describe, expect, it } from 'vitest'
import { composerPlainText, refChipElement, RICH_INPUT_SLOT } from './rich-editor'
-import { chipTypedUrlOnSpace, linkifyUrls, markdownLinkFor, resolveExactLinkPaste, selectionLinkLabel } from './url-refs'
+import {
+ chipTypedUrlOnSpace,
+ linkifyUrls,
+ markdownLinkFor,
+ resolveExactLinkPaste,
+ selectionLinkLabel
+} from './url-refs'
/** An editor holding `text` with a collapsed caret at `caret`, plus the space
* keydown the composer would hand `chipTypedUrlOnSpace`. */
diff --git a/apps/desktop/src/app/chat/route-session-state.ts b/apps/desktop/src/app/chat/route-session-state.ts
index 778ab78d7f1..e66e7a7532b 100644
--- a/apps/desktop/src/app/chat/route-session-state.ts
+++ b/apps/desktop/src/app/chat/route-session-state.ts
@@ -32,10 +32,9 @@ export function isRouteSessionMismatch(
storedSessionId === routedSessionId ||
Boolean(
storedSessionId &&
- sessions.some(
- session =>
- sessionMatchesStoredId(session, routedSessionId) && sessionMatchesStoredId(session, storedSessionId)
- )
+ sessions.some(
+ session => sessionMatchesStoredId(session, routedSessionId) && sessionMatchesStoredId(session, storedSessionId)
+ )
)
// The selected view already owns the routed conversation: a profile or
diff --git a/apps/desktop/src/app/session/hooks/use-session-actions.test.tsx b/apps/desktop/src/app/session/hooks/use-session-actions.test.tsx
index 353c43d3dce..b459a0cc828 100644
--- a/apps/desktop/src/app/session/hooks/use-session-actions.test.tsx
+++ b/apps/desktop/src/app/session/hooks/use-session-actions.test.tsx
@@ -4171,6 +4171,7 @@ describe('openNewSessionTile workspace target', () => {
throw new Error(`Unexpected ambient RPC: ${method}`)
})
+
vi.mocked(requestGatewayForProfile).mockResolvedValue({ control: {} } as never)
let handle: HarnessHandle | null = null
@@ -4219,6 +4220,7 @@ describe('openNewSessionTile workspace target', () => {
throw new Error(`Unexpected ambient RPC: ${method}`)
})
+
vi.mocked(requestGatewayForProfile).mockResolvedValue({ control: {} } as never)
let handle: HarnessHandle | null = null
diff --git a/apps/desktop/src/app/session/hooks/use-session-actions/index.ts b/apps/desktop/src/app/session/hooks/use-session-actions/index.ts
index 877f368e9cd..904407ef140 100644
--- a/apps/desktop/src/app/session/hooks/use-session-actions/index.ts
+++ b/apps/desktop/src/app/session/hooks/use-session-actions/index.ts
@@ -776,8 +776,9 @@ export function useSessionActions({
const requestedProfile = normalizeProfileKey(
typeof options?.profile === 'string' && options.profile
? options.profile
- : ($newChatProfile.get() || $activeGatewayProfile.get())
+ : $newChatProfile.get() || $activeGatewayProfile.get()
)
+
const legacyOwnerProfile =
options?.route === undefined &&
!capturedRoute &&
diff --git a/apps/desktop/src/app/starmap/playback-hotkey.ts b/apps/desktop/src/app/starmap/playback-hotkey.ts
index 064ce1a67ef..c8d29088a04 100644
--- a/apps/desktop/src/app/starmap/playback-hotkey.ts
+++ b/apps/desktop/src/app/starmap/playback-hotkey.ts
@@ -6,7 +6,10 @@
* inside a menu — Radix menu items are `div[role=menuitem]`, so the tag check
* alone would let Space both activate the item and toggle playback.
*/
-export function shouldIgnorePlaybackHotkey(e: Pick<KeyboardEvent, 'code' | 'defaultPrevented' | 'key' | 'target'>, activeElement: Element | null): boolean {
+export function shouldIgnorePlaybackHotkey(
+ e: Pick<KeyboardEvent, 'code' | 'defaultPrevented' | 'key' | 'target'>,
+ activeElement: Element | null
+): boolean {
if (e.code !== 'Space' && e.key !== ' ') {
return true
}
diff --git a/apps/desktop/src/store/session-states.test.ts b/apps/desktop/src/store/session-states.test.ts
index edde97bb2c9..522cd2c1c1b 100644
--- a/apps/desktop/src/store/session-states.test.ts
+++ b/apps/desktop/src/store/session-states.test.ts
@@ -11,7 +11,13 @@ import {
workspaceScopeKey
} from '@/components/pane-shell/workspace-scope'
import { $activeGatewayProfile } from '@/store/profile'
-import { $activeSessionId, $connection, $selectedStoredSessionId, setSessionOwnerHint, setSessions } from '@/store/session'
+import {
+ $activeSessionId,
+ $connection,
+ $selectedStoredSessionId,
+ setSessionOwnerHint,
+ setSessions
+} from '@/store/session'
import type { SessionProfileRoute } from '@/store/session-request-router'
import type { SessionTile } from '@/store/session-states'
import type * as SessionStatesModule from '@/store/session-states'