The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
test(voiceNotes): cover unwrapping the core Outcome envelope when reading note audio
Steven Enamakelb4ec79e63f18
diff --git a/app/src/features/voiceNotes/voiceNoteApi.test.ts b/app/src/features/voiceNotes/voiceNoteApi.test.tsindex 752fdda086..62aeceb39b 100644--- a/app/src/features/voiceNotes/voiceNoteApi.test.ts+++ b/app/src/features/voiceNotes/voiceNoteApi.test.ts@@ -82,6 +82,16 @@ describe('voiceNoteApi', () => {await expect(readVoiceNote('gone')).resolves.toBeNull();});+ it('unwraps the core Outcome envelope when reading persisted note audio', async () => {+ rpc.callCoreRpc.mockResolvedValue({+ logs: ['voice note read'],+ result: { note_id: 'n', audio_base64: 'AQID', mime: 'audio/wav' },+ });+ const blob = await readVoiceNote('n');+ expect(blob?.type).toBe('audio/wav');+ expect(blob?.size).toBe(3);+ });+it('transcribes with the recording extension and prefers cleaned text', async () => {voice.openhumanVoiceTranscribeBytes.mockResolvedValue({text: ' hello ',