The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fmt(js): `npm run fix` on merge (#87880)
hermes-seaeye[bot]ca84f13b971d
diff --git a/apps/desktop/src/app/gateway/hooks/use-gateway-boot.test.tsx b/apps/desktop/src/app/gateway/hooks/use-gateway-boot.test.tsxindex 925147cdac4..3c507cec5f4 100644--- a/apps/desktop/src/app/gateway/hooks/use-gateway-boot.test.tsx+++ b/apps/desktop/src/app/gateway/hooks/use-gateway-boot.test.tsx@@ -406,6 +406,7 @@ describe('useGatewayBoot remote reconnect loop (real hook, fake socket)', () =>it('FIX: primary sleep/wake reconnect dials the window backend, not the active secondary profile', async () => {const desktop = fakeDesktop()+;(window as { hermesDesktop?: unknown }).hermesDesktop = desktoprender(<Harness />)@@ -440,6 +441,7 @@ describe('useGatewayBoot remote reconnect loop (real hook, fake socket)', () =>const primaryReconnectSockets = FakeWebSocket.instances.slice(socketsBeforeDrop).filter(socket => socket.url === primaryConn.wsUrl)+expect(primaryReconnectSockets.length).toBeGreaterThan(0)expect($connection.get()?.profile).toBe('coder')expect($connection.get()?.baseUrl).toBe(coderConn.baseUrl)diff --git a/ui-tui/src/__tests__/terminalSetup.test.ts b/ui-tui/src/__tests__/terminalSetup.test.tsindex dee678b90c8..84e5a553dc2 100644--- a/ui-tui/src/__tests__/terminalSetup.test.ts+++ b/ui-tui/src/__tests__/terminalSetup.test.ts@@ -455,6 +455,7 @@ describe('configureTerminalKeybindings', () => {it('migrates legacy \\\r\n bindings to CSI u sequences', async () => {const mkdir = vi.fn().mockResolvedValue(undefined)+const readFile = vi.fn().mockResolvedValue(JSON.stringify([{@@ -477,6 +478,7 @@ describe('configureTerminalKeybindings', () => {}]))+const writeFile = vi.fn().mockResolvedValue(undefined)const copyFile = vi.fn().mockResolvedValue(undefined)@@ -491,10 +493,12 @@ describe('configureTerminalKeybindings', () => {expect(result.message).toContain('migrated 3 legacy bindings to CSI u encoding')const written = writeFile.mock.calls[0]?.[1] as stringconst parsed = JSON.parse(written)+// All three Enter bindings should now use CSI u sequencesconst enterBindings = parsed.filter((b: { key: string }) =>['shift+enter', 'ctrl+enter', 'cmd+enter'].includes(b.key))+expect(enterBindings).toHaveLength(3)expect(enterBindings.find((b: { key: string }) => b.key === 'shift+enter')?.args?.text).toBe('\u001b[13;2u')expect(enterBindings.find((b: { key: string }) => b.key === 'ctrl+enter')?.args?.text).toBe('\u001b[13;5u')diff --git a/ui-tui/src/__tests__/textInputReturnAction.test.ts b/ui-tui/src/__tests__/textInputReturnAction.test.tsindex 5548bb80906..3a8fada4115 100644--- a/ui-tui/src/__tests__/textInputReturnAction.test.ts+++ b/ui-tui/src/__tests__/textInputReturnAction.test.ts@@ -48,9 +48,19 @@ describe('shouldInsertNewlineOnReturn', () => {it('keeps plain Enter as submit on a plain non-macOS terminal', async () => {const prev = { ...process.env }- for (const k of ['SSH_CONNECTION', 'SSH_CLIENT', 'SSH_TTY', 'WT_SESSION', 'GHOSTTY_RESOURCES_DIR', 'GHOSTTY_BIN_DIR', 'WSL_DISTRO_NAME']) {++ for (const k of [+ 'SSH_CONNECTION',+ 'SSH_CLIENT',+ 'SSH_TTY',+ 'WT_SESSION',+ 'GHOSTTY_RESOURCES_DIR',+ 'GHOSTTY_BIN_DIR',+ 'WSL_DISTRO_NAME'+ ]) {delete process.env[k]}+process.env.TERM = 'xterm-256color'process.env.TERM_PROGRAM = ''