优化Claude模型流式响应处理和思考过程展示

This commit is contained in:
Zylan
2025-03-04 18:46:49 +08:00
parent 67e6a1ef7a
commit 3d0c6e0480
8 changed files with 772 additions and 160 deletions

View File

@@ -77,7 +77,9 @@ class UIManager {
this.historyToggle.addEventListener('click', () => {
this.closeAllPanels();
this.historyPanel.classList.toggle('hidden');
window.renderHistory(); // Call global renderHistory function
if (window.app && typeof window.app.updateHistoryPanel === 'function') {
window.app.updateHistoryPanel();
}
});
this.closeHistory.addEventListener('click', () => {
@@ -111,7 +113,9 @@ class UIManager {
break;
case 'h':
this.historyPanel.classList.toggle('hidden');
window.renderHistory();
if (window.app && typeof window.app.updateHistoryPanel === 'function') {
window.app.updateHistoryPanel();
}
break;
}
} else if (e.key === 'Escape') {