hermes-agent/apps/desktop/src
Teknium eb8d88f33a
fix(desktop): await wake-word mic release before opening the voice-chat mic
'Clicked voice chat but it never starts listening' — a mic-device
contention race. Starting a voice conversation fires wake.pause (to free
the mic from the wake-word listener) and opens the conversation's own mic
in two separate effects, both keyed on voiceConversationActive with no
ordering between them. wake.pause was fire-and-forget, so getUserMedia
often raced the wake listener's stream teardown (which joins a reader
thread + closes the device in a finally). On Windows the capture device is
effectively single-owner, so opening it while wake still held it failed and
the conversation never started listening.

Wake-word-initiated starts don't hit this: the backend's _on_detect calls
pause_listening synchronously before emitting wake.detected, so the mic is
already free by the time the frontend opens it. Only the button/hotkey path
raced — matching the report.

Fix: pauseWakeForVoice now returns an awaitable barrier for the in-flight
wake.pause round-trip, and useVoiceConversation awaits a new beforeMicOpen
hook (wired to that barrier) right before handle.start(), re-checking
enabled/muted/busy/idle after the wait. No behavior change when the wake
word isn't running (barrier is null → no wait).

tsc + eslint clean, 39 desktop voice/wake tests green.
2026-07-28 12:16:54 -07:00
..
app fix(desktop): await wake-word mic release before opening the voice-chat mic 2026-07-28 12:16:54 -07:00
assets/tiers feat(desktop): Billing page revamp — current-plan card, in-app plans view, tier art (#68722) 2026-07-22 08:07:52 +05:30
components Merge pull request #73247 from NousResearch/bb/skill-chip-only 2026-07-28 04:22:07 -05:00
contrib feat(desktop): expose ctx.i18n on the plugin SDK 2026-07-19 00:05:08 -04:00
debug fmt(js): npm run fix on merge (#72532) 2026-07-27 07:16:27 +00:00
fonts
hooks perf(desktop): share one ResizeObserver instead of one per consumer 2026-07-26 19:56:55 -05:00
i18n fix(desktop): keep the wake-word ear mounted everywhere — paused only during voice chat 2026-07-28 07:59:34 -07:00
lib fix(desktop): speak the first reply of a wake-started voice session 2026-07-28 12:01:27 -07:00
plugins feat(desktop): plugin manager, runtime loader, and plugins settings 2026-07-13 17:57:53 -04:00
sdk feat(sdk): expose FloatingAnchor to plugins 2026-07-28 01:11:12 -05:00
store fix(desktop): the wake-word ear ALWAYS shows — never hide it 2026-07-28 07:59:34 -07:00
themes fix(themes): repaint the desktop on an in-place edit of the active skin 2026-07-22 15:07:03 -05:00
types Merge pull request #73172 from NousResearch/bb/featured-models 2026-07-28 04:09:46 -05:00
global.d.ts feat(desktop): make attachment data-URL size limit configurable (#73221) 2026-07-28 09:10:21 -04:00
hermes-cron-scope.test.ts fix(desktop): scope the cron jobs list to the active profile 2026-07-19 12:19:22 -07:00
hermes-parity.test.ts
hermes-profile-scope.test.ts
hermes.test.ts refactor(sidebar): drop session counts and the COUNT(*) that fed them 2026-07-26 19:36:08 -05:00
hermes.ts refactor(sidebar): drop session counts and the COUNT(*) that fed them 2026-07-26 19:36:08 -05:00
main.tsx feat(desktop): confirm before quitting with a turn in flight 2026-07-27 15:47:57 -05:00
styles.css Merge pull request #73220 from NousResearch/bb/subagent-runs 2026-07-28 03:22:43 -05:00
vite-env.d.ts
webhooks-rest.test.ts feat(desktop): add Webhooks page for subscription CRUD (#69687) 2026-07-24 14:06:10 -04:00