The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix: pin consent_attestation on the Desktop client-direct TTS path
teknium1935eef50efed
diff --git a/apps/desktop/src/lib/voice-client-direct.test.ts b/apps/desktop/src/lib/voice-client-direct.test.tsindex 6109ef04421..fe499644150 100644--- a/apps/desktop/src/lib/voice-client-direct.test.ts+++ b/apps/desktop/src/lib/voice-client-direct.test.ts@@ -230,7 +230,10 @@ describe('synthesizeSpeechClientDirect', () => {const fetchMock = vi.fn(async () => new Response(bytes, { status: 200 }))vi.stubGlobal('fetch', fetchMock)- const audio = await synthesizeSpeechClientDirect(openaiTts, 'Hello there.')+ const audio = await synthesizeSpeechClientDirect(+ { ...openaiTts, extra_body: { consent_attestation: 'I own this voice' } },+ 'Hello there.'+ )expect(new Uint8Array(audio)).toEqual(new Uint8Array([1, 2, 3]))@@ -242,6 +245,8 @@ describe('synthesizeSpeechClientDirect', () => {expect(body.voice).toBe('nova')expect(body.input).toBe('Hello there.')expect(body.speed).toBeUndefined()+ // Server-resolved tts.openai extras (consent_attestation for cloned voices) reach the wire.+ expect(body.consent_attestation).toBe('I own this voice')})it('speaks the elevenlabs tts shape with the voice in the path', async () => {diff --git a/tests/tools/test_voice_client_config.py b/tests/tools/test_voice_client_config.pyindex ac9a0d46748..fd56cf99e0a 100644--- a/tests/tools/test_voice_client_config.py+++ b/tests/tools/test_voice_client_config.py@@ -139,6 +139,12 @@ def test_edge_tts_relays_openai_goes_direct(voice_home, monkeypatch):assert tts["api_key"] == "sk_direct789"assert tts["voice"] == "nova"assert tts["model"]+ # Unset tts.openai extras stay off the wire; set ones ride the direct config verbatim.+ assert tts["extra_body"] == {}++ voice_home({"tts": {"provider": "openai",+ "openai": {"voice": "nova", "consent_attestation": "I own this voice"}}})+ assert _resolve()["tts"]["extra_body"] == {"consent_attestation": "I own this voice"}def test_elevenlabs_tts_direct_carries_voice_and_model(voice_home, monkeypatch):