fix: address critical review issues in voice overlay

- Clean up voice sessions on WebSocket disconnect (prevents timer leak)
- Guard against missing LLM config in voice_stop send path
- Return overlay to idle on goal_failed (prevents stuck UI)
This commit is contained in:
Sanju Sivalingam
2026-02-20 02:16:39 +05:30
parent 1f47a990cc
commit a42b5b08f4
2 changed files with 9 additions and 1 deletions

View File

@@ -79,6 +79,7 @@ class CommandRouter(
}
"goal_failed" -> {
currentGoalStatus.value = GoalStatus.Failed
ConnectionService.instance?.overlay?.returnToIdle()
Log.i(TAG, "Goal failed: ${msg.message}")
}