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: implement Reddit feedback improvements (#1909)

LearningCircuitdf52e3ec3e31
diff --git a/docs/faq.md b/docs/faq.md
index d2ed478d16..7b19cb323e 100644
--- a/docs/faq.md
+++ b/docs/faq.md
@@ -466,6 +466,10 @@ This means Linux capabilities needed by the entrypoint are blocked by the LXC co
LDR may generate invalid filenames. Fixed in recent versions, update to latest.
+### macOS: Port 5000 in use (AirPlay conflict)
+
+macOS Monterey (12.0+) uses port 5000 for AirPlay Receiver, which conflicts with LDR's default port. See [Port Conflict Troubleshooting](troubleshooting.md#port-conflicts) for solutions.
+
### macOS M1/M2/M3 issues
- Build your own Docker image for ARM
diff --git a/docs/troubleshooting.md b/docs/troubleshooting.md
index 4e37ddfafb..eb1fbf9e06 100644
--- a/docs/troubleshooting.md
+++ b/docs/troubleshooting.md
@@ -344,6 +344,40 @@ python -m local_deep_research.web_search_engines.rate_limiting export --format c
## Docker Issues
+### Port Conflicts
+
+#### macOS AirPlay (Port 5000)
+
+**Symptom:** "Address already in use" error or container starts but http://localhost:5000 is unreachable
+
+**Diagnose:**
+```bash
+lsof -i :5000
+sudo lsof -i :5000 # May need sudo for system services
+# If "ControlCe" or "AirPlayXPC" appears → AirPlay is the cause
+```
+
+**Solutions:**
+
+1. **Disable AirPlay Receiver** (macOS 12 Monterey and later):
+ - System Settings → General → AirDrop & Handoff → Toggle OFF "AirPlay Receiver"
+
+2. **Use a different port** (recommended if you need AirPlay):
+ ```yaml
+ # docker-compose.yml
+ ports:
+ - "8080:5000" # Access at http://localhost:8080
+ ```
+
+ Or with Docker CLI:
+ ```bash
+ docker run -p 8080:5000 ...
+ ```
+
+**Note:** Other services that may use port 5000 include Flask development servers, Synology DSM, and some VPN software. The diagnostic commands above will help identify the culprit.
+
+---
+
### Container Won't Start
**Symptoms:**
@@ -532,13 +566,65 @@ python -m local_deep_research.web_search_engines.rate_limiting export --format c
---
+## Debug Logging
+
+> **Security note:** Log files are unencrypted and may contain sensitive information such as research queries. Ensure appropriate file permissions.
+
+### Enable File Logging
+
+By default, LDR logs to the console. To enable persistent file logging:
+
+```bash
+export LDR_ENABLE_FILE_LOGGING=true
+```
+
+### Log File Locations
+
+| Platform | Path |
+|----------|------|
+| Linux | `~/.local/share/local-deep-research/logs/` |
+| macOS | `~/Library/Application Support/local-deep-research/logs/` |
+| Windows | `%USERPROFILE%\AppData\Local\local-deep-research\logs\` |
+| Custom | Set `LDR_DATA_DIR` environment variable |
+
+**Log files:**
+- `ldr_web.log` - Main application log
+- Logs rotate at 10MB with 7-day retention (compressed)
+
+### Docker Logging
+
+```bash
+# Live log stream
+docker compose logs -f local-deep-research
+
+# Last 100 lines
+docker compose logs --tail 100 local-deep-research
+
+# Follow logs with timestamps
+docker compose logs -f -t local-deep-research
+```
+
+### Verbose File Logging
+
+To capture DEBUG-level output to log files:
+
+```bash
+export LDR_ENABLE_FILE_LOGGING=true
+```
+
+Log files will include DEBUG-level messages. See log file locations above.
+
+**Security note:** Log files are unencrypted and may contain sensitive information such as research queries. Ensure appropriate file permissions.
+
+---
+
## Getting Help
If you're still experiencing issues:
1. **Check logs:**
- Console output
- - `~/.local/share/local-deep-research/logs/`
+ - Log files (see [Debug Logging](#debug-logging) above)
2. **Search existing issues:**
- [GitHub Issues](https://github.com/LearningCircuit/local-deep-research/issues)
diff --git a/src/local_deep_research/web/static/css/styles.css b/src/local_deep_research/web/static/css/styles.css
index 7269b775eb..2b8aa58efe 100644
--- a/src/local_deep_research/web/static/css/styles.css
+++ b/src/local_deep_research/web/static/css/styles.css
@@ -780,6 +780,18 @@ textarea:focus, input[type="text"]:focus {
font-size: 0.85rem;
}
+.ldr-mode-badge {
+ font-size: 0.65rem;
+ font-weight: 600;
+ text-transform: uppercase;
+ background-color: var(--warning-color);
+ color: #fff;
+ padding: 0.15rem 0.4rem;
+ border-radius: 4px;
+ margin-left: 0.5rem;
+ vertical-align: middle;
+}
+
/* Progress Page */
.ldr-progress-info {
padding: 1rem 0;
diff --git a/src/local_deep_research/web/templates/pages/research.html b/src/local_deep_research/web/templates/pages/research.html
index 9c65ccd344..b4fc6c928e 100644
--- a/src/local_deep_research/web/templates/pages/research.html
+++ b/src/local_deep_research/web/templates/pages/research.html
@@ -62,8 +62,8 @@
<label for="mode-detailed" class="ldr-mode-option" data-mode="detailed" role="radio" aria-checked="false" tabindex="-1">
<div class="ldr-mode-icon"><i class="fas fa-microscope" aria-hidden="true"></i></div>
<div class="ldr-mode-info">
- <h2>Detailed Report</h2>
- <p>In-depth analysis (takes longer)</p>
+ <h2>Detailed Report <span class="ldr-mode-badge">Advanced</span></h2>
+ <p>Multi-section analysis {{ tooltip("?", "Generates comprehensive report with extensive source analysis. Duration varies by topic complexity and search settings.", position='right') }}</p>
</div>
</label>
</div>