fix: Auto-Context Markdown-Rendering in History-Ansicht

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
MelekiandClaude Opus 4.6 committed 2026-04-01 10:24:44 +02:00
1 parent 2ac0078960
commit c23e22eefe
2 files changed
+2 -4

No files matched your search

-2
View File
@@ -1144,8 +1144,6 @@
.auto-context-box .auto-context-content {
padding: var(--box-padding);
font-size: 0.85em;
opacity: 0.85;
}
/* Review Bubbles */
+2 -2
View File
@@ -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);