fix(multimodal): reconnect websocket with fresh auth

This commit is contained in:
chenjintao
2026-08-12 10:30:47 +08:00
parent 7a4699ea68
commit 273550b28b
5 changed files with 31 additions and 3 deletions
+14
View File
@@ -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} \