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(research-form): relax context_window step so Start Research submits (#4051)

LearningCircuit35290b2d1310
diff --git a/changelog.d/3909.bugfix.md b/changelog.d/3909.bugfix.md
new file mode 100644
index 0000000000..2af47bee70
--- /dev/null
+++ b/changelog.d/3909.bugfix.md
@@ -0,0 +1 @@
+**"Start Research" button no longer silently does nothing for users with a non-multiple-of-512 context window value.** The hidden `context_window` input on the research form had a `step="512"` constraint, so any stored value not aligned to that grid (e.g. `25000`) failed HTML5 form validation. Because the input lives inside a `display:none` container that is only shown for local providers, the browser could not focus the invalid field to report the error, so submission was aborted with no visible message and no log line — the click appeared to do nothing. Relaxed the step to `1` so any in-range integer is accepted; the value is still bounded by `min`/`max` and persisted unchanged.
diff --git a/src/local_deep_research/web/templates/pages/research.html b/src/local_deep_research/web/templates/pages/research.html
index 095324e2b8..fe1a96cac8 100644
--- a/src/local_deep_research/web/templates/pages/research.html
+++ b/src/local_deep_research/web/templates/pages/research.html
@@ -113,7 +113,7 @@
<!-- Context Window Size (for local providers, hidden by default) -->
<div class="ldr-form-group ldr-half" id="context_window_container" style="display: none;">
<label for="context_window">{{ tooltip("Context Window Size", "How much text the model can 'see' at once. Too small: model forgets earlier info. Too large: uses more RAM/VRAM. Only adjust if you see 'context exceeded' errors.") }}</label>
- <input type="number" id="context_window" name="context_window" class="ldr-form-control" min="512" max="131072" step="512" value="{{ settings.llm_local_context_window_size }}">
+ <input type="number" id="context_window" name="context_window" class="ldr-form-control" min="512" max="131072" step="1" value="{{ settings.llm_local_context_window_size }}">
<span class="ldr-input-help">Context window size in tokens (512-131072) · <a href="/metrics/context-overflow">View context overflow diagnostics</a></span>
</div>