Skip to content

The agent that grows with you

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

hermes-seaeye[bot]e1098cbb184f
diff --git a/apps/desktop/electron/external-terminal.test.ts b/apps/desktop/electron/external-terminal.test.ts
index a986d6103f1..c5bac2c989d 100644
--- a/apps/desktop/electron/external-terminal.test.ts
+++ b/apps/desktop/electron/external-terminal.test.ts
@@ -32,7 +32,10 @@ test('windowsQuote doubles embedded quotes', () => {
})
test('terminalScriptEnv drops PATH in any casing and keeps the rest', () => {
- const env = terminalScriptEnv({ Path: 'C:\\junk', PATH: '/junk', PYTHONPATH: '/repo', PYTHONUTF8: '1' }, '/home/b/.hermes')
+ const env = terminalScriptEnv(
+ { Path: 'C:\\junk', PATH: '/junk', PYTHONPATH: '/repo', PYTHONUTF8: '1' },
+ '/home/b/.hermes'
+ )
assert.deepEqual(env, { PYTHONPATH: '/repo', PYTHONUTF8: '1', HERMES_HOME: '/home/b/.hermes' })
})
diff --git a/apps/desktop/electron/main.ts b/apps/desktop/electron/main.ts
index ed8ae0188f3..b6addda017c 100644
--- a/apps/desktop/electron/main.ts
+++ b/apps/desktop/electron/main.ts
@@ -213,7 +213,13 @@ import {
} from './ssh-connection'
import { createStreamThrottle } from './stream-throttle'
import { nativeOverlayWidth as computeNativeOverlayWidth, macTitleBarOverlayHeight } from './titlebar-overlay-width'
-import { compareApiUrl, parseCompareBehindCount, resolveBehindCount, resolveCommitLogSelection, shouldCountCommits } from './update-count'
+import {
+ compareApiUrl,
+ parseCompareBehindCount,
+ resolveBehindCount,
+ resolveCommitLogSelection,
+ shouldCountCommits
+} from './update-count'
import { waitForUpdateClearance } from './update-gate'
import { readLiveUpdateMarker, updateHandoffConflict, writeUpdateMarker } from './update-marker'
import { isOfficialSshRemote, OFFICIAL_REPO_HTTPS_URL } from './update-remote'
diff --git a/apps/desktop/electron/update-count.test.ts b/apps/desktop/electron/update-count.test.ts
index 4bed53fbebb..d3281f126c5 100644
--- a/apps/desktop/electron/update-count.test.ts
+++ b/apps/desktop/electron/update-count.test.ts
@@ -6,7 +6,13 @@ import path from 'node:path'
import { test } from 'vitest'
-import { compareApiUrl, parseCompareBehindCount, resolveBehindCount, resolveCommitLogSelection, shouldCountCommits } from './update-count'
+import {
+ compareApiUrl,
+ parseCompareBehindCount,
+ resolveBehindCount,
+ resolveCommitLogSelection,
+ shouldCountCommits
+} from './update-count'
function createTempGitRepo() {
const cwd = fs.mkdtempSync(path.join(os.tmpdir(), 'hermes-update-count-'))
diff --git a/apps/desktop/src/app/chat/sidebar/session-actions-menu.tsx b/apps/desktop/src/app/chat/sidebar/session-actions-menu.tsx
index 59ba882afc7..f1334929c5d 100644
--- a/apps/desktop/src/app/chat/sidebar/session-actions-menu.tsx
+++ b/apps/desktop/src/app/chat/sidebar/session-actions-menu.tsx
@@ -253,7 +253,11 @@ function useSessionActions({
triggerHaptic('selection')
// Read the row lazily: subscribing every row's menu to $sessions
// would re-render the whole sidebar on each session update.
- const cwd = $sessions.get().find(s => sessionMatchesStoredId(s, sessionId))?.cwd?.trim() || undefined
+ const cwd =
+ $sessions
+ .get()
+ .find(s => sessionMatchesStoredId(s, sessionId))
+ ?.cwd?.trim() || undefined
void openSessionInTerminal(sessionId, { cwd, profile })
}