From a651b9c086a9843ef69783e6fbae3f289c8220f9 Mon Sep 17 00:00:00 2001 From: didar Date: Sat, 29 Aug 2026 01:53:58 +0500 Subject: [PATCH] fix: add name correction action in _voice_downstream_name_update function --- services/ai_orchestrator_service/voice.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/services/ai_orchestrator_service/voice.py b/services/ai_orchestrator_service/voice.py index 83657b1..e9ecccc 100644 --- a/services/ai_orchestrator_service/voice.py +++ b/services/ai_orchestrator_service/voice.py @@ -746,7 +746,13 @@ def _voice_downstream_name_update( action = "provide" if not name_value else "confirm" candidate = candidate or name_value elif status == "name_obtained": - pass + if ( + candidate + and candidate_key + and candidate_key != current_key + and _voice_has_name_correction(transcript_text) + ): + action = "correct" else: if explicit_candidate: action = "provide"