Skip to content

The agent that grows with you

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

hermes-seaeye[bot]a72c9ca248a0
diff --git a/apps/desktop/src/app/cron/index.tsx b/apps/desktop/src/app/cron/index.tsx
index 135ca2a8b70..c2eefae66d7 100644
--- a/apps/desktop/src/app/cron/index.tsx
+++ b/apps/desktop/src/app/cron/index.tsx
@@ -719,7 +719,11 @@ export function CronView({ onClose, onOpenSession, setStatusbarItemGroup: _setSt
) : (
// No selection and no search — "Try a broader search query" here
// just confused people staring at an empty panel with zero jobs.
- <PanelEmpty description={c.emptyDescNew} icon="watch" title={jobs.length === 0 ? c.emptyTitleNew : undefined} />
+ <PanelEmpty
+ description={c.emptyDescNew}
+ icon="watch"
+ title={jobs.length === 0 ? c.emptyTitleNew : undefined}
+ />
)}
</PanelBody>
)}
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 04cf68bc98d..7cf4646e6b6 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
@@ -1728,12 +1728,11 @@ export function useSessionActions({
// (archived rows are excluded from $sessions by design). Resolve from
// both so deleting from the Archived filter evicts the row instead of
// leaving a ghost that resumes into a dead id (infinite spinner).
- const removedFromMain = $sessions
- .get()
- .find(session => sessionMatchesStoredId(session, storedSessionId))
+ const removedFromMain = $sessions.get().find(session => sessionMatchesStoredId(session, storedSessionId))
+
const removed =
- removedFromMain ??
- $archivedSessions.get().find(session => sessionMatchesStoredId(session, storedSessionId))
+ removedFromMain ?? $archivedSessions.get().find(session => sessionMatchesStoredId(session, storedSessionId))
+
const wasSelected = selectedStoredSessionId === storedSessionId
const closingRuntimeId = wasSelected ? activeSessionId : null
const previousMessages = $messages.get()
@@ -1745,9 +1744,7 @@ export function useSessionActions({
const removedIds = [storedSessionId, removed?.id, removed?._lineage_root_id]
setSessions(prev => prev.filter(session => !sessionMatchesStoredId(session, storedSessionId)))
- $archivedSessions.set(
- previousArchived.filter(session => !sessionMatchesStoredId(session, storedSessionId))
- )
+ $archivedSessions.set(previousArchived.filter(session => !sessionMatchesStoredId(session, storedSessionId)))
// Evict from the project tree's optimistic layer too (the backend snapshot
// still lists it until its next refresh), so grouped + flat views drop the
// row in lockstep. Pin the tombstone against the projects.tree prune while