()
| 395 | } |
| 396 | |
| 397 | function hideLoadingIndicator() { |
| 398 | if (!currentAssistantMsg) return; |
| 399 | const indicator = currentAssistantMsg.querySelector(".loading-indicator"); |
| 400 | if (indicator) { |
| 401 | indicator.style.display = "none"; |
| 402 | } |
| 403 | } |
| 404 | |
| 405 | function ensureAssistantMessageForEvent(event) { |
| 406 | if (currentAssistantMsg) return; |