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(ui-tests): chat report-refactor test no longer closes the page without an LLM (shard fix) (#4680)

LearningCircuit84444bab08d0
diff --git a/tests/ui_tests/chat/test_chat_report_content_refactor.js b/tests/ui_tests/chat/test_chat_report_content_refactor.js
index 43ccba676f..df60ed8d29 100644
--- a/tests/ui_tests/chat/test_chat_report_content_refactor.js
+++ b/tests/ui_tests/chat/test_chat_report_content_refactor.js
@@ -361,7 +361,13 @@ async function run() {
PROGRESS_SHOT_INTERVAL_MS / 1000
}s while waiting...`
);
- stopProgressShots = startProgressShots(page, 'research');
+ // Only stream progress screenshots when an LLM is actually configured —
+ // without one there is no research to watch, and taking screenshots while
+ // the failing-research socket flow churns just adds load that helps close
+ // the page on the threading dev server.
+ if (HAS_LLM) {
+ stopProgressShots = startProgressShots(page, 'research');
+ }
try {
// Two completion signals:
@@ -402,7 +408,14 @@ async function run() {
}
return false;
},
- { timeout: TIMEOUTS.research, polling: 2000 },
+ // No LLM (e.g. the chat-lifecycle CI shard): research can never
+ // complete, so do NOT sit in the long research-wait. Sustaining the
+ // failing-research socket flow on the threading socket.io dev server
+ // for the full timeout destabilises and closes the page ("write()
+ // before start_response" / detached frame). Time out fast so the
+ // no-LLM skip path in the catch is taken right after the user
+ // message bubble renders.
+ { timeout: HAS_LLM ? TIMEOUTS.research : 100, polling: 500 },
STATUS_HINTS
);
responseAvailable = true;