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
@@ -1144,8 +1144,6 @@
|
|||||||
|
|
||||||
.auto-context-box .auto-context-content {
|
.auto-context-box .auto-context-content {
|
||||||
padding: var(--box-padding);
|
padding: var(--box-padding);
|
||||||
font-size: 0.85em;
|
|
||||||
opacity: 0.85;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Review Bubbles */
|
/* Review Bubbles */
|
||||||
|
|||||||
@@ -267,8 +267,8 @@ function _renderMessagesIntoFragment(fragment, msgs, imageMessageIds, opts) {
|
|||||||
acHeader.className = 'tool-box-header clickable';
|
acHeader.className = 'tool-box-header clickable';
|
||||||
acHeader.innerHTML = '<span class="tool-name">Auto-Context</span>';
|
acHeader.innerHTML = '<span class="tool-name">Auto-Context</span>';
|
||||||
var acContent = document.createElement('div');
|
var acContent = document.createElement('div');
|
||||||
acContent.className = 'auto-context-content';
|
acContent.className = 'auto-context-content markdown';
|
||||||
acContent.textContent = msg.content.replace(/<\/?recalled_context>/g, '').trim();
|
acContent.innerHTML = renderMarkdown(msg.content.replace(/<\/?recalled_context>/g, '').trim());
|
||||||
acContent.hidden = true;
|
acContent.hidden = true;
|
||||||
acHeader.addEventListener('click', function() { acContent.hidden = !acContent.hidden; });
|
acHeader.addEventListener('click', function() { acContent.hidden = !acContent.hidden; });
|
||||||
acDiv.appendChild(acHeader);
|
acDiv.appendChild(acHeader);
|
||||||
|
|||||||
Reference in new issue
Block a user