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.

feat(chat): show "Summarizing…" indicator during follow-up context build (#4368)

LearningCircuit090fdc590f50
diff --git a/changelog.d/+chat-followup-summarizing-indicator.feature.md b/changelog.d/+chat-followup-summarizing-indicator.feature.md
new file mode 100644
index 0000000000..35fed1f55d
--- /dev/null
+++ b/changelog.d/+chat-followup-summarizing-indicator.feature.md
@@ -0,0 +1 @@
+**"Summarizing…" indicator for Chat follow-ups** — When you send a follow-up question, the thinking indicator now reads "Summarizing previous conversation…" while the earlier turns are condensed into context for the new research, instead of showing blank dots. It clears the moment research starts streaming its progress.
diff --git a/src/local_deep_research/web/static/js/components/chat.js b/src/local_deep_research/web/static/js/components/chat.js
index c0b4def799..01bea5dbc5 100644
--- a/src/local_deep_research/web/static/js/components/chat.js
+++ b/src/local_deep_research/web/static/js/components/chat.js
@@ -404,11 +404,21 @@
hideWelcomeScreen();
+ // A follow-up (the conversation already has an assistant reply) builds
+ // prior-turn context — an LLM summary by default — during THIS request,
+ // before research is dispatched. On slow models that's a multi-second
+ // wait, so label the indicator instead of showing blank dots.
+ const isFollowUp = !!chatMessages.querySelector(
+ '.ldr-chat-message-assistant',
+ );
+
// Add user message to UI
addMessageToUI('user', content);
// Show thinking indicator
- const thinkingEl = showThinking();
+ const thinkingEl = showThinking(
+ isFollowUp ? 'Summarizing previous conversation…' : null,
+ );
try {
// Create session if needed. Capture the returned id locally so a
@@ -430,6 +440,10 @@
currentResearchId = data.research_id;
completionHandled = false; // Reset for new research
suspendedHandled = false;
+ // Prior-context build is finished now that research is
+ // dispatched; clear the "Summarizing…" label so the live
+ // reasoning preview / progress steps own the indicator.
+ setThinkingLabel(thinkingEl, null);
showProgress();
subscribeToResearch(data.research_id, thinkingEl);
} else {
@@ -894,13 +908,29 @@
}
/**
- * Show thinking indicator.
+ * Set (or clear) the thinking indicator's status label. Reuses the same
+ * `.ldr-chat-thinking-text` slot the live reasoning preview later writes
+ * to. Passing a falsy text hides the slot.
+ */
+ function setThinkingLabel(thinkingEl, text) {
+ if (!thinkingEl) return;
+ const el = thinkingEl.querySelector('.ldr-chat-thinking-text');
+ if (!el) return;
+ el.textContent = text || '';
+ el.hidden = !text;
+ }
+
+ /**
+ * Show thinking indicator, optionally with a status label (e.g.
+ * "Summarizing previous conversation…" while a follow-up's prior-context
+ * is being built during the send request).
*/
- function showThinking() {
+ function showThinking(label = null) {
const template = document.getElementById('thinking-template');
if (!template) return null;
const thinkingEl = template.content.cloneNode(true).firstElementChild;
+ setThinkingLabel(thinkingEl, label);
chatMessages.appendChild(thinkingEl);
// Always scroll — user just sent a message and expects to see feedback.
scrollToBottom(true);