The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fmt(js): `npm run fix` on merge (#73770)
hermes-seaeye[bot]ada389004f73
diff --git a/apps/desktop/src/app/chat/composer/contrib.ts b/apps/desktop/src/app/chat/composer/contrib.tsindex b7cba9d89e6..94d19457a58 100644--- a/apps/desktop/src/app/chat/composer/contrib.ts+++ b/apps/desktop/src/app/chat/composer/contrib.ts@@ -133,10 +133,7 @@ export function useComposerMicroActionProviders(): ComposerMicroActionProvider[]const contributions = useContributions(COMPOSER_AREAS.microActions)return useMemo(- () =>- contributions- .map(c => c.data as ComposerMicroActionProvider)- .filter(p => typeof p?.resolve === 'function'),+ () => contributions.map(c => c.data as ComposerMicroActionProvider).filter(p => typeof p?.resolve === 'function'),[contributions])}diff --git a/apps/desktop/src/app/chat/composer/controls.tsx b/apps/desktop/src/app/chat/composer/controls.tsxindex 7c1a90df4de..06a3869894f 100644--- a/apps/desktop/src/app/chat/composer/controls.tsx+++ b/apps/desktop/src/app/chat/composer/controls.tsx@@ -5,7 +5,18 @@ import { Codicon } from '@/components/ui/codicon'import { Tip, TipKeybindLabel } from '@/components/ui/tooltip'import { useI18n } from '@/i18n'import { triggerHaptic } from '@/lib/haptics'-import { AudioLines, Ear, EarOff, iconSize, Layers3, Loader2, Square, SteeringWheel, Volume2, VolumeX } from '@/lib/icons'+import {+ AudioLines,+ Ear,+ EarOff,+ iconSize,+ Layers3,+ Loader2,+ Square,+ SteeringWheel,+ Volume2,+ VolumeX+} from '@/lib/icons'import { cn } from '@/lib/utils'import { $wakeWord, toggleWakeWord } from '@/store/wake-word'@@ -316,11 +327,13 @@ function WakeWordButton({ disabled, pausedForVoice = false }: { disabled: booleaconst wake = useStore($wakeWord)const phrase = wake.phrase || 'hey hermes'+const label = pausedForVoice? c.wakeWordPausedVoice(phrase): wake.listening? c.wakeWordListening(phrase): c.wakeWordOff(phrase)+const tooltip = !pausedForVoice && wake.notice ? `${label} — ${wake.notice}` : labelreturn (diff --git a/apps/desktop/src/app/chat/composer/hooks/use-composer-voice.ts b/apps/desktop/src/app/chat/composer/hooks/use-composer-voice.tsindex e25a6bfc8ed..5184232f87b 100644--- a/apps/desktop/src/app/chat/composer/hooks/use-composer-voice.ts+++ b/apps/desktop/src/app/chat/composer/hooks/use-composer-voice.ts@@ -186,6 +186,7 @@ export function useComposerVoice({// it guards resumeWakeIfPaused from resuming a detector another surface owns.const pauseWakeForVoice = useCallback(() => {wakePausedRef.current = true+const barrier = (async () => {try {await $gateway.get()?.request('wake.pause', {})@@ -193,6 +194,7 @@ export function useComposerVoice({// No wake listener / older backend — nothing held the mic.}})()+wakePauseBarrierRef.current = barrierreturn barrierdiff --git a/apps/desktop/src/app/contrib/wiring.tsx b/apps/desktop/src/app/contrib/wiring.tsxindex 0676c2da77d..190e4b4acb5 100644--- a/apps/desktop/src/app/contrib/wiring.tsx+++ b/apps/desktop/src/app/contrib/wiring.tsx@@ -35,7 +35,15 @@ import { requestVoiceConversationStart } from '@/store/composer'import { setCronFocusJobId } from '@/store/cron'import { $pinnedSessionIds, pinSession, restoreWorktree, unpinSession } from '@/store/layout'import { $previewTarget } from '@/store/preview'-import { $activeGatewayProfile, $freshSessionRequest, $profileScope, ensureGatewayProfile, newSessionInProfile, normalizeProfileKey, refreshActiveProfile } from '@/store/profile'+import {+ $activeGatewayProfile,+ $freshSessionRequest,+ $profileScope,+ ensureGatewayProfile,+ newSessionInProfile,+ normalizeProfileKey,+ refreshActiveProfile+} from '@/store/profile'import { $startWorkSessionRequest, followActiveSessionCwd } from '@/store/projects'import {$activeSessionId,@@ -667,9 +675,7 @@ export function ContribWiring({ children }: { children: ReactNode }) {emitGatewayEvent(event)if (event.type === 'wake.detected') {- const payload = event.payload as- | { profile?: null | string; start_new_session?: boolean }- | undefined+ const payload = event.payload as { profile?: null | string; start_new_session?: boolean } | undefined// Audible confirmation that the wake registered, before voice capture// starts. Gated by the shared sound-mute toggle.diff --git a/apps/desktop/src/app/right-sidebar/terminal/clipboard.test.ts b/apps/desktop/src/app/right-sidebar/terminal/clipboard.test.tsindex b39e3f9e450..51ce6cb2d05 100644--- a/apps/desktop/src/app/right-sidebar/terminal/clipboard.test.ts+++ b/apps/desktop/src/app/right-sidebar/terminal/clipboard.test.ts@@ -29,7 +29,9 @@ describe('terminalClipboardIntent', () => {})it('claims paste regardless of selection, since paste has nothing to do with one', () => {- expect(terminalClipboardIntent(key({ key: 'v', metaKey: true }), { hasSelection: false, isMac: true })).toBe('paste')+ expect(terminalClipboardIntent(key({ key: 'v', metaKey: true }), { hasSelection: false, isMac: true })).toBe(+ 'paste'+ )expect(terminalClipboardIntent(key({ ctrlKey: true, key: 'v', shiftKey: true }), { hasSelection: false, isMac: false })).toBe('paste')diff --git a/apps/desktop/src/app/right-sidebar/terminal/use-terminal-session.ts b/apps/desktop/src/app/right-sidebar/terminal/use-terminal-session.tsindex 170823ad4a9..09cd815413a 100644--- a/apps/desktop/src/app/right-sidebar/terminal/use-terminal-session.ts+++ b/apps/desktop/src/app/right-sidebar/terminal/use-terminal-session.ts@@ -832,7 +832,6 @@ export function useTerminalSession({return false}-void (async () => {const text = (await window.hermesDesktop?.readClipboard?.()) ?? ''diff --git a/apps/desktop/src/lib/session-source.test.ts b/apps/desktop/src/lib/session-source.test.tsindex 2a5de830f90..46dcef941df 100644--- a/apps/desktop/src/lib/session-source.test.ts+++ b/apps/desktop/src/lib/session-source.test.ts@@ -1,10 +1,6 @@import { describe, expect, it } from 'vitest'-import {- isMessagingSource,- MESSAGING_SESSION_SOURCE_IDS,- sessionSourceSearchTerms-} from './session-source'+import { isMessagingSource, MESSAGING_SESSION_SOURCE_IDS, sessionSourceSearchTerms } from './session-source'// Regression guard for #46761 / PR #47395: Photon (iMessage) must keep its own// sidebar section. refreshMessagingSessions() filters rows throughdiff --git a/apps/desktop/src/lib/voice-playback.ts b/apps/desktop/src/lib/voice-playback.tsindex 2a15cd3d26b..48a51d37081 100644--- a/apps/desktop/src/lib/voice-playback.ts+++ b/apps/desktop/src/lib/voice-playback.ts@@ -273,6 +273,7 @@ function openSpeechStream(wsUrl: string, options: VoicePlaybackOptions): SpeechSif (frame.type === 'start') {streamRate = frame.sample_rate || 24_000context = new AudioContext()+// Autoplay policy can hand back a suspended context when playback wasn't// started by a user gesture (e.g. a wake-word-started voice turn). Resume// it so the first reply is audible instead of silently buffering. Electron@@ -281,6 +282,7 @@ function openSpeechStream(wsUrl: string, options: VoicePlaybackOptions): SpeechSif (context.state === 'suspended') {void context.resume().catch(() => undefined)}+nextStartAt = 0} else if (frame.type === 'end') {finishWhenDrained()diff --git a/apps/desktop/src/lib/wake-sound.test.ts b/apps/desktop/src/lib/wake-sound.test.tsindex 354eff8e44f..0da3f3e3049 100644--- a/apps/desktop/src/lib/wake-sound.test.ts+++ b/apps/desktop/src/lib/wake-sound.test.ts@@ -63,6 +63,7 @@ describe('playWakeSound', () => {expect(oscillators).toHaveLength(2)expect(oscillators[0].frequency.setValueAtTime).toHaveBeenCalledWith(783.99, expect.any(Number))expect(oscillators[1].frequency.setValueAtTime).toHaveBeenCalledWith(1046.5, expect.any(Number))+for (const osc of oscillators) {expect(osc.start).toHaveBeenCalled()expect(osc.stop).toHaveBeenCalled()diff --git a/apps/desktop/src/store/wake-word.test.ts b/apps/desktop/src/store/wake-word.test.tsindex f69321e3f5b..1d09a92eef2 100644--- a/apps/desktop/src/store/wake-word.test.ts+++ b/apps/desktop/src/store/wake-word.test.ts@@ -13,7 +13,9 @@ import {} from './wake-word'const requester = (impl: (method: string, params?: Record<string, unknown>) => unknown) =>- vi.fn(async (method: string, params: Record<string, unknown> = {}) => impl(method, params)) as unknown as WakeRequester+ vi.fn(async (method: string, params: Record<string, unknown> = {}) =>+ impl(method, params)+ ) as unknown as WakeRequesterbeforeEach(() => {resetWakeWordState()@@ -108,9 +110,7 @@ describe('toggleWakeWord', () => {it('marks the feature unavailable when start refuses with reason unavailable', async () => {applyWakeStatus({ available: true, listening: false, phrase: 'hey hermes' })- await toggleWakeWord(- requester(() => ({ hint: 'Set PORCUPINE_ACCESS_KEY', reason: 'unavailable', started: false }))- )+ await toggleWakeWord(requester(() => ({ hint: 'Set PORCUPINE_ACCESS_KEY', reason: 'unavailable', started: false })))const state = $wakeWord.get()expect(state.available).toBe(false)diff --git a/ui-tui/src/gatewayTypes.ts b/ui-tui/src/gatewayTypes.tsindex 954190d028a..4a8184dc3cd 100644--- a/ui-tui/src/gatewayTypes.ts+++ b/ui-tui/src/gatewayTypes.ts@@ -621,7 +621,11 @@ export type GatewayEvent =}| { payload?: { state?: 'idle' | 'listening' | 'transcribing' }; session_id?: string; type: 'voice.status' }| { payload?: { no_speech_limit?: boolean; text?: string }; session_id?: string; type: 'voice.transcript' }- | { payload?: { phrase?: string; profile?: null | string; start_new_session?: boolean }; session_id?: string; type: 'wake.detected' }+ | {+ payload?: { phrase?: string; profile?: null | string; start_new_session?: boolean }+ session_id?: string+ type: 'wake.detected'+ }| { payload?: { reason?: string }; session_id?: string; type: 'dashboard.new_session_requested' }| { payload: { line: string }; session_id?: string; type: 'gateway.stderr' }| {