(evt)
| 699 | |
| 700 | // ---- Compact Summary ---- |
| 701 | function renderCompactSummary(evt) { |
| 702 | hideCmdOverlay(); |
| 703 | $('input-area').classList.remove('waiting'); |
| 704 | if (S.waiting) setWaiting(false, 'compact_summary'); |
| 705 | |
| 706 | closeGroup(); |
| 707 | S.messageMap.clear(); |
| 708 | S.toolMap.clear(); |
| 709 | S.currentGroup = null; |
| 710 | S.currentGroupCount = 0; |
| 711 | $msgs.innerHTML = ''; |
| 712 | |
| 713 | const el = document.createElement('div'); |
| 714 | el.className = 'compact-divider'; |
| 715 | el.innerHTML = ` |
| 716 | <div class="compact-line"></div> |
| 717 | <div class="compact-badge"> |
| 718 | <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M21 12a9 9 0 01-9 9m9-9a9 9 0 00-9-9m9 9H3m9 9a9 9 0 01-9-9m9 9c1.66 0 3-4.03 3-9s-1.34-9-3-9m0 18c-1.66 0-3-4.03-3-9s1.34-9 3-9"/></svg> |
| 719 | <span>历史对话已压缩</span> |
| 720 | </div> |
| 721 | <div class="compact-line"></div> |
| 722 | `; |
| 723 | $msgs.appendChild(el); |
| 724 | } |
| 725 | |
| 726 | // ---- Assistant ---- |
| 727 | function renderAssistant(evt) { |
no test coverage detected