From c23e22eefe39ebee363deff9c8c04bffa12a42ac Mon Sep 17 00:00:00 2001 From: Meleki Date: Wed, 1 Apr 2026 10:24:44 +0200 Subject: [PATCH] fix: Auto-Context Markdown-Rendering in History-Ansicht Co-Authored-By: Claude Opus 4.6 --- wwwroot/css/chat.css | 2 -- wwwroot/js/history.js | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/wwwroot/css/chat.css b/wwwroot/css/chat.css index e16177b..951f0a7 100644 --- a/wwwroot/css/chat.css +++ b/wwwroot/css/chat.css @@ -1144,8 +1144,6 @@ .auto-context-box .auto-context-content { padding: var(--box-padding); - font-size: 0.85em; - opacity: 0.85; } /* Review Bubbles */ diff --git a/wwwroot/js/history.js b/wwwroot/js/history.js index b0244b6..63a3d2b 100644 --- a/wwwroot/js/history.js +++ b/wwwroot/js/history.js @@ -267,8 +267,8 @@ function _renderMessagesIntoFragment(fragment, msgs, imageMessageIds, opts) { acHeader.className = 'tool-box-header clickable'; acHeader.innerHTML = 'Auto-Context'; 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);