()
| 370 | } |
| 371 | |
| 372 | function handleDone() { |
| 373 | let fullText = ""; |
| 374 | if (currentAssistantMsg) { |
| 375 | const blocks = currentAssistantMsg.querySelectorAll(".text-block"); |
| 376 | blocks.forEach((b) => { |
| 377 | fullText += b.dataset.mdContent + "\n"; |
| 378 | }); |
| 379 | } |
| 380 | chatHistory.push({ role: "assistant", content: fullText }); |
| 381 | enableInput(); |
| 382 | } |
| 383 | |
| 384 | function showLoadingIndicator() { |
| 385 | if (!currentAssistantMsg) return; |
no test coverage detected