mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-03 21:40:41 +08:00
"Pinned `db_path`, else derived from the name" was written twice — in the capability binding and, in its derived half only, in the HTTP bridge. A KB that pinned a path therefore paired devices into one file while the tools read another, so the add-on would have synced into a store nothing queried. `resolve_db_path` is now the single rule, and the binding, the pairing endpoints and the device endpoints all go through it. Deleting the KB now removes that store. Unlike an Obsidian vault it is ours — `data/user/marginnote4/<name>.db`, created by us — so leaving it behind both contradicted what the delete says and resurrected every paired device as soon as a library of the same name was connected again. Best-effort, on the same reasoning as the index directory above it: an orphan file beats a config entry stuck in the list.