~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.
Python academiaanthropicarxivbravedeep-researchencryptionhome-automationhomeserverlocallocal-deep-researchlocal-llmmistralollamaopenaipubmedresearchresearch-toolretrieval-augmented-generationsearxngself-hosted
fix: display newest logs at top of log panel (#1752)
LearningCircuit5bf2b2f4db3c
diff --git a/src/local_deep_research/web/static/js/components/logpanel.js b/src/local_deep_research/web/static/js/components/logpanel.jsindex 1645f61de6..dc47c55949 100644--- a/src/local_deep_research/web/static/js/components/logpanel.js+++ b/src/local_deep_research/web/static/js/components/logpanel.js@@ -346,7 +346,7 @@// enabled to make that clear.if (window._logPanelState.autoscroll) {autoscrollButton.classList.add('ldr-selected');- // Immediately scroll to top (newest logs are at top with column-reverse).+ // Immediately scroll to the top of the panel (newest logs are at top).consoleLogContainer.scrollTop = 0;} else {autoscrollButton.classList.remove('ldr-selected');@@ -537,9 +537,9 @@// Convert map back to arrayconst uniqueLogs = Array.from(uniqueLogsMap.values());- // Sort logs by timestamp (oldest first)+ // Sort logs by timestamp (newest first)const sortedLogs = uniqueLogs.sort((a, b) => {- return new Date(a.time) - new Date(b.time);+ return new Date(b.time) - new Date(a.time);});SafeLogger.log(`Displaying ${sortedLogs.length} logs after deduplication (from original ${allLogs.length})`);@@ -853,8 +853,8 @@// Don't override the badge class - the styling comes from the parent's log-type classentry.querySelector('.ldr-log-message').textContent = message;- // Add to container (at the end for oldest first)- consoleLogContainer.appendChild(entry);+ // Add to container (at the beginning for newest first)+ consoleLogContainer.insertBefore(entry, consoleLogContainer.firstChild);} else {// Create a simple log entry without templateconst entry = document.createElement('div');@@ -874,8 +874,8 @@<span class="ldr-log-message">${escapeHtml(message)}</span>`;- // Add to container (at the end for oldest first)- consoleLogContainer.appendChild(entry);+ // Add to container (at the beginning for newest first)+ consoleLogContainer.insertBefore(entry, consoleLogContainer.firstChild);}// Check if the entry should be visible based on current filter@@ -883,7 +883,7 @@const shouldShow = checkLogVisibility(logLevel.toLowerCase(), currentFilter);// Apply visibility based on the current filter- const newEntry = consoleLogContainer.lastElementChild;+ const newEntry = consoleLogContainer.firstElementChild;if (newEntry) {newEntry.style.display = shouldShow ? '' : 'none';}@@ -896,7 +896,7 @@// No need to scroll when loading all logs// Scroll will be handled after all logs are loadedif (incrementCounter && window._logPanelState.autoscroll) {- // Auto-scroll to newest log (at the top with column-reverse)+ // Auto-scroll to newest log (at the top)setTimeout(() => {consoleLogContainer.scrollTop = 0;}, 0);