cloudflare / cloudflare/agents
@cloudflare/voice: preserve active voice sessions across Worker deployments
Open
- Dominant language
- TypeScript
- Stars
- 5.6k
- Forks
- 711
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 53
Description
## Description
Deploying a Worker while an `@cloudflare/voice` session is active disconnects the browser and ends the voice
session.
## Reproduction
1. Create a voice agent using `withVoice(Agent, ...)`.
2. Connect with `VoiceClient`.
3. Start a voice call.
4. Run `wrangler deploy`.
5. The active voice session disconnects and cannot resume.
## Expected behavior
After deployment, the client reconnects to the same Durable Object/session and continues the call, preserving
relevant transcript and conversation state.
## Environment
- `@cloudflare/voice`: 0.2.1
- `agents`: 0.14.3
- `wrangler`: 4.98.0
Contributor guide
Assessment
This issue has not been assessed yet.