fix(chat): show visible error toast when no provider or model is selected

Sending a message without a provider/model selection failed silently:
only a console.warn was emitted and the UI gave no feedback. Surface a
toast (i18n key chat.chatInput.toast.noModelSelected, added to all 11
locales) so the user knows why the message was not sent.
This commit is contained in:
Rui Valdemar Santos
2026-08-17 15:46:30 +01:00
parent d9f1c0d44c
commit a43ee30b75
12 changed files with 12 additions and 0 deletions
+1
View File
@@ -2170,6 +2170,7 @@ export const dict: Record<I18nKey, string> = {
"chat.chatInput.toast.attachmentsTooLarge": "Вкладені файли завеликі для надсилання. Спробуйте зменшити кількість або розмір зображень.",
"chat.chatInput.toast.sendAttachmentsFailed": "Не вдалося надіслати вкладення. Спробуйте зменшити кількість файлів або зображень.",
"chat.chatInput.toast.messageSendFailed": "Не вдалося надіслати повідомлення. Вкладення відновлено.",
"chat.chatInput.toast.noModelSelected": "Виберіть постачальника та модель перед надсиланням.",
"chat.chatInput.toast.clipboardAttachFailed": "Не вдалося вкласти зображення з буфера обміну",
"chat.chatInput.toast.addedFileMentions": "Додано згадки файлів {count}",
"chat.chatInput.toast.attachFileFailed": "Не вдалося прикріпити файл",