Commit Graph

742 Commits

Author SHA1 Message Date
whf
1ef5e2db01 Block 20: Interactive Feynman check + practice — user input, server-side grading, error_type tracking 2026-05-14 23:54:03 +08:00
whf
5451aa60b4 Block 19: Interactive diagnostic phases — wait_for_input, server-side grading, answer stripping, correct_count, CLI timeout 2026-05-14 23:15:47 +08:00
whf
315b5d0da0 Block 18: StreamBus wait_for_input bidirectional mechanism with bus registry 2026-05-14 22:28:10 +08:00
whf
526bc1c550 Block 17: Server-side question answer persistence, eliminate client-supplied expected_answer 2026-05-14 21:05:52 +08:00
whf
22336e648e Block 16: Server-side answer grading, remove client-supplied is_correct/mastery_estimate 2026-05-14 20:29:34 +08:00
whf
e82b5374cf Block 15: Phase 3 — enum values English + _missing_() backward compat, __init__.py docstring, i18n keys, 66/66 tests 2026-05-14 11:01:49 +08:00
whf
6195c22e86 Fix P1: Auto-advance learning stages on stage_end with retry logic, error handling, stale closure fixes 2026-05-14 10:18:48 +08:00
whf
a960c27761 Block 13: Remove guided_learning from chat CAPABILITIES selector and badge label 2026-05-14 05:33:55 +08:00
whf
14a7d07438 Block 12: i18n strings (en/zh) + error toast for learning pages 2026-05-14 05:31:34 +08:00
whf
92ae45e361 Block 10+11: Module list page with progress cards + learning-api client 2026-05-14 05:12:01 +08:00
whf
2620bf01b4 Block 9: ModuleTree nav component with mastery indicators, fetch progress from API 2026-05-14 04:20:33 +08:00
whf
c69a24e3de Block 8: WS client + StreamBus stage progress UI with stale closure fix (useRef) and XSS fix (remove dangerouslySetInnerHTML) 2026-05-14 03:10:54 +08:00
whf
2772cf647c Block 7: /learning route skeleton (page.tsx + [bookId]/page.tsx), Next.js build verified 2026-05-14 02:30:56 +08:00
whf
43973c7bc0 Block A: Fix _call_llm fail-open → fail-closed, raise on error, stage retries on failure 2026-05-14 00:39:04 +08:00
whf
1e02874ce2 fix: P1 move prompt imports to module scope, P2 format prompt templates with actual kp/module names 2026-05-13 22:04:24 +08:00
whf
a8e154fc18 Block 5+6: 12 integration tests for LLM+RAG, 64/64 full regression, moved complete import to module level 2026-05-13 21:24:37 +08:00
whf
f761c34d29 Block 4: RAG retrieval via RAGService injected into system prompt before LLM call 2026-05-13 21:06:31 +08:00
whf
e65893feca Block 3: Structured prompt templates in deeptutor/learning/prompts.py, 11 stages with format() placeholders 2026-05-13 20:59:13 +08:00
whf
99fec2e51e Block 2: Replace _mock_llm() with real await complete() via DeepTutor LLM factory 2026-05-13 20:47:30 +08:00
whf
99798ade00 Block 1: LLM Factory API probe - module-level async complete()/stream() 2026-05-13 20:31:26 +08:00
unknown
ed9654a8b5 fix: address 7 confirmed security/code-quality audit findings (C2,C3,H1-H5) 2026-05-13 00:40:49 +08:00
whf
7193006cbd fix: 5 minor code quality improvements in guided_learning router
- Fix 1: Chinese comment → English
- Fix 2: Move late imports (PydanticValidationError, KnowledgePoint, LearningModule, HTTPException) to top-level
- Fix 3: Remove duplicate HTTPException imports in except blocks
- Fix 4: Document init_modules reset behavior for incremental module addition
- Fix 5: Add book_id validation to all 4 endpoints (+ colon per Codex review)

