fix: Handling request error on provider error

This commit is contained in:
Petr Mironychev
2025-10-10 10:53:06 +02:00
parent d2b28093a6
commit b4e8bdf6da
5 changed files with 131 additions and 0 deletions

View File

@ -263,6 +263,20 @@ ChatRootView {
scrollToBottom()
}
ErrorToast {
id: errorToast
z: 1000
}
Connections {
target: root
function onLastErrorMessageChanged() {
if (root.lastErrorMessage.length > 0) {
errorToast.show(root.lastErrorMessage)
}
}
}
Component.onCompleted: {
messageInput.forceActiveFocus()
}