4771 Commits

Author SHA1 Message Date
Bingxi Zhao
acddbb327e Merge pull request #1057 from dongyu-will/codex/deep-question-validation 2026-08-29 11:49:40 +08:00
Bingxi Zhao (Frank)
ca028e3766 Merge remote-tracking branch 'origin/dev' into pr1077 2026-08-29 11:49:04 +08:00
Bingxi Zhao (Frank)
1b211599ee Merge remote-tracking branch 'origin/dev' into pr1049 2026-08-29 11:48:40 +08:00
Bingxi Zhao (Frank)
7e9f79b4f8 Merge remote-tracking branch 'origin/dev' into fix/mastery-build-schema 2026-08-29 11:48:36 +08:00
Bingxi Zhao
2f038e9943 Merge pull request #1080 from HKUDS/fix/lint-pending-imports 2026-08-29 11:47:14 +08:00
Bingxi Zhao (Frank)
350a3439d1 fix(ci): restore the ruff gate on dev
Two just-merged PRs each landed with a red Lint job that was not
re-checked before the merge:

- #1050 put the text_display import after the TYPE_CHECKING block in
  learning/pending.py, tripping I001.
- #1017 left a long call in routers/outputs.py that ruff format wraps
  differently.

Both are formatting only; no behaviour changes.
2026-08-29 11:41:50 +08:00
Bingxi Zhao (Frank)
5df28a0dc8 fix(mastery): read the module tree models actually emit
mastery_build rejected everything that was not exactly
[{name, knowledge_points: [{name, type}]}]. Smaller and local models
routinely answer with 'objectives' instead of 'modules', 'title' or
'description' instead of 'name', bare strings instead of knowledge-point
objects, or a flat objective list with no module layer at all. Each of
those was dropped by a silent 'continue', so the path saved empty, never
appeared in Learning Space, and the learner saw no error (#1019).

Normalize the shape before validating it, and make the one remaining
failure state the expected schema instead of just refusing.
2026-08-29 11:37:27 +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
Bingxi Zhao
8e1a6656c5 Merge pull request #1023 from evan188199-tech/codex/fix/mastery-skip-tool 2026-08-29 11:32:09 +08:00
Bingxi Zhao
39bf658fe6 Merge pull request #1071 from evan188199-tech/codex/fix/chat-edit-branch-selection 2026-08-29 11:31:05 +08:00
Bingxi Zhao
07bb3c19e9 Merge pull request #1041 from junjiezhou1122/fix/anthropic-sdk-1x-temperature-extra-body 2026-08-29 11:30:11 +08:00
Bingxi Zhao
edf7b5ec2f Merge pull request #1027 from ZQR1101/fix/delete-turn-optimistic-id 2026-08-29 11:28:58 +08:00
ZQR1101
50ee9a104c fix(runtime): fall back when psutil cannot read /proc
On HarmonyOS, psutil.children() raises raw PermissionError for /proc/1/stat, which is not a psutil.Error subclass and used to 500 GET /api/v1/system/memory. Catch it and use the defensive /proc walker.

Fixes #1076
2026-08-29 11:28:51 +08:00
Bingxi Zhao
a53b5df302 Merge pull request #1050 from ZQR1101/fix/ask-user-unicode-decode-backend 2026-08-29 11:28:49 +08:00
Bingxi Zhao
ac14d0f2e2 Merge pull request #1026 from evan188199-tech/codex/fix-partner-chat-update-loop 2026-08-29 11:28:42 +08:00
Bingxi Zhao
f12ba50a53 Merge pull request #1043 from evan188199-tech/codex/fix/clawhub-publisher-refs 2026-08-29 11:28:03 +08:00
Bingxi Zhao
8173b7a8f1 Merge pull request #1066 from evan188199-tech/codex/fix/jina-retrieval-roles 2026-08-29 11:27:58 +08:00
Bingxi Zhao
bb37982279 Merge pull request #1017 from ZQR1101/fix/partner-output-fallback 2026-08-29 11:27:52 +08:00
Bingxi Zhao
b553fe58d5 Merge pull request #1073 from evan188199-tech/codex/knowledge-empty-pdf-guidance 2026-08-29 11:27:45 +08:00
Bingxi Zhao
3f6e82405e Merge pull request #741 from lukiod/fix/secret-file-permissions 2026-08-29 11:27:40 +08:00
XZH
3954e55b38 fix(llm): enable DeepSeek Pro native web search (#846) 2026-08-28 19:38:39 -07:00
XZH
8460fb7ec5 feat(knowledge): add WeKnora retrieval connections (#918) 2026-08-28 16:47:43 -07:00
Codex
54817e3149 Test optional LightRAG SDK in Python 3.12 CI 2026-08-28 23:18:46 +00:00
Codex
a170658c89 Skip SDK-specific LightRAG tests without optional extra 2026-08-28 22:40:53 +00:00
Codex
cf2b93feac Skip LightRAG smoke tests without optional SDK 2026-08-28 22:31:44 +00:00
XZH
f3c613c842 fix(knowledge): explain scanned PDF parse failures 2026-08-28 12:40:39 -07:00
XZH
6d6c5b23f5 fix(chat): select newly sent branch
Fixes HKUDS/DeepTutor#739
2026-08-28 11:41:45 -07:00
XZH
f43347b915 feat(lightrag): add dedicated model selection (#640) 2026-08-28 11:16:06 -07:00
XZH
cc7221ed2b feat(chat): route explicit quiz requests (#807) 2026-08-28 10:21:41 -07:00
XZH
f65ce2abd5 fix(embedding): enable Jina retrieval roles 2026-08-28 09:23:28 -07:00
XZH
98c68cfe0a docs(knowledge): add note migration guide 2026-08-28 09:14:45 -07:00
XZH
e26f666608 docs(installation): document uninstall and data cleanup 2026-08-28 08:59:35 -07:00
XZH
dae433ed8e test(mastery): trigger ci 2026-08-28 08:46:06 -07:00
Codex
a87d6bfb72 fix(lightrag): retain uncertain initial candidates 2026-08-28 15:45:28 +00:00
Codex
cefc3471f2 fix(lightrag): preserve partially accepted ingress 2026-08-28 15:33:11 +00:00
XZH
8263cddec8 feat(reading): expose EPUB headings in the persistent outline 2026-08-28 08:15:53 -07:00
Codex
8dce8ee545 Fix LightRAG append recovery and fixture tracking 2026-08-28 15:15:48 +00:00
Codex
6d02ff9299 Replace RAG-Anything with native LightRAG pipeline 2026-08-28 15:04:14 +00:00
ZQR1101
8a0ea496f4 fix(llm): disable DeepSeek flash thinking on openai bindings
openai bindings pointed at DeepSeek never inherited flash's thinking:disabled default, so mid-conversation rounds failed with reasoning_content must be passed back. Infer thinking controls from the model id and replay Chat Completions reasoning on tool-call turns.

Fixes #1058
2026-08-28 21:24:15 +08:00
XZH
a32a9a98a1 fix(llm): persist DeepSeek reasoning across turns 2026-08-28 03:09:00 -07:00
weidongyu
e0664b21bb fix(question): validate topic before generation 2026-08-28 17:09:59 +08:00
Bingxi Zhao (Frank)
9e54429426 Merge codex/immersive-reading-v2 into dev
# Conflicts:
#	deeptutor/api/routers/mastery_path.py
#	tests/services/session/test_sqlite_store.py
#	web/app/(workspace)/home/[[...sessionId]]/page.tsx
#	web/components/sidebar/SidebarShell.tsx
2026-08-28 15:01:39 +08:00
Bingxi Zhao (Frank)
3068f580f5 Merge codex/mastery-path-v2 into dev 2026-08-28 14:59:07 +08:00
Bingxi Zhao (Frank)
97a4d0eeef feat(reading): add immersive reading workspace 2026-08-28 14:58:48 +08:00
Bingxi Zhao (Frank)
d57d2983ef feat(mastery): complete v2 learning workflows 2026-08-28 14:58:43 +08:00
ZQR1101
81e5ff8e3d fix(tools): decode unicode escapes in ask_user payloads
Models sometimes emit literal \\uXXXX runs in ask_user and mastery_quiz tool args. Decode dense non-ASCII runs when building learner-facing payloads so cards do not leak escapes (#973).
2026-08-28 13:21:08 +08:00
XZH
c9920a237c feat(book): infer requested language 2026-08-27 20:27:37 -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
XZH
57f39ce183 feat(search): add reference safety filtering (#375) 2026-08-27 14:16:23 -07:00
XZH
65075dc9c0 docs(safety): add reasoning and retrieval checklist (#199) 2026-08-27 14:03:03 -07:00