mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-14 11:06:08 +00:00
* fix(deepgram): reject malformed and non-http(s) realtime base URL overrides * fix(deepgram): accept direct ws(s):// realtime base URL overrides Preserve released behavior: v2026.6.11 passes wss:// (and ws://) base URL overrides straight through to the WebSocket URL builder. The prior validator rejected every non-http(s) scheme, breaking custom Deepgram realtime proxies that use a direct wss:// endpoint. Accept ws:/wss: alongside http(s):, keep rejecting malformed and unrelated schemes, and preserve a direct ws(s): override's protocol/path/port through toDeepgramRealtimeWsUrl. * fix(deepgram): keep secure ws:// -> wss:// upgrade for realtime base URL A prior change preserved direct ws:/wss: overrides unchanged, which also stopped upgrading a plaintext ws:// override to wss://. That regressed the released behavior where every accepted non-http: scheme maps to wss:, so an existing ws:// endpoint would begin sending Deepgram realtime audio and provider auth over an unencrypted socket. Restore the release mapping (http: -> ws:, all others -> wss:), which still preserves a direct wss:// override and keeps the ws:// -> wss:// secure upgrade. * fix(deepgram): preserve custom websocket transport Co-authored-by: dwc1997 <du.wenchi@xydigit.com> * test(deepgram): use placeholder credential fixture * test(deepgram): clarify loopback callbacks --------- Co-authored-by: Peter Steinberger <steipete@gmail.com>