Skip to content

Commit 6f2abed

Browse files
authored
Update .changeset/preserve-audio-formats-on-agent-update.md
1 parent 9c3ad3b commit 6f2abed

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

.changeset/preserve-audio-formats-on-agent-update.md

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,3 @@
33
---
44

55
fix(realtime-session): preserve audio format & other session config fields on agent update
6-
7-
Previously, calling `updateAgent()` rebuilt the session config from a minimal subset of fields and
8-
omitted properties like `inputAudioFormat` / `outputAudioFormat`, `modalities`, `speed`, etc. This
9-
caused the server to fall back to defaults (e.g. `pcm16`), producing loud static in Twilio calls
10-
when a custom format (e.g. `g711_ulaw`) was required.
11-
12-
This change caches the last full session config and merges it when generating a new config so
13-
updates only override dynamic fields (instructions, voice, tools, tracing) while preserving the
14-
rest. A regression test was added to ensure audio formats persist across `updateAgent` calls.

0 commit comments

Comments
 (0)