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.

1.0 KB
Raw Blame

fix(database): preserve a concurrent new-password engine across change_password

change_password previously evicted the cached engine unconditionally after the rekey, so a concurrent open_user_database(new_password) that had just cached the surviving current-key engine lost it and the next caller had to cold-open again. change_password now detaches any cached engine BEFORE the rekey, while holding the user's rekey sidecar lock that every cold open also takes, and evicts nothing afterwards: a new-password open racing the rekey waits for it to commit, then publishes the only engine (a rekey that holds the lock for more than 5 seconds makes that open fail as retryable instead). The /auth/change-password route no longer closes the user's database after a successful change either (its "defensive" close evicted that same engine), so neither the manager method nor the HTTP password change drops it. (#6565 first fixed this with a post-rekey close_user_database_if_stale helper; the durable rekey epoch in #6662 supersedes that helper, which is removed.)