Skip to content

The agent that grows with you

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

hermes-seaeye[bot]a13d3a45d20d
diff --git a/apps/desktop/electron/remote-lifecycle.test.ts b/apps/desktop/electron/remote-lifecycle.test.ts
index a2b1463a7f0..b682644ec8a 100644
--- a/apps/desktop/electron/remote-lifecycle.test.ts
+++ b/apps/desktop/electron/remote-lifecycle.test.ts
@@ -967,6 +967,7 @@ test('buildSpawnCommand never pins a non-slug profile into the remote argv', ()
const bad = buildSpawnCommand('/x/hermes', 0 as unknown as string, {
logPath: spawnLogPath(OWNERSHIP_ID, SPAWN_NONCE)
})
+
assert.ok(!bad.includes('--profile'), 'a non-string profile must not be pinned')
const empty = buildSpawnCommand('/x/hermes', '', { logPath: spawnLogPath(OWNERSHIP_ID, SPAWN_NONCE) })
diff --git a/apps/desktop/electron/window-state.test.ts b/apps/desktop/electron/window-state.test.ts
index e6561f6d36e..46f888075a7 100644
--- a/apps/desktop/electron/window-state.test.ts
+++ b/apps/desktop/electron/window-state.test.ts
@@ -166,6 +166,7 @@ test('computeWindowOptions recovers a legacy snapshot matching the full display
const displays = [
{ workArea: { x: 0, y: 0, width: 1920, height: 1040 }, bounds: { x: 0, y: 0, width: 1920, height: 1080 } }
]
+
const saved = sanitizeWindowState({ x: 0, y: 0, width: 1920, height: 1080, isMaximized: false })
assert.deepEqual(computeWindowOptions(saved, displays, 'win32'), { width: 1536, height: 832 })
})
diff --git a/apps/desktop/src/app/contrib/hooks/use-session-tile-delegate.test.ts b/apps/desktop/src/app/contrib/hooks/use-session-tile-delegate.test.ts
index 81448b3e880..e3afc51bcd7 100644
--- a/apps/desktop/src/app/contrib/hooks/use-session-tile-delegate.test.ts
+++ b/apps/desktop/src/app/contrib/hooks/use-session-tile-delegate.test.ts
@@ -898,7 +898,6 @@ describe('useSessionTileDelegate submitToSession', () => {
})
})
-
describe('useSessionTileDelegate read-only cron run (#88443)', () => {
const storedId = 'cron_job-1_20260929_120000'
const runtimeId = 'rt-cron-run'
diff --git a/apps/desktop/src/app/session/hooks/use-message-stream/gateway-event/desktop-bridge.reaction.test.ts b/apps/desktop/src/app/session/hooks/use-message-stream/gateway-event/desktop-bridge.reaction.test.ts
index 80d7d5deaa9..55e7a033c5d 100644
--- a/apps/desktop/src/app/session/hooks/use-message-stream/gateway-event/desktop-bridge.reaction.test.ts
+++ b/apps/desktop/src/app/session/hooks/use-message-stream/gateway-event/desktop-bridge.reaction.test.ts
@@ -71,6 +71,7 @@ describe('message.reaction bridge session scope', () => {
if (typeof updater !== 'function') {
throw new Error('expected an updater function')
}
+
const optimistic = { id: 'm1', role: 'assistant', rowId: undefined }
const next = updater([optimistic] as never)
@@ -86,6 +87,7 @@ describe('message.reaction bridge session scope', () => {
if (typeof updater !== 'function') {
throw new Error('expected an updater function')
}
+
const durable = { id: 'm1', role: 'assistant', rowId: 4242 }
const optimistic = { id: 'm2', role: 'assistant', rowId: undefined }
const next = updater([durable, optimistic] as never)