This commit is contained in:
@@ -189,8 +189,10 @@ async function sendChatMessage(text, options = {}) {
|
||||
await loadToday();
|
||||
activateTab("today-panel");
|
||||
}
|
||||
} catch {
|
||||
appendMessage("assistant", "Чат сейчас недоступен. Сообщение не принято runtime.");
|
||||
} catch (error) {
|
||||
const raw = String(error && error.message ? error.message : "").trim();
|
||||
const detail = raw ? `: ${raw}` : "";
|
||||
appendMessage("assistant", `Не могу отправить сообщение${detail}. Попробуйте ещё раз.`);
|
||||
} finally {
|
||||
sendButton.disabled = false;
|
||||
messageInput.focus();
|
||||
|
||||
Reference in New Issue
Block a user