Codex-reviewed, 52/52 tests pass.
2026-05-12 23:35:53 +08:00
whf
7225eeb378 fix: restore guided_learning frontend UI integration lost in upstream merge 2026-05-12 22:27:04 +08:00
unknown
3dd5771066 Sync upstream: merge HKUDS/DeepTutor main (up to v1.3.10)
# Conflicts:
#	deeptutor/api/main.py
#	web/app/(workspace)/chat/[[...sessionId]]/page.tsx
#	web/components/chat/home/ChatMessages.tsx
2026-05-12 18:39:54 +08:00
unknown
8520a72a18 Merge branch 'guided-learning-fix': 14 bug fixes for guided-learning module 2026-05-12 18:26:16 +08:00
unknown
fb2f8d7d77 fix(L1): improve init_modules merge — update existing modules instead of skipping (codex P2) 2026-05-12 18:12:21 +08:00
unknown
f213b1c228 fix(L1): incremental merge in init_modules to preserve existing modules and progress 2026-05-12 17:59:31 +08:00
unknown
ccfc64a381 fix(M9): add validation error handling with clear messages in init-modules 2026-05-12 17:47:38 +08:00
unknown
95ce77c721 fix(M4): auto-create initial repetition state when missing in submit_answer 2026-05-12 17:39:59 +08:00
unknown
0b71253cf5 fix(H3): clarify _current_knowledge_points logic — explicit match then fallback 2026-05-12 17:32:44 +08:00
unknown
acadcf6c47 fix(H8): remove unused 'key' variable in record_quiz_attempt 2026-05-12 17:30:43 +08:00
unknown
d16e749c34 fix(H9): remove knowledge_points from dict before unpacking to avoid duplicate argument 2026-05-12 17:27:18 +08:00
unknown
19bc959b9a fix(H1): persist new LearningProgress immediately in get_or_create to prevent race condition 2026-05-12 17:25:30 +08:00
unknown
fc4d4f7ca2 fix(H4): add complete_review_task to clean finished tasks from queue 2026-05-12 14:56:59 +08:00
unknown
232f41a446 fix(C1): wrap handler call in try/finally to always save progress 2026-05-12 14:54:22 +08:00
unknown
7af85c5781 fix(H2): deduplicate error records, use RetryAttempt, graduate on correct answer 2026-05-12 14:52:43 +08:00
unknown
325af91a02 fix(C5): use .get() instead of .pop() to avoid mutating request body 2026-05-12 14:51:05 +08:00
unknown
7fb2c11ed1 fix(C2): add _safe_json_parse helper to handle malformed LLM responses 2026-05-12 14:50:02 +08:00
unknown
08e1829fde fix(C4): remove router singleton race condition + use unique tmp filenames in atomic write 2026-05-12 14:45:59 +08:00
unknown
a308e398f2 baseline: snapshot before guided-learning bugfixes 2026-05-12 14:37:28 +08:00
Bingxi Zhao (Frank)
ac8f00bd65 prepare v1.3.10 release v1.3.10 2026-05-10 22:56:21 +08:00
Bingxi Zhao (Frank)
df925e6f97 fix lint 2026-05-09 03:11:27 +08:00
Bingxi Zhao (Frank)
72bcdd77d8 prepare v1.3.9 release v1.3.9 2026-05-09 02:53:14 +08:00
Bingxi Zhao
57cd6fe753 Merge pull request #455 from Bortlesboat/codex/tutorbot-nvidia-nim
fix: add TutorBot NVIDIA NIM provider support
2026-05-09 01:57:26 +08:00
Bingxi Zhao
4f7f069ae9 Merge pull request #457 from philliplagoc/feature/sidebar-tooltips
feat: tooltips for sidebar
2026-05-09 01:55:18 +08:00
Bingxi Zhao
accfab92da Merge pull request #452 from wedone/feat/add-zulip-channel
feat(tutorbot): add Zulip channel support
2026-05-09 01:55:03 +08:00
Bingxi Zhao
4733a1afc9 Merge pull request #449 from kagura-agent/fix/user-message-newline-444
fix(web): preserve newlines in user chat messages
2026-05-09 01:54:51 +08:00
Bingxi Zhao
657f68652c Merge pull request #445 from Starfie1d1272/feat/cli-start-command
feat: add deeptutor start command to launch backend and frontend together
2026-05-09 01:54:38 +08:00
Bingxi Zhao
7b73769fe9 Merge pull request #453 from Starfie1d1272/fix/deepseek-reasoning-effort-minimal
fix(llm): stop sending reasoning_effort=minimal as top-level param to providers that reject it
2026-05-09 01:54:23 +08:00
Bingxi Zhao
f1572e8f29 Merge pull request #447 from Starfie1d1272/fix/add-deepseek-v4-pricing
fix: add deepseek-v4-flash and deepseek-v4-pro to model pricing table
2026-05-09 01:54:10 +08:00