Skip to content

The agent that grows with you

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

hermes-seaeye[bot]2f21d29f4446
diff --git a/apps/desktop/src/app/chat/composer/hooks/use-voice-live-conversation.ts b/apps/desktop/src/app/chat/composer/hooks/use-voice-live-conversation.ts
index c8db81ddb2b..f9677709a6a 100644
--- a/apps/desktop/src/app/chat/composer/hooks/use-voice-live-conversation.ts
+++ b/apps/desktop/src/app/chat/composer/hooks/use-voice-live-conversation.ts
@@ -116,6 +116,7 @@ export function useVoiceLiveConversation({
const spokenResponseIdRef = useRef<null | string>(null)
const lastToolLabelRef = useRef<null | string>(null)
const wasEnabledRef = useRef(enabled)
+
const latest = useRef({
activeToolLabel,
beforeMicOpen,
@@ -127,6 +128,7 @@ export function useVoiceLiveConversation({
consumePendingResponse,
seedHistory
})
+
latest.current = {
activeToolLabel,
beforeMicOpen,