Simplify convai-widget-core session config after connection type inference
[!NOTE] I'm not actually committed to making this change.
Summary
After #579 (infer default connection type from conversation mode), convai-widget-core can simplify its session config construction.
Currently session-config.tsx branches on isWebRTC to explicitly set connectionType when using agentId.
https://github.com/elevenlabs/packages/blob/d76ae920ffedcc460228dfb87d693eaacc8d7892/packages/convai-widget-core/src/contexts/session-config.tsx#L99-L113
Since the client now infers the default from the conversation mode (voice → "webrtc", text-only → "websocket"), this branching can be removed — connectionType can be omitted entirely, and the client will infer the correct default.
Changes
- Remove the
isWebRTCconditional in theagentIdbranch ofsession-config.tsx - Potentially remove the
useWebRTCEnabledsignal if no longer needed elsewhere
🤖 Generated with Claude Code
I'm not actually committed to making this change. @kamilk-11 / @kalvin807 what do you think?
@kraenhansen Logical change to me, but it might be a very big change. From the serverside code + current useRTC logic, we are running websocket in both voice and text mode -> this change would be equivalent to migrating the widget to use WebRTC.