From 119ad7ebc32837d48f1ea31a56ffdd213a101ba3 Mon Sep 17 00:00:00 2001 From: David Blanc Brioir Date: Thu, 15 Jan 2026 21:48:39 +0100 Subject: [PATCH] fix: Show RAG context sidebar when chunks are received The sidebar content was hidden by default (display: none) but displayContext() never made it visible when chunks arrived. Added sidebarContent.style.display = 'block' to show the context panel with all RAG chunks. Co-Authored-By: Claude Opus 4.5 --- generations/library_rag/templates/chat.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/generations/library_rag/templates/chat.html b/generations/library_rag/templates/chat.html index 334d5ee..3cb1476 100644 --- a/generations/library_rag/templates/chat.html +++ b/generations/library_rag/templates/chat.html @@ -1608,9 +1608,13 @@ if (!chunks || chunks.length === 0) { sidebarContent.innerHTML = ''; + sidebarContent.style.display = 'block'; return; } + // Show sidebar when we have chunks + sidebarContent.style.display = 'block'; + chunks.forEach((chunk, index) => { const chunkDiv = document.createElement('div'); chunkDiv.className = 'context-chunk';