Skip to content

~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.

Fix news aggregation limited information and mark as read issues

LearningCircuitec2253120483
diff --git a/src/local_deep_research/web/static/js/pages/news.js b/src/local_deep_research/web/static/js/pages/news.js
index 7376658c65..69597990cc 100644
--- a/src/local_deep_research/web/static/js/pages/news.js
+++ b/src/local_deep_research/web/static/js/pages/news.js
@@ -944,7 +944,7 @@ function renderNewsItems(searchQuery = null) {
</button>
</div>
<div class="action-buttons">
- <a href="${item.source_url || `/results/${item.research_id}`}" class="btn btn-primary btn-sm">
+ <a href="${item.source_url || `/results/${item.research_id}`}" class="btn btn-primary btn-sm" onclick="markAsReadOnClick('${escapeAttr(item.id)}')">
<i class="fas fa-file-alt"></i> View Full Report
</a>
<button class="btn btn-secondary btn-sm save-btn" onclick="toggleSaveItem('${escapeAttr(item.id)}')" title="${savedNewsIds.has(item.id) ? 'Remove from saved' : 'Save for later'}">
@@ -2570,6 +2570,16 @@ function markAsRead(newsId) {
}
}
+function markAsReadOnClick(newsId) {
+ // Mark as read when clicking on the report link
+ if (!readNewsIds.has(newsId)) {
+ markAsRead(newsId);
+ saveReadStatus();
+ }
+ // Don't prevent default - let the link navigate
+ return true;
+}
+
function markAsUnread(newsId) {
readNewsIds.delete(newsId);
// Update UI immediately
@@ -3542,6 +3552,7 @@ window.applyCustomTemplate = applyCustomTemplate;
window.vote = vote;
window.saveItem = saveItem;
window.loadNewsTableQuery = loadNewsTableQuery;
+window.markAsReadOnClick = markAsReadOnClick;
window.hideQueryTemplate = hideQueryTemplate;
window.useQueryTemplate = useQueryTemplate;
window.copyQueryTemplate = copyQueryTemplate;
diff --git a/src/local_deep_research/web/templates/pages/news-subscription-form.html b/src/local_deep_research/web/templates/pages/news-subscription-form.html
index db5f67b50c..e74c1c5449 100644
--- a/src/local_deep_research/web/templates/pages/news-subscription-form.html
+++ b/src/local_deep_research/web/templates/pages/news-subscription-form.html
@@ -196,7 +196,6 @@
<div class="mb-3">
<label for="subscription-strategy" class="form-label">Search Strategy</label>
<select class="form-select" id="subscription-strategy">
- <option value="news_aggregation" {% if (subscription and subscription.search_strategy == 'news_aggregation') or (not subscription and default_settings.search_strategy == 'news_aggregation') %}selected{% endif %}>News Aggregation (Optimized for news)</option>
<option value="source-based" {% if (subscription and subscription.search_strategy == 'source-based') or (not subscription and default_settings.search_strategy == 'source-based') %}selected{% endif %}>Source Based (Comprehensive research)</option>
<option value="focused-iteration" {% if (subscription and subscription.search_strategy == 'focused-iteration') or (not subscription and default_settings.search_strategy == 'focused-iteration') %}selected{% endif %}>Focused Iteration (Fast Q&A)</option>
</select>