Skip to content

The agent that grows with you

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

hermes-seaeye[bot]e34c4c009a18
diff --git a/apps/desktop/electron/remote-lifecycle.test.ts b/apps/desktop/electron/remote-lifecycle.test.ts
index 90c1ece8a6b..151da868306 100644
--- a/apps/desktop/electron/remote-lifecycle.test.ts
+++ b/apps/desktop/electron/remote-lifecycle.test.ts
@@ -143,10 +143,7 @@ test('locateHermes returns an explicit remoteHermesPath unchanged', async () =>
])
assert.equal(await locateHermes(ssh, '~/.local/bin/hermes'), '~/.local/bin/hermes')
- assert.ok(
- !ssh.calls.some(cmd => cmd.includes('python3 -c')),
- 'an explicit remoteHermesPath must never be rewritten'
- )
+ assert.ok(!ssh.calls.some(cmd => cmd.includes('python3 -c')), 'an explicit remoteHermesPath must never be rewritten')
})
test('locateHermes falls back to ~/.local/bin/hermes when the login-shell probe misses', async () => {
diff --git a/apps/desktop/electron/remote-lifecycle.ts b/apps/desktop/electron/remote-lifecycle.ts
index b8a385c2e7e..1dcd74e3b7e 100644
--- a/apps/desktop/electron/remote-lifecycle.ts
+++ b/apps/desktop/electron/remote-lifecycle.ts
@@ -128,16 +128,16 @@ function expandRemotePath(p) {
// non-login `ssh host cmd` PATH misses user installs), then known install paths.
async function locateHermes(ssh, remoteHermesPath) {
const resolveLauncher = async (candidate: string) => {
- // Return the candidate path directly. The hermes binary or wrapper script
- // is executable and handles argument forwarding (e.g. `exec <python> <script> "$@"`)
- // correctly on its own. Previously, this function followed `exec` wrappers and
- // returned only the python interpreter, which broke:
- // - version checking: `<python> --version` printed "Python x.y.z" instead of
- // the Hermes version, and
- // - capability probing: `<python> serve --help` failed entirely.
- // See https://github.com/NousResearch/hermes-agent/issues/74411
- return candidate
- }
+ // Return the candidate path directly. The hermes binary or wrapper script
+ // is executable and handles argument forwarding (e.g. `exec <python> <script> "$@"`)
+ // correctly on its own. Previously, this function followed `exec` wrappers and
+ // returned only the python interpreter, which broke:
+ // - version checking: `<python> --version` printed "Python x.y.z" instead of
+ // the Hermes version, and
+ // - capability probing: `<python> serve --help` failed entirely.
+ // See https://github.com/NousResearch/hermes-agent/issues/74411
+ return candidate
+ }
const isExecutable = async (candidate: string) => {
try {
diff --git a/apps/desktop/src/lib/chat-messages.test.ts b/apps/desktop/src/lib/chat-messages.test.ts
index ff54042a17c..6c959326e7c 100644
--- a/apps/desktop/src/lib/chat-messages.test.ts
+++ b/apps/desktop/src/lib/chat-messages.test.ts
@@ -23,6 +23,7 @@ describe('toChatMessages', () => {
// the backend also ships the full args, and the part must carry them so
// the expanded `$` transcript shows the whole command.
const longCommand = `echo ${'x'.repeat(200)}`
+
const messages = toChatMessages([
{ role: 'user', content: 'run it', timestamp: 1 },
{
diff --git a/ui-tui/src/components/appChrome.tsx b/ui-tui/src/components/appChrome.tsx
index 7d99d849d3f..708391eea68 100644
--- a/ui-tui/src/components/appChrome.tsx
+++ b/ui-tui/src/components/appChrome.tsx
@@ -750,11 +750,7 @@ export function StatusRule({
<>
<Text color={t.color.border}>{separatorWidth >= 3 ? ' ─ ' : ' '}</Text>
<Box flexShrink={0} width={rightWidth}>
- <Text
- bold={!!sessionTitle}
- color={sessionTitle ? t.color.accent : t.color.label}
- wrap="truncate-end"
- >
+ <Text bold={!!sessionTitle} color={sessionTitle ? t.color.accent : t.color.label} wrap="truncate-end">
{rightLabel}
</Text>
</Box>