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.

793 B
Raw Blame

Contained the report-file unlink on research deletion: clear_history had no containment check at all and unlinked whatever path the research_history row held, so a stored path outside the reports root took that file with it, and a symlinked report path deleted its target rather than the link. Both callers now run through one shared guard that refuses leaf symlinks outright, decides containment on the resolved location, unlinks the path as given with FileNotFoundError tolerated, and keeps the refused path out of the log, matching config/paths.py. Containment is decided at check time: an ancestor swapped in between the resolve and the unlink can still redirect the unlink, which needs local write access to the reports tree mid-request and is outside the guard's threat model.