Commit Graph

161 Commits

Author SHA1 Message Date
Adithya
9d8742e994 fix: sanitize raw agentic chat replay messages 2026-11-11 14:07:44 +05:30
Bingxi Zhao (Frank)
60fb3bdfdd release: v1.7.2
Document selected-text speech, model discovery, NVIDIA NIM embeddings,
mastery reliability, Windows improvements, and complete desktop downloads.

Sync all eleven README translations and archive the v1.7.0 release notes.
Add platform-specific typing annotations for Windows APIs without changing
runtime behavior. See assets/releases/ver1-7-2.md for changes and upgrades.

Validation: pre-commit and Ruff passed; 12,782 Python tests passed
(51 skipped), 1,349 Node 22 tests passed, and the docs build passed.
2026-11-06 16:41:21 +08:00
evan188199-tech
857bc6f6ad fix(workspace): conservatively clear dead migration markers (#2390) 2026-11-06 02:27:50 +08:00
Bingxi Zhao (Frank)
79e726efb3 Merge #2435 from mathewgeejo 2026-11-06 02:04:52 +08:00
Bingxi Zhao (Frank)
ebcebd4723 Unify migration locks and plugin environments, and cover compatibility boundaries 2026-11-06 02:04:52 +08:00
Yi-111-a
d5adc0c2a9 fix: add PYTHONSAFEPATH=1 to prevent stale source tree shadowing in detached launcher and update worker (#2447) 2026-11-06 02:04:52 +08:00
Bingxi Zhao (Frank)
b837217cb5 Merge #2357 from Antonio-Faure 2026-11-06 01:56:24 +08:00
Bingxi Zhao (Frank)
7948deb5f5 Merge #2349 from rudycelekli 2026-11-06 01:56:24 +08:00
Bingxi Zhao (Frank)
89d6c960b1 Merge #2337 from yertYang 2026-11-06 01:56:24 +08:00
mathewgeejo
b9756c6126 fix: keep detached Windows venv launchers hidden
Use CREATE_NO_WINDOW so the venv redirector interpreter inherits a hidden console. Preserve the separate process group and update the Windows launch regression. Fixes #2421.

Co-Authored-By: Codex <noreply@openai.com>
2026-11-04 23:51:45 +05:30
Antonio-Faure
c7f203d594 fix(update): record a restart that never becomes ready 2026-11-02 09:12:32 +01:00
Antonio-Faure
f39b5d1c1f fix(update): keep installed modules on the target version 2026-11-02 08:44:04 +01:00
Rudy Celekli
d516269b43 fix(runtime): apply the tool-call id fallback in run_labeled_step
run_labeled_step returned tool calls via the accumulator's raw ordered()
view, which keeps id="" when a provider streams a tool call without an id
delta. The sibling consumers use collected(), which applies the positional
id and arguments fallbacks. Switch to collected() so a tool call made by an
id-less gateway is still correlatable and passes the non-empty-id schema.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-02 01:14:01 -05:00
yert
4e113d0e4f fix(llm): preserve custom headers in Codex OAuth requests 2026-11-02 04:07:25 +00:00
yert
edb205369a fix: preserve Redis event JSON arrays and tolerate legacy artifacts 2026-11-02 02:51:36 +00:00
Bingxi Zhao (Frank)
def8bdc8c6 Merge commit '1876207b5c248eb4ee4375e34779ed332a11d284' into codex/validate-reviewed-integration 2026-10-31 18:52:30 +08:00
Bingxi Zhao
7db39b4b03 Merge pull request #2142 from 1akashkalita/fix/animation-visual-review-option
Expose opt-in visual review for generated animations
2026-10-31 18:31:15 +08:00
Bingxi Zhao (Frank)
4d7090447e Integrate Turkish across complete locale chain, runtime messages and desktop shell 2026-10-31 18:14:34 +08:00
Bingxi Zhao (Frank)
0e84ab77fa Integrate reviewed changes and complete Portuguese translations 2026-10-31 18:04:54 +08:00
Bingxi Zhao (Frank)
3e281ce55b Complete and validate Brazilian Portuguese localization 2026-10-31 17:26:17 +08:00
Bingxi Zhao (Frank)
07db7024a7 Merge dev and refresh the French locale router index 2026-10-31 17:25:02 +08:00
Bingxi Zhao (Frank)
68c025ad66 Merge dev into Portuguese locale contribution 2026-10-31 17:21:05 +08:00
Rudy Celekli
f812c0d5a3 fix(runtime): wake input waiters on their owning loop
Keep the input queue with its event loop and register it before publishing
the prompt. Hand input back through the owning loop, with a protected
listener batch so concurrent cleanup cannot lose another waiter.

AI-assisted: prepared and validated with OpenAI Codex. Maintainer review
is pending.
2026-10-30 23:48:57 -04:00
Antonio-Faure
28d86973a4 fix(i18n): complete the French catalog and follow it for partner replies
- add the 760 English keys missing from the French catalog and translate 229 values still copied from English\n- make a partner's empty reply language (Auto) follow the account model output language instead of hardcoding English\n- label Auto with the configured language and offer every supported response language in the picker\n- localize the Feishu thinking notice for every supported response language\n- add French catalog, picker and partner runtime regression tests
2026-10-30 18:02:55 +01:00
bcfernando
5c99a37096 feat(i18n): add Portuguese (pt) interface localization 2026-10-30 10:17:55 -03:00
Akash Kalita
6e611fe5df fix: expose opt-in visual review for animations 2026-10-28 21:11:03 -07:00
Erhan ÜRGÜN
ff15bf084d feat(i18n): carry Turkish into the CLI, quiz judge, books, partners and voice
Earlier locales stopped at the settings lists, so these surfaces kept answering in English for them: the init wizard labels, quiz feedback, explicit book-language requests, book overview and export scaffolding, the partner and book language pickers, and the voice language list.
2026-10-29 01:05:43 +03:00
Bingxi Zhao (Frank)
b89748200a Merge pull request #2109: Claude Agent SDK provider 2026-10-29 01:07:23 +08:00
Bingxi Zhao (Frank)
e99d632de5 fix: prepare modular installs and align dev documentation 2026-10-28 19:02:44 +08:00
quocldce-sys
b16b187244 feat: add Claude Code provider backed by the Claude Agent SDK
Adds a `claude_code` LLM provider that runs turns through the local Claude
Code CLI via `claude-agent-sdk`, so DeepTutor can use the account signed in
with `claude /login` (including a Claude subscription) without an Anthropic
API key.

- One long-lived Claude Code process per DeepTutor session, mirroring the
  CodeBuddy SDK provider's owner-task pattern.
- Claude Code's built-in tools, settings, CLAUDE.md and hooks are disabled;
  DeepTutor tools are exposed through an in-process SDK MCP server and tool
  calls are returned to DeepTutor's dispatcher.
- Tool turns end via max_turns=1 and are drained instead of interrupted, so
  the transcript does not record an interrupted request.
- System messages become Claude's real system prompt.
- Optional extra: `pip install deeptutor[claude-code]`.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 15:07:04 +07:00
Bingxi Zhao (Frank)
9aadac3e3b merge: integrate current dev with modular installation 2026-10-28 01:23:48 +08:00
Bingxi Zhao (Frank)
fbab59acbf feat: modularize installation and enforce feature dependency boundaries 2026-10-28 01:02:29 +08:00
Bingxi Zhao (Frank)
7d0ba36a70 Merge remote-tracking branch 'origin/dev' into HEAD 2026-10-28 00:44:27 +08:00
Bingxi Zhao (Frank)
d61e53b7a7 Merge commit 'ce333434c31a84dac85d5d9cf1737bdd66e7a556' into HEAD 2026-10-27 22:30:55 +08:00
Bingxi Zhao (Frank)
756baa7deb Merge commit 'ce333434c31a84dac85d5d9cf1737bdd66e7a556' into HEAD 2026-10-27 22:23:08 +08:00
Bingxi Zhao (Frank)
ce333434c3 fix: reap failed engine workers before notifying callers 2026-10-27 22:22:06 +08:00
Bingxi Zhao (Frank)
d23206ebc0 Merge remote-tracking branch 'origin/dev' into HEAD 2026-10-27 21:42:52 +08:00
Bingxi Zhao (Frank)
1526d1a91d Merge remote-tracking branch 'origin/dev' into HEAD 2026-10-27 21:38:53 +08:00
Bingxi Zhao (Frank)
e347c0c2e0 fix: preserve tutoring replies and stabilize preview runtime
Keep learner-facing explanations visible across finish checks, persistence, and replay. Remove mastery prose heuristics and prioritize learner objections.

Coordinate service shutdown and descendant cleanup, and preserve video lesson identity and playable results across chat completion and reload.
2026-10-27 17:58:46 +08:00
Bingxi Zhao (Frank)
addb783d2f Merge preview and CI fixes into video lesson branch 2026-10-27 01:40:39 +08:00
Bingxi Zhao (Frank)
6bbcc00c55 Merge dev into preview, preserving preview features
Integrate dev fixes with preview's Python/TypeScript schedulers, chat queue, learning navigation, and live turn persistence.
2026-10-27 01:16:58 +08:00
Bingxi Zhao (Frank)
28c11e2ae8 feat: update notes, chat interactions and workspace UI on preview
Remove course pages, APIs and the course_study capability. Add anchored note
threads and reviewed learning-block generation, queued and withdrawable chat
messages, quote attachments, side chats, and the calendar/favorites/navigation
updates.

Keep preview's existing backend architecture. Wire the new features through
its Python application and existing chat engine, retain legacy selected-text
requests, persist mid-turn messages in replay, and restore note context when
regenerating. Leave stored user data intact.

Validate frontend contracts, dependency boundaries, types, 1290 node tests,
840 rendered tests, lint, localization and the production build. Exercise
session/notes/API regressions, 53 chat-engine tests and 20 Python/native
integration tests with isolated runtime data.
2026-10-26 22:13:34 +08:00
AleFlyX
9b721a71d2 fix(runtime): 自动回收工作进程重启后遗留的轮次
变更:
- 内存协调模式从持久化记录发现无主轮次,并复核租约保护活跃执行
- 先以状态和 fencing token 完成失败转换,再持久化并发布连续编号的终态事件
- 增加重启恢复、活跃租约保护、竞争处理及 Redis 事件保留回归测试

验证:
- 相关协调、后台恢复、应用及订阅测试:101 项 PASS,含四 worker/1000 轮次压力测试
- 新增 Redis 恢复用例后的定向复测:14 项 PASS,与上述范围重叠
- 修改文件的适用 pre-commit 检查、架构检查、git diff --check:PASS
- Chromium SIGKILL 实测:无需刷新或新提交,自动显示失败和重试入口
- 用户在独立测试实例复测:旧轮次自动标记 worker_lost,前端显示重试

Fixes #2034
2026-10-23 16:26:01 +08:00
SeleiXi
6b7897a32f feat(video_lesson): register the video lesson capability
`video_lesson` (CLI alias `lesson`) turns a question into a playable
Remotion explainer:

1. code_generation: the lesson writer drafts Lesson.tsx
2. render_check: compile and frame-check it, feeding failures back,
   up to three attempts
3. render_output: write the player page and emit it as an html artifact,
   along with the lesson's summary and source

npm packages are installed on first use while the first LLM call is
still running. The capability reports itself unavailable when node or
npm is missing. Its LLM budget lives under plugins.video_lesson in
agents.yaml (48k tokens by default: a whole lesson comes back in one
reply).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-21 23:58:03 +08:00
octo-patch
53d19a39f0 feat: recommend MiniMax Flash and map current reasoning controls 2026-10-20 16:31:03 +08:00
Bingxi Zhao (Frank)
4fe1b5b24a fix(mastery): finish bounded memory and count preparation usage (#1920, #1926) 2026-10-19 03:44:51 +08:00
Bingxi Zhao (Frank)
e28c803636 fix(runtime): persist live prefixes and reclaim completed streams (#1971) 2026-10-19 03:29:21 +08:00
Bingxi Zhao (Frank)
784de5fa6d fix: align integrated mastery catalog and regression fixtures 2026-10-19 01:17:50 +08:00
Bingxi Zhao (Frank)
1497994c9f Merge PR #1938: bound tutoring history and retain exact recall when condensation fails 2026-10-19 00:57:48 +08:00
Bingxi Zhao (Frank)
9aae961412 Merge PR #1957: separate private source evidence from explicit public presentation 2026-10-19 00:53:44 +08:00