fix: add name correction action in _voice_downstream_name_update function
deploy / deploy (push) Successful in 30s

This commit is contained in:
2026-08-29 01:53:58 +05:00
parent 78007dae38
commit a651b9c086
+7 -1
View File
@@ -746,7 +746,13 @@ def _voice_downstream_name_update(
action = "provide" if not name_value else "confirm" action = "provide" if not name_value else "confirm"
candidate = candidate or name_value candidate = candidate or name_value
elif status == "name_obtained": 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: else:
if explicit_candidate: if explicit_candidate:
action = "provide" action = "provide"