Files
DeepTutor/web/tests
LamXwah e7dead14f9 fix(chat): prune deleted knowledge base references from sessions (#936)
* fix(chat): prune deleted knowledge base references from sessions

* style(chat): drop the unrelated reformat from the KB-pruning change

ChatMessages.tsx arrived with ~50 lines of prettier output that the fix
does not need: `.map()` arrow bodies unwrapped for bookReferences,
notebookReferences, historyReferences and memoryReferences, plus a union
type joined onto one line. `dev` does not follow prettier for this file
(`prettier --check` flags it on `dev` too), and CI gates neither prettier
nor tsc for web, so the churn would have landed silently.

Restore those hunks and keep only what threads `availableKbNames`
through: the two prop declarations, the two destructures, the pass-down,
and the `.filter()` in front of the knowledge-base context items. The
remaining reindent inside that `.map()` is intrinsic to inserting the
filter ahead of it.

---------

Co-authored-by: Bingxi Zhao (Frank) <13051345080@163.com>
2026-08-21 15:58:26 +08:00
..
2026-01-15 02:49:17 +08:00
2026-08-02 13:23:45 +08:00
2026-08-20 14:15:53 +08:00
2026-07-24 03:06:58 +08:00
2026-08-02 13:23:45 +08:00
2026-08-17 11:22:26 +08:00
2026-08-19 17:34:52 +08:00
2026-08-02 13:23:45 +08:00
2026-07-31 00:25:48 +08:00
2026-08-13 18:49:48 +08:00
2026-08-02 13:23:45 +08:00
2026-07-19 16:56:34 +08:00
2026-06-19 20:05:19 +08:00
fix
2026-08-09 22:18:22 +08:00
2026-08-17 11:22:26 +08:00
2026-06-11 20:03:34 +08:00
fix
2026-08-09 22:18:22 +08:00
2026-08-17 11:22:26 +08:00
2026-08-19 17:34:52 +08:00
2026-07-31 00:25:48 +08:00
2026-07-31 00:25:48 +08:00
2026-08-02 13:23:45 +08:00
2026-08-02 13:23:45 +08:00
2026-04-30 23:41:58 +08:00
2026-08-02 13:23:45 +08:00
2026-08-20 14:15:53 +08:00
2026-08-20 14:15:53 +08:00
2026-08-20 14:15:53 +08:00
2026-08-19 17:34:52 +08:00
2026-08-19 17:34:52 +08:00
2026-08-20 14:15:53 +08:00
2026-08-13 18:49:48 +08:00
2026-08-20 14:15:53 +08:00
2026-08-20 14:15:53 +08:00
fix
2026-08-09 22:18:22 +08:00
2026-08-10 00:47:37 +08:00
2026-08-02 13:23:45 +08:00
2026-07-24 18:16:04 +08:00
2026-05-12 02:20:30 +08:00
2026-08-20 14:15:53 +08:00
2026-08-20 14:15:53 +08:00