fix(multimodal): reconnect websocket with fresh auth
This commit is contained in:
@@ -83,6 +83,20 @@ if ! rg -n '#include "esp_afe_aec.h"' components/platform/src/multimodal/audio_p
|
||||
! rg -n 'afe_aec_process\(' components/platform/src/multimodal/audio_pipeline/audio_pipeline_runtime_impl.c >/dev/null 2>&1; then
|
||||
fail "Platform must own the synchronous ESP-SR AEC implementation"
|
||||
fi
|
||||
if rg -n '\.disable_auto_reconnect = false|\.enable_close_reconnect = true' \
|
||||
components/platform/src/multimodal/transport_ws/transport_ws_workers_impl.c >/dev/null 2>&1 ||
|
||||
! rg -n '\.disable_auto_reconnect = true' \
|
||||
components/platform/src/multimodal/transport_ws/transport_ws_workers_impl.c >/dev/null 2>&1 ||
|
||||
! rg -n 'reason == CONTROL_PLANE_TRANSPORT_LOSS_WS_ERROR' \
|
||||
components/control_plane/src/multimodal/control_plane_multimodal_session_service.c >/dev/null 2>&1 ||
|
||||
! rg -n 'reason == CONTROL_PLANE_TRANSPORT_LOSS_WS_DISCONNECTED' \
|
||||
components/control_plane/src/multimodal/control_plane_multimodal_session_service.c >/dev/null 2>&1 ||
|
||||
! rg -n 'Schedule fresh-auth reconnect after transport (error|disconnect)' \
|
||||
components/control_plane/src/multimodal/control_plane_multimodal_runtime.c >/dev/null 2>&1 ||
|
||||
! rg -n 'if \(!ws_started\)' \
|
||||
components/control_plane/src/runtime/control_plane_runtime_workers.c >/dev/null 2>&1; then
|
||||
fail "WebSocket recovery must retire stale credentials and reconnect through fresh control-plane authentication"
|
||||
fi
|
||||
if rg -n 'esp_afe_aec\.h|afe_aec_process\(' \
|
||||
components/domain/{include,internal,src} \
|
||||
components/control_plane/{include,internal,src} \
|
||||
|
||||
Reference in New Issue
Block a user