fix: Auto-Context Markdown-Rendering in History-Ansicht
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
2ac0078960
commit
c23e22eefe
2 files changed
+2
-4
No files matched your search
@@ -267,8 +267,8 @@ function _renderMessagesIntoFragment(fragment, msgs, imageMessageIds, opts) {
|
||||
acHeader.className = 'tool-box-header clickable';
|
||||
acHeader.innerHTML = '<span class="tool-name">Auto-Context</span>';
|
||||
var acContent = document.createElement('div');
|
||||
acContent.className = 'auto-context-content';
|
||||
acContent.textContent = msg.content.replace(/<\/?recalled_context>/g, '').trim();
|
||||
acContent.className = 'auto-context-content markdown';
|
||||
acContent.innerHTML = renderMarkdown(msg.content.replace(/<\/?recalled_context>/g, '').trim());
|
||||
acContent.hidden = true;
|
||||
acHeader.addEventListener('click', function() { acContent.hidden = !acContent.hidden; });
|
||||
acDiv.appendChild(acHeader);
|
||||
|
||||
Reference in new issue
Block a user