10 Commits

Author SHA1 Message Date
Bingxi Zhao (Frank)
5cff0b3e90 fix(chat): compute continuation depths without recursion 2026-10-04 14:35:08 +08:00
XZH
0b9de7eb40 fix(chat): preserve long-session branch path 2026-09-28 02:41:01 -07:00
Bingxi Zhao (Frank)
829be646a1 chore(web): enforce frontend architecture boundaries 2026-09-01 19:55:48 +08:00
Bingxi Zhao (Frank)
13698a9a7e refactor(web): retire the unified chat context path 2026-09-01 17:59:50 +08:00
Bingxi Zhao (Frank)
0e351970b8 Merge dev into fix/switch-branch-optimistic-id
Keeps both halves of the #739 fix, which are complementary rather than
competing: selectChildBranch (dev, via #1071) points local state at the
freshly created sibling after an edit, and persistedBranchSelections
(this branch) keeps the optimistic negative ids out of what is written
back to the server.
2026-08-29 11:33:56 +08:00
XZH
6d6c5b23f5 fix(chat): select newly sent branch
Fixes HKUDS/DeepTutor#739
2026-08-28 11:41:45 -07:00
ZQR1101
7b3c9c0cff fix(web): skip persisting optimistic branch selections
switchBranch wrote negative client ids into selected_branches even though reload hydration drops them (n > 0 only). Keep local UI updates but only POST persisted ids.
2026-08-28 11:25:01 +08:00
Bingxi Zhao (Frank)
a3b51731a9 refactor(web): name the visible-path walk seed
#923 inlined 25 lines of orphan detection into the middle of
buildVisiblePath, between "group by parent" and "walk". Extract it as
walkStartKey() so the function reads as its three steps again; behaviour and
the #912 regression tests are unchanged.
2026-08-19 23:52:33 +08:00
zhouraym
6c1dcca0ec fix: re-parent descendants on turn delete and render orphaned message trees (#923)
Fixes #912. Deleting a turn left descendants pointing at deleted rows, so the session lost its root and rendered a blank page. Splice deleted rows out of the parent-pointer tree on delete, and let buildVisiblePath recover already-corrupted sessions from their oldest orphan.
2026-08-19 23:36:53 +08:00
Bingxi Zhao (Frank)
1596807242 refactor chat capability & RAG pipeline(llamaindex) 2026-05-13 21:36:07 +08:00