Compare commits

...

2 commits

Author SHA1 Message Date
Bruno Deanoz
57cc69c999 remove accidentally committed file 2026-06-24 12:35:17 +02:00
Bruno Deanoz
e5690b2caa fix Live Call: show error details instead of infinite "Verbinde..."
Error events from the WS server were silently swallowed — the onError
handler was empty and provider_error didn't trigger endCall. Now:
errors display in the overlay subtitle and loadError banner, and
provider_error is treated as terminal (ends the call).
2026-06-24 12:34:59 +02:00
2 changed files with 3 additions and 2 deletions

View file

@ -1087,7 +1087,7 @@ class ChatScreenViewModel(
svc.onError = { code, message ->
viewModelScope.launch {
// error handled by LiveCallOverlay
loadError = message ?: code
}
}

View file

@ -228,8 +228,9 @@ class LiveCallService : Service() {
}
is ServerEvent.Error -> {
_subtitle.value = event.message ?: event.code
onError?.invoke(event.code, event.message)
if (event.code in setOf("auth_failed", "restricted_model", "restricted_feature", "budget_exceeded", "concurrent_limit")) {
if (event.code in setOf("auth_failed", "restricted_model", "restricted_feature", "budget_exceeded", "concurrent_limit", "provider_error")) {
endCall()
}
}