5 Commits

Author SHA1 Message Date
Bingxi Zhao (Frank)
a0b5721ab6 fix(tutor): detach recycled threads before deleting source messages 2026-10-31 17:26:25 +08:00
Bingxi Zhao (Frank)
f6313b70a1 fix(tutor): detach PocketBase thread anchors when regenerating 2026-10-31 16:52:54 +08:00
yuanyyt
58afb10b57 fix: harden tutor-thread source recovery
Persist a structured selection_source beside the assistant prompt, and use
the legacy sidebar prompt's containing message, role and selection to
disambiguate repeated text. Scan every user message for a quote, refuse to
guess between several, and make the backfill conditional so a concurrent move
or detach wins.

Serialize PocketBase preference merges with a lock that spans event loops,
not one asyncio lock per loop, and validate client-supplied anchors on turns
and organization updates. Detach threads when the message they point at is
deleted.
2026-10-30 15:55:21 +08:00
Steven Huang
fdeb28ef9b fix(session): bound PocketBase latest-message reads 2026-10-23 13:45:27 +08:00
evan188199-tech
a282bcd6d6 test(session): cover pocketbase_store failure branches and pagination edges (#1773)
* test(session): cover pocketbase_store failure branches and pagination edges

* docs: add PR evidence for pocketbase_store fallback coverage

---------

Co-authored-by: XZH <cto@xzh.ai>
2026-10-07 20:14:24 +08:00