Skip to content

The agent that grows with you

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

hermes-seaeye[bot]71f8c60f6a6a
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 d70a6ef326d..9c0b5096413 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
@@ -750,8 +750,7 @@ export function useSessionActions({
// `options?.cwd || resolve…` is wrong for Home: null is falsy and used
// to fall through into the last project folder while main chat was
// occupied (openTab path for "New session in Home").
- const capturedRoute =
- options?.route !== undefined ? options.route : resolveNewChatOwnerRoute(options?.profile)
+ const capturedRoute = options?.route !== undefined ? options.route : resolveNewChatOwnerRoute(options?.profile)
const workspaceScope = options?.workspaceScope ?? { workspaceMode: 'sessions' }
diff --git a/apps/desktop/src/lib/listing-embed.ts b/apps/desktop/src/lib/listing-embed.ts
index d543f95d4df..7a1f1ddc482 100644
--- a/apps/desktop/src/lib/listing-embed.ts
+++ b/apps/desktop/src/lib/listing-embed.ts
@@ -150,9 +150,8 @@ function linkList(value: unknown): ListingLink[] {
}
const label =
- (typeof entry === 'object' && entry !== null
- ? text((entry as { label?: unknown }).label)
- : undefined) ?? hostLabel(url)
+ (typeof entry === 'object' && entry !== null ? text((entry as { label?: unknown }).label) : undefined) ??
+ hostLabel(url)
links.push({ label, url })
@@ -221,7 +220,7 @@ export function parseListings(code: string): Listing[] {
const entries = Array.isArray(data)
? data
: typeof data === 'object' && data !== null && Array.isArray((data as { listings?: unknown }).listings)
- ? ((data as { listings: unknown[] }).listings)
+ ? (data as { listings: unknown[] }).listings
: [data]
const listings: Listing[] = []