Skip to content

DeepTutor: Lifelong Personalized Tutoring. https://deeptutor.info/.

release: v1.5.11

Bingxi Zhao (Frank)456f9c24226e
diff --git a/README.md b/README.md
index 86c29d42c..faf4f26d3 100644
--- a/README.md
+++ b/README.md
@@ -48,15 +48,17 @@
### 📦 Releases
+> **[2026.8.10]** [v1.5.11](https://github.com/HKUDS/DeepTutor/releases/tag/v1.5.11) — Prose around a DSML tool call stops vanishing, a truncated reply continues instead of ending, live memory usage in Settings, and LightRAG indexing off the event loop.
+
> **[2026.8.7]** [v1.5.10](https://github.com/HKUDS/DeepTutor/releases/tag/v1.5.10) — Every account signs in to its own **Codex**, model output language becomes its own setting, empty tool calls are rejected instead of retried, and uploads stop blocking the loop.
> **[2026.8.4]** [v1.5.9](https://github.com/HKUDS/DeepTutor/releases/tag/v1.5.9) — Gemini **Embedding 2** on its native endpoint, a per-model **reasoning effort** control, a **Novita AI** gateway, retrieval roles for queries, and Compose deployments that keep all of `data/`.
-> **[2026.8.2]** [v1.5.8](https://github.com/HKUDS/DeepTutor/releases/tag/v1.5.8) — Memory: a real heap ceiling for the dev server, source installs serve a production build, bounded LLM client and index caches, and a keep-alive fix for stray 500s.
-
<details>
<summary><b>Past releases (more than 1 week ago)</b></summary>
+> **[2026.8.2]** [v1.5.8](https://github.com/HKUDS/DeepTutor/releases/tag/v1.5.8) — Memory: a real heap ceiling for the dev server, source installs serve a production build, bounded LLM client and index caches, and a keep-alive fix for stray 500s.
+
> **[2026.7.31]** [v1.5.7](https://github.com/HKUDS/DeepTutor/releases/tag/v1.5.7) — A per-account **MCP Services** store, 101 **CLI Apps** the tutor can run, credentials moved out of the sandbox's reach, and a mobile layout.
> **[2026.7.29]** [v1.5.6](https://github.com/HKUDS/DeepTutor/releases/tag/v1.5.6) — Remote **Codex** sign-in completes behind an SSH tunnel, generated files get their own card in Activity, non-English languages stop collapsing to Chinese, and book creation no longer times out.
@@ -623,7 +625,7 @@ The Memory Graph shows the whole pyramid — L3 synthesis at the centre, L2 in t
<img src="assets/figs/web-1.4.6+/settings/00-setting%20overview.png" alt="DeepTutor settings hub" width="900">
</div>
-Settings is the operational control plane, with a live status strip (Backend, LLM, Embedding, Search) and one card per area: **Appearance** (theme, interface and model output language, code-block styling), **Network** (API base, ports, CORS), **Models** (LLM, Embedding, Search, Text-to-Speech, Speech-to-Text, Image Generation, Video Generation), **Knowledge Base** (document parsing engine), **Chat** (tools, per-capability parameters, attachment caps), **Partners & Agents** (the subagents you can consult from a turn), and **Memory** (the consolidator's budgets).
+Settings is the operational control plane, with a live status strip (backend health and resident memory across the process tree) and one card per area: **Appearance** (theme, interface and model output language, code-block styling), **Network** (API base, ports, CORS), **Models** (LLM, Embedding, Search, Text-to-Speech, Speech-to-Text, Image Generation, Video Generation), **Knowledge Base** (document parsing engine), **Chat** (tools, per-capability parameters, attachment caps), **Partners & Agents** (the subagents you can consult from a turn), and **Memory** (the consolidator's budgets).
<div align="center">
<img src="assets/figs/web-1.4.6+/settings/01-appearance%20settings.png" alt="DeepTutor appearance settings and themes" width="900">
diff --git a/assets/README/README_AR.md b/assets/README/README_AR.md
index 2507465ee..332a64a04 100644
--- a/assets/README/README_AR.md
+++ b/assets/README/README_AR.md
@@ -470,7 +470,7 @@ Co-Writer هو مساحة عمل Markdown ذات عرض مقسَّم للتقا
<img src="../../assets/figs/web-1.4.6+/settings/00-setting%20overview.png" alt="مركز إعدادات DeepTutor" width="900">
</div>
-الإعدادات هي لوحة التحكم التشغيلية، مع شريط حالة مباشر (الخلفية وLLM والتضمين والبحث) وبطاقة واحدة لكل منطقة: **المظهر** (الثيمة، ولغة واجهة المستخدم ولغة مخرجات النموذج، وتنسيق كتل الرمز)، **الشبكة** (قاعدة API والمنافذ وCORS)، **النماذج** (LLM والتضمين والبحث وتحويل النص إلى كلام وتحويل الكلام إلى نص وتوليد الصور وتوليد الفيديو)، **قاعدة المعرفة** (محرك تحليل المستندات)، **Chat** (الأدوات والمعاملات لكل قدرة، وحدود المرفقات)، **الشركاء والوكلاء** (الوكلاء الفرعيون الذين يمكنك استشارتهم من دور)، و**الذاكرة** (ميزانيات الموحّد).
+الإعدادات هي لوحة التحكم التشغيلية، مع شريط حالة مباشر (سلامة الخلفية والذاكرة المقيمة عبر شجرة العمليات) وبطاقة واحدة لكل منطقة: **المظهر** (الثيمة، ولغة واجهة المستخدم ولغة مخرجات النموذج، وتنسيق كتل الرمز)، **الشبكة** (قاعدة API والمنافذ وCORS)، **النماذج** (LLM والتضمين والبحث وتحويل النص إلى كلام وتحويل الكلام إلى نص وتوليد الصور وتوليد الفيديو)، **قاعدة المعرفة** (محرك تحليل المستندات)، **Chat** (الأدوات والمعاملات لكل قدرة، وحدود المرفقات)، **الشركاء والوكلاء** (الوكلاء الفرعيون الذين يمكنك استشارتهم من دور)، و**الذاكرة** (ميزانيات الموحّد).
<div align="center">
<img src="../../assets/figs/web-1.4.6+/settings/01-appearance%20settings.png" alt="إعدادات المظهر والثيمات في DeepTutor" width="900">
diff --git a/assets/README/README_CN.md b/assets/README/README_CN.md
index ab9c51429..472acda7f 100644
--- a/assets/README/README_CN.md
+++ b/assets/README/README_CN.md
@@ -470,7 +470,7 @@ Memory Graph 展示整个金字塔 — L3 综合位于中心,L2 在中间圆
<img src="../../assets/figs/web-1.4.6+/settings/00-setting%20overview.png" alt="DeepTutor 设置中心" width="900">
</div>
-Settings 是操作控制面板,带有实时状态条(后端、LLM、嵌入、搜索)和每个区域的配置卡:**外观**(主题、UI 语言与模型输出语言、代码块样式)、**网络**(API 基础地址、端口、CORS)、**模型**(LLM、嵌入、搜索、文字转语音、语音转文字、图像生成、视频生成)、**知识库**(文档解析引擎)、**聊天**(工具、每个能力的参数、附件上限)、**Partners 与智能体**(可在对话轮次中调用的子智能体),以及**记忆**(整合器预算)。
+Settings 是操作控制面板,带有实时状态条(后端健康状况与整个进程树的常驻内存占用)和每个区域的配置卡:**外观**(主题、UI 语言与模型输出语言、代码块样式)、**网络**(API 基础地址、端口、CORS)、**模型**(LLM、嵌入、搜索、文字转语音、语音转文字、图像生成、视频生成)、**知识库**(文档解析引擎)、**聊天**(工具、每个能力的参数、附件上限)、**Partners 与智能体**(可在对话轮次中调用的子智能体),以及**记忆**(整合器预算)。
<div align="center">
<img src="../../assets/figs/web-1.4.6+/settings/01-appearance%20settings.png" alt="DeepTutor 外观设置与主题" width="900">
diff --git a/assets/README/README_ES.md b/assets/README/README_ES.md
index 67f421cf7..22d88aea7 100644
--- a/assets/README/README_ES.md
+++ b/assets/README/README_ES.md
@@ -482,7 +482,7 @@ El Memory Graph muestra toda la pirámide — síntesis L3 en el centro, L2 en e
<img src="../../assets/figs/web-1.4.6+/settings/00-setting%20overview.png" alt="Hub de configuración DeepTutor" width="900">
</div>
-Settings es el panel de control operativo, con una tira de estado en vivo (Backend, LLM, Embedding, Search) y una tarjeta por área: **Apariencia** (tema, idioma de UI y de salida del modelo, estilo de bloques de código), **Red** (base de API, puertos, CORS), **Modelos** (LLM, Embedding, Search, Text-to-Speech, Speech-to-Text, Image Generation, Video Generation), **Knowledge Base** (motor de análisis de documentos), **Chat** (herramientas, parámetros por capacidad, límites de adjuntos), **Partners & Agents** (los subagentes que puedes consultar desde un turno), y **Memory** (los presupuestos del consolidador).
+Settings es el panel de control operativo, con una tira de estado en vivo (estado del backend y memoria residente en todo el árbol de procesos) y una tarjeta por área: **Apariencia** (tema, idioma de UI y de salida del modelo, estilo de bloques de código), **Red** (base de API, puertos, CORS), **Modelos** (LLM, Embedding, Search, Text-to-Speech, Speech-to-Text, Image Generation, Video Generation), **Knowledge Base** (motor de análisis de documentos), **Chat** (herramientas, parámetros por capacidad, límites de adjuntos), **Partners & Agents** (los subagentes que puedes consultar desde un turno), y **Memory** (los presupuestos del consolidador).
<div align="center">
<img src="../../assets/figs/web-1.4.6+/settings/01-appearance%20settings.png" alt="Configuración de apariencia de DeepTutor y temas" width="900">
diff --git a/assets/README/README_FR.md b/assets/README/README_FR.md
index b344e4a17..a3b6f3c64 100644
--- a/assets/README/README_FR.md
+++ b/assets/README/README_FR.md
@@ -492,7 +492,7 @@ Le Memory Graph montre toute la pyramide — la synthèse L3 au centre, L2 dans
<img src="../../assets/figs/web-1.4.6+/settings/00-setting%20overview.png" alt="Hub Settings de DeepTutor" width="900">
</div>
-Settings est le plan de contrôle opérationnel, avec une bande de statut en direct (Backend, LLM, Embedding, Recherche) et une carte par zone : **Apparence** (thème, langue de l'interface et de sortie du modèle, style des blocs de code), **Réseau** (base d'API, ports, CORS), **Modèles** (LLM, Embedding, Recherche, Texte-à-Parole, Parole-à-Texte, Génération d'Images, Génération de Vidéos), **Base de Connaissances** (moteur d'analyse de documents), **Chat** (outils, paramètres par capacité, limites des pièces jointes), **Partners & Agents** (les sous-agents que vous pouvez consulter depuis un tour), et **Memory** (les budgets du consolidateur).
+Settings est le plan de contrôle opérationnel, avec une bande de statut en direct (santé du backend et mémoire résidente en direct sur l'arborescence de processus) et une carte par zone : **Apparence** (thème, langue de l'interface et de sortie du modèle, style des blocs de code), **Réseau** (base d'API, ports, CORS), **Modèles** (LLM, Embedding, Recherche, Texte-à-Parole, Parole-à-Texte, Génération d'Images, Génération de Vidéos), **Base de Connaissances** (moteur d'analyse de documents), **Chat** (outils, paramètres par capacité, limites des pièces jointes), **Partners & Agents** (les sous-agents que vous pouvez consulter depuis un tour), et **Memory** (les budgets du consolidateur).
<div align="center">
<img src="../../assets/figs/web-1.4.6+/settings/01-appearance%20settings.png" alt="Paramètres d'apparence et thèmes DeepTutor" width="900">
diff --git a/assets/README/README_HI.md b/assets/README/README_HI.md
index 5db66b5b4..9062ad4bc 100644
--- a/assets/README/README_HI.md
+++ b/assets/README/README_HI.md
@@ -470,7 +470,7 @@ Memory Graph पूरा pyramid दिखाता है — L3 synthesis cen
<img src="../../assets/figs/web-1.4.6+/settings/00-setting%20overview.png" alt="DeepTutor settings hub" width="900">
</div>
-Settings operational control plane है, एक live status strip (Backend, LLM, Embedding, Search) और प्रत्येक area के लिए एक card के साथ: **Appearance** (theme, UI और model output language, code-block styling), **Network** (API base, ports, CORS), **Models** (LLM, Embedding, Search, Text-to-Speech, Speech-to-Text, Image Generation, Video Generation), **Knowledge Base** (document parsing engine), **Chat** (tools, per-capability parameters, attachment caps), **Partners & Agents** (वे subagents जिन्हें आप turn से consult कर सकते हैं), और **Memory** (consolidator के budgets)।
+Settings operational control plane है, एक live status strip (Backend health और पूरे process tree में resident memory) और प्रत्येक area के लिए एक card के साथ: **Appearance** (theme, UI और model output language, code-block styling), **Network** (API base, ports, CORS), **Models** (LLM, Embedding, Search, Text-to-Speech, Speech-to-Text, Image Generation, Video Generation), **Knowledge Base** (document parsing engine), **Chat** (tools, per-capability parameters, attachment caps), **Partners & Agents** (वे subagents जिन्हें आप turn से consult कर सकते हैं), और **Memory** (consolidator के budgets)।
<div align="center">
<img src="../../assets/figs/web-1.4.6+/settings/01-appearance%20settings.png" alt="DeepTutor appearance settings and themes" width="900">
diff --git a/assets/README/README_JA.md b/assets/README/README_JA.md
index ea1ea75aa..5274e0a29 100644
--- a/assets/README/README_JA.md
+++ b/assets/README/README_JA.md
@@ -470,7 +470,7 @@ Memory Graphはピラミッド全体を表示します — L3合成が中心、L
<img src="../../assets/figs/web-1.4.6+/settings/00-setting%20overview.png" alt="DeepTutor Settingsハブ" width="900">
</div>
-Settingsはオペレーションコントロールプレーンで、ライブステータスストリップ(バックエンド、LLM、埋め込み、検索)とエリアごとのカードがあります:**外観**(テーマ、UI言語とモデル出力言語、コードブロックスタイル)、**ネットワーク**(APIベース、ポート、CORS)、**モデル**(LLM、埋め込み、検索、TTS、STT、画像生成、動画生成)、**Knowledge Base**(ドキュメント解析エンジン)、**Chat**(ツール、機能パラメーター、添付ファイル上限)、**Partners & Agents**(ターンから相談できるサブエージェント)、**Memory**(コンソリデーターのバジェット)。
+Settingsはオペレーションコントロールプレーンで、ライブステータスストリップ(バックエンドの健全性とプロセスツリー全体の常駐メモリ使用量)とエリアごとのカードがあります:**外観**(テーマ、UI言語とモデル出力言語、コードブロックスタイル)、**ネットワーク**(APIベース、ポート、CORS)、**モデル**(LLM、埋め込み、検索、TTS、STT、画像生成、動画生成)、**Knowledge Base**(ドキュメント解析エンジン)、**Chat**(ツール、機能パラメーター、添付ファイル上限)、**Partners & Agents**(ターンから相談できるサブエージェント)、**Memory**(コンソリデーターのバジェット)。
<div align="center">
<img src="../../assets/figs/web-1.4.6+/settings/01-appearance%20settings.png" alt="DeepTutor外観設定とテーマ" width="900">
diff --git a/assets/README/README_PL.md b/assets/README/README_PL.md
index a2c509508..a9be6dffe 100644
--- a/assets/README/README_PL.md
+++ b/assets/README/README_PL.md
@@ -470,7 +470,7 @@ Memory Graph pokazuje całą piramidę — synteza L3 w centrum, L2 w środkowym
<img src="../../assets/figs/web-1.4.6+/settings/00-setting%20overview.png" alt="Centrum ustawień DeepTutor" width="900">
</div>
-Settings to operacyjna płaszczyzna kontroli z paskiem statusu na żywo (Backend, LLM, Embedding, Search) i jedną kartą na obszar: **Appearance** (motyw, język interfejsu i język odpowiedzi modelu, stylizacja bloków kodu), **Network** (baza API, porty, CORS), **Models** (LLM, Embedding, Search, Text-to-Speech, Speech-to-Text, Image Generation, Video Generation), **Knowledge Base** (silnik parsowania dokumentów), **Chat** (narzędzia, parametry per-możliwość, limity załączników), **Partners & Agents** (subagenty które możesz konsultować z tury) i **Memory** (budżety konsolidatora).
+Settings to operacyjna płaszczyzna kontroli z paskiem statusu na żywo (stan backendu i pamięć rezydentna procesów na żywo w całym drzewie procesów) i jedną kartą na obszar: **Appearance** (motyw, język interfejsu i język odpowiedzi modelu, stylizacja bloków kodu), **Network** (baza API, porty, CORS), **Models** (LLM, Embedding, Search, Text-to-Speech, Speech-to-Text, Image Generation, Video Generation), **Knowledge Base** (silnik parsowania dokumentów), **Chat** (narzędzia, parametry per-możliwość, limity załączników), **Partners & Agents** (subagenty które możesz konsultować z tury) i **Memory** (budżety konsolidatora).
<div align="center">
<img src="../../assets/figs/web-1.4.6+/settings/01-appearance%20settings.png" alt="Ustawienia wyglądu DeepTutor i motywy" width="900">
diff --git a/assets/README/README_PT.md b/assets/README/README_PT.md
index 2efb244a0..fa1e1d1f7 100644
--- a/assets/README/README_PT.md
+++ b/assets/README/README_PT.md
@@ -482,7 +482,7 @@ O Memory Graph mostra toda a pirâmide — síntese L3 no centro, L2 no anel do
<img src="../../assets/figs/web-1.4.6+/settings/00-setting%20overview.png" alt="Hub de configurações DeepTutor" width="900">
</div>
-Configurações é o plano de controlo operacional, com uma faixa de estado em tempo real (Backend, LLM, Embedding, Search) e um cartão por área: **Aparência** (tema, idioma da UI e de saída do modelo, estilo de blocos de código), **Rede** (base de API, portas, CORS), **Modelos** (LLM, Embedding, Search, Text-to-Speech, Speech-to-Text, Geração de Imagem, Geração de Vídeo), **Base de Conhecimento** (motor de análise de documentos), **Chat** (ferramentas, parâmetros por capacidade, limites de anexos), **Partners e Agentes** (os subagentes que pode consultar a partir de um turno) e **Memória** (os orçamentos do consolidador).
+Configurações é o plano de controlo operacional, com uma faixa de estado em tempo real (saúde do backend e memória residente em toda a árvore de processos) e um cartão por área: **Aparência** (tema, idioma da UI e de saída do modelo, estilo de blocos de código), **Rede** (base de API, portas, CORS), **Modelos** (LLM, Embedding, Search, Text-to-Speech, Speech-to-Text, Geração de Imagem, Geração de Vídeo), **Base de Conhecimento** (motor de análise de documentos), **Chat** (ferramentas, parâmetros por capacidade, limites de anexos), **Partners e Agentes** (os subagentes que pode consultar a partir de um turno) e **Memória** (os orçamentos do consolidador).
<div align="center">
<img src="../../assets/figs/web-1.4.6+/settings/01-appearance%20settings.png" alt="Configurações de aparência e temas DeepTutor" width="900">
diff --git a/assets/README/README_RU.md b/assets/README/README_RU.md
index a4fe083df..a9ecb29c0 100644
--- a/assets/README/README_RU.md
+++ b/assets/README/README_RU.md
@@ -470,7 +470,7 @@ Co-Writer — это разделённое рабочее пространст
<img src="../../assets/figs/web-1.4.6+/settings/00-setting%20overview.png" alt="Хаб настроек DeepTutor" width="900">
</div>
-Настройки — это операционная панель управления с живой строкой статуса (Бэкенд, LLM, Встраивание, Поиск) и одной карточкой для каждой области: **Внешний вид** (тема, язык интерфейса и вывода модели, оформление блоков кода), **Сеть** (базовый URL API, порты, CORS), **Модели** (LLM, Встраивание, Поиск, Синтез речи, Распознавание речи, Генерация изображений, Генерация видео), **База знаний** (движок разбора документов), **Чат** (инструменты, параметры по возможностям, лимиты вложений), **Партнёры и агенты** (субагенты, к которым можно обратиться из хода) и **Память** (бюджеты консолидатора).
+Настройки — это операционная панель управления с живой строкой статуса (состояние бэкенда и резидентная память по всему дереву процессов) и одной карточкой для каждой области: **Внешний вид** (тема, язык интерфейса и вывода модели, оформление блоков кода), **Сеть** (базовый URL API, порты, CORS), **Модели** (LLM, Встраивание, Поиск, Синтез речи, Распознавание речи, Генерация изображений, Генерация видео), **База знаний** (движок разбора документов), **Чат** (инструменты, параметры по возможностям, лимиты вложений), **Партнёры и агенты** (субагенты, к которым можно обратиться из хода) и **Память** (бюджеты консолидатора).
<div align="center">
<img src="../../assets/figs/web-1.4.6+/settings/01-appearance%20settings.png" alt="Настройки внешнего вида и темы DeepTutor" width="900">
diff --git a/assets/README/README_TH.md b/assets/README/README_TH.md
index 73da98cc1..61814e4ac 100644
--- a/assets/README/README_TH.md
+++ b/assets/README/README_TH.md
@@ -470,7 +470,7 @@ Memory Graph แสดงพีระมิดทั้งหมด — กา
<img src="../../assets/figs/web-1.4.6+/settings/00-setting%20overview.png" alt="DeepTutor settings hub" width="900">
</div>
-Settings คือ control plane การดำเนินงาน พร้อม live status strip (Backend, LLM, Embedding, Search) และหนึ่งการ์ดต่อพื้นที่: **Appearance** (ธีม, ภาษา UI และภาษา output ของ model, การจัดรูปแบบ code block), **Network** (API base, ports, CORS), **Models** (LLM, Embedding, Search, Text-to-Speech, Speech-to-Text, Image Generation, Video Generation), **Knowledge Base** (เอ็นจินการแยกวิเคราะห์เอกสาร), **Chat** (เครื่องมือ, พารามิเตอร์ต่อความสามารถ, ขีดจำกัดไฟล์แนบ), **Partners & Agents** (subagents ที่คุณปรึกษาได้จาก turn) และ **Memory** (งบประมาณของ consolidator)
+Settings คือ control plane การดำเนินงาน พร้อม live status strip (สถานะ Backend และ resident memory ที่ใช้งานอยู่ทั่วทั้ง process tree) และหนึ่งการ์ดต่อพื้นที่: **Appearance** (ธีม, ภาษา UI และภาษา output ของ model, การจัดรูปแบบ code block), **Network** (API base, ports, CORS), **Models** (LLM, Embedding, Search, Text-to-Speech, Speech-to-Text, Image Generation, Video Generation), **Knowledge Base** (เอ็นจินการแยกวิเคราะห์เอกสาร), **Chat** (เครื่องมือ, พารามิเตอร์ต่อความสามารถ, ขีดจำกัดไฟล์แนบ), **Partners & Agents** (subagents ที่คุณปรึกษาได้จาก turn) และ **Memory** (งบประมาณของ consolidator)
<div align="center">
<img src="../../assets/figs/web-1.4.6+/settings/01-appearance%20settings.png" alt="DeepTutor appearance settings and themes" width="900">
diff --git a/assets/releases/ver1-5-8.md b/assets/releases/past_releases/ver1-5-8.md
similarity index 100%
rename from assets/releases/ver1-5-8.md
rename to assets/releases/past_releases/ver1-5-8.md
diff --git a/assets/releases/ver1-5-11.md b/assets/releases/ver1-5-11.md
new file mode 100644
index 000000000..c4be73ae3
--- /dev/null
+++ b/assets/releases/ver1-5-11.md
@@ -0,0 +1,46 @@
+# DeepTutor v1.5.11 Release Notes
+
+**Release Date:** 2026.08.10
+
+[v1.5.10](ver1-5-10.md) was about the paths underneath a request holding up; this one is about what happens while the answer is still being written. Prose that shared a round with a tool call used to vanish into the trace, a truncated generation was read as the model deciding it had finished, and local indexing sat on the event loop everything else needed. The settings strip also stops restating what the Models page already tells you and starts showing the one number nothing else did: what DeepTutor is actually costing in memory. Drop-in — no migrations, nothing to re-index.
+
+## What's New
+
+### Text around a tool call is no longer lost
+
+DeepSeek's Anthropic-compatible endpoint interleaves user-facing prose and DSML tool-call markup in a single content stream. The old handling was all-or-nothing: once a round's content channel showed DSML markup, the rest of that round was diverted to the thinking channel, so any explanation the model wrote around its call disappeared from the answer. A streaming filter now removes only the DSML envelope and the `invoke` blocks, incrementally — text before, between, and after a call streams and persists as part of the reply. An incomplete call is released verbatim on flush rather than swallowed, and a 512-character ceiling means a stray `<` in ordinary prose cannot make the live stream wait forever for a closing bracket.
+
+### DSML array and object arguments decode correctly
+
+DeepSeek marks essentially every DSML parameter `string="true"`, JSON arrays and objects included, so a container argument arrived at the tool as a string of JSON. Parameter decoding now consults the declared tool schema: a parameter the schema types as `array` or `object` is parsed when the payload actually matches, and the provider's string contract still wins everywhere else. The schema catalog is kept even when a provider rejects native `tools` and the loop falls back to DSML, which is exactly when the parser needs it.
+
+### A truncated generation asks for a continuation
+
+A `length` finish is an incomplete generation, not the model choosing to stop — but it was treated as a finish, so the reply ended mid-sentence. The loop now keeps the visible prefix and asks for a continuation, and the assembled answer carries the prefix through to persistence and the SDK. The round budget was restructured to make this safe: exploration rounds, then a small bounded settlement window, then a single tool-less hard finish, so repeated truncation and malformed tool cycles share one absolute upper bound of `exploration + 4`.
+
+### Live memory usage in Settings
+
+The settings status strip carried Backend, LLM, Embedding, and Search — three of which restated what the Models and Chat pages already own. It now carries the two runtime facts no settings page shows: whether the backend is up, and resident memory across the whole DeepTutor process tree — backend, the Next.js server, and whatever sandboxes and subagent CLIs are alive — with a per-process split inline and a pressure dot that turns amber past two thirds of the limit. It is served by a new `GET /api/v1/system/memory`; `psutil` reads the tree and is imported lazily with a `/proc` fallback, so a missing wheel costs the strip and not the app. Non-admins and platforms where the tree cannot be read get `{available: false}` and no strip.
+
+### Local LightRAG indexing stops stalling everything else
+
+RAG-Anything's local storage backends do synchronous graph merging and JSON serialization from inside async methods, so indexing a document on the service event loop froze unrelated API and LLM work for its duration. Indexing now runs on a worker thread's own event loop, with a narrow bridge that forwards LLM, vision, and embedding calls back to the request's loop, carrying a copy of the caller's context so request-local model and user configuration stays visible. Remote LightRAG servers are unaffected.
+
+### Mastery works from the persisted question, not the model's retelling
+
+A posed question now projects into a small public contract — prompt, type, and the option label/body map — shared by registration, presentation, and grading, with the expected answer staying server-side. `ask_user` renders that persisted state instead of display data the model re-authored, so the choices a learner sees are the choices that will be graded. Registration validates the quiz shape rather than silently accepting a contradictory one: a missing type is inferred from the payload, `short`/`open` questions reject options, and a choice question must carry real option bodies instead of bare `A`/`B`/`C` labels.
+
+### Assorted
+
+- **Connected knowledge bases answer honestly about local files.** A linked external resource has no DeepTutor-managed `raw/` directory; listing its files returns an empty collection instead of inventing one, and endpoints that require a local file return an explicit `409`.
+- **Generated output artifacts are served request-scoped.** A new `/api/outputs` endpoint resolves and authorizes a path in one operation and fails closed with a `404` when there is no request user, so an auth-context regression cannot hand an administrator's artifact to an ordinary request.
+- **Visualize iframes shrink as well as grow** — the height bridge measures body content instead of a root height the host had already stretched, and coalesces reports into one animation frame.
+- **The chat page's model list is fetched once.** Option loading moved into a hook with single-flight de-duplication, so concurrent mounts and a tab-focus refresh no longer stack up identical requests.
+
+## Upgrade Notes
+
+`pip install -U deeptutor`; Docker users pull `ghcr.io/hkuds/deeptutor:latest`. No schema changes, no re-index, no migration.
+
+- **`psutil` is a new dependency** and installs with the upgrade. It is imported lazily behind a `/proc` fallback — if your environment cannot provide it, the memory strip stays hidden and nothing else changes.
+
+**Full Changelog**: https://github.com/HKUDS/DeepTutor/compare/v1.5.10...v1.5.11
diff --git a/deeptutor/__version__.py b/deeptutor/__version__.py
index 02f9bf582..a2dc05af6 100644
--- a/deeptutor/__version__.py
+++ b/deeptutor/__version__.py
@@ -6,6 +6,6 @@ before publishing to PyPI; the web sidebar badge and CLI banner read from this
file directly.
"""
-__version__ = "1.5.10"
+__version__ = "1.5.11"
__all__ = ("__version__",)
diff --git a/tests/agents/chat/test_context_budget.py b/tests/agents/chat/test_context_budget.py
index 51caa71f3..481d508c0 100644
--- a/tests/agents/chat/test_context_budget.py
+++ b/tests/agents/chat/test_context_budget.py
@@ -14,6 +14,7 @@ from typing import Any
import pytest
+from deeptutor.agents.chat.agent_loop import MAX_SETTLEMENT_ROUNDS
from deeptutor.agents.chat.agentic_pipeline import AgenticChatPipeline
from deeptutor.agents.chat.context_budget import (
LLMRequestSnapshot,
@@ -460,6 +461,11 @@ async def test_forced_finish_still_reports_the_tools_the_turn_carried(
# tools from, to make the model answer. Reading the budget off that round
# verbatim would report zero tool tokens for a turn whose schemas sat in
# the window the entire time.
+ #
+ # Exhausting the budget means exploration *and* the bounded settlement
+ # window that follows it — settlement rounds deliberately keep tools
+ # available, so the model must keep requesting them to reach the hard
+ # finish.
monkeypatch.setattr(
"deeptutor.agents.chat.agentic_pipeline.get_llm_config",
lambda: SimpleNamespace(
@@ -473,7 +479,10 @@ async def test_forced_finish_still_reports_the_tools_the_turn_carried(
)
client = _MultiTurnChatClient(
[
- [_tool_call_chunk("rag", '{"query": "gd", "kb_name": "kb"}')],
+ [_tool_call_chunk("rag", '{"query": "gd", "kb_name": "kb"}')]
+ for _ in range(1 + MAX_SETTLEMENT_ROUNDS)
+ ]
+ + [
[
SimpleNamespace(
choices=[
diff --git a/web/components/settings/SettingsContext.tsx b/web/components/settings/SettingsContext.tsx
index 0f3e09e07..729c25d37 100644
--- a/web/components/settings/SettingsContext.tsx
+++ b/web/components/settings/SettingsContext.tsx
@@ -640,9 +640,7 @@ export function SettingsProvider({ children }: { children: ReactNode }) {
}
setTheme(payload.ui.theme);
setLanguage(payload.ui.language);
- setResponseLanguage(
- payload.ui.response_language ?? payload.ui.language,
- );
+ setResponseLanguage(payload.ui.response_language ?? payload.ui.language);
// Writes the backend-loaded values into app-shell storage and dispatches
// the code-block settings event; AppShellContext (the single source) picks
// them up, so no separate copy needs seeding here.
diff --git a/web/context/UnifiedChatContext.tsx b/web/context/UnifiedChatContext.tsx
index c6aec9878..263cbd247 100644
--- a/web/context/UnifiedChatContext.tsx
+++ b/web/context/UnifiedChatContext.tsx
@@ -30,10 +30,7 @@ import {
import { normalizeMarkdownForDisplay } from "@/lib/markdown-display";
import { normalizeMessageContent } from "@/lib/message-content";
import { buildVisiblePath, tipMessageId } from "@/lib/message-branches";
-import {
- nextOptimisticId,
- resolvePersistedMessage,
-} from "@/lib/optimistic-id";
+import { nextOptimisticId, resolvePersistedMessage } from "@/lib/optimistic-id";
import { reconcileTurnIds } from "@/lib/turn-reconcile";
import {
isNarrationMarker,
diff --git a/web/hooks/useLLMOptions.ts b/web/hooks/useLLMOptions.ts
index c755110ed..0ad5400f2 100644
--- a/web/hooks/useLLMOptions.ts
+++ b/web/hooks/useLLMOptions.ts
@@ -32,25 +32,30 @@ export function useLLMOptions() {
};
}, []);
- const refresh = useCallback(async (options?: RefreshOptions) => {
- const requestId = ++latestRequestRef.current;
- dispatch({
- type: "refresh-started",
- background: options?.background ?? false,
- });
+ const refresh = useCallback(
+ async (options?: RefreshOptions) => {
+ const requestId = ++latestRequestRef.current;
+ dispatch({
+ type: "refresh-started",
+ background: options?.background ?? false,
+ });
- // Browser lifecycle events commonly arrive as a focus/pageshow/visibility
- // cluster. Coalesce that cluster here, without changing the global cache's
- // force semantics for mutation-sensitive resources such as knowledge bases.
- try {
- const payload = await loadOptions({ force: options?.force });
- if (!mountedRef.current || requestId !== latestRequestRef.current) return;
- dispatch({ type: "refresh-succeeded", payload });
- } catch {
- if (!mountedRef.current || requestId !== latestRequestRef.current) return;
- dispatch({ type: "refresh-failed" });
- }
- }, [loadOptions]);
+ // Browser lifecycle events commonly arrive as a focus/pageshow/visibility
+ // cluster. Coalesce that cluster here, without changing the global cache's
+ // force semantics for mutation-sensitive resources such as knowledge bases.
+ try {
+ const payload = await loadOptions({ force: options?.force });
+ if (!mountedRef.current || requestId !== latestRequestRef.current)
+ return;
+ dispatch({ type: "refresh-succeeded", payload });
+ } catch {
+ if (!mountedRef.current || requestId !== latestRequestRef.current)
+ return;
+ dispatch({ type: "refresh-failed" });
+ }
+ },
+ [loadOptions],
+ );
useEffect(() => {
void refresh();
diff --git a/web/lib/iframe-html.ts b/web/lib/iframe-html.ts
index a6000fc4d..a40cbaea7 100644
--- a/web/lib/iframe-html.ts
+++ b/web/lib/iframe-html.ts
@@ -91,7 +91,8 @@ export function sanitizeIframeHtml(html: string): string {
* - observers post the current body content height so the host can grow and
* shrink the iframe instead of retaining an old viewport height.
*/
-const BRIDGE_SCRIPT = `<script data-dt-bridge>
+const BRIDGE_SCRIPT =
+ `<script data-dt-bridge>
(function () {
window.sendPrompt = function (text) {
try {
@@ -161,8 +162,7 @@ const BRIDGE_SCRIPT = `<script data-dt-bridge>
}
window.addEventListener("load", scheduleHeightReport);
})();
-<` +
- "/script>";
+<` + "/script>";
function injectBridge(html: string): string {
if (html.includes("</body>")) {
diff --git a/web/tests/stream.test.ts b/web/tests/stream.test.ts
index 064fba68d..0a65de64a 100644
--- a/web/tests/stream.test.ts
+++ b/web/tests/stream.test.ts
@@ -61,7 +61,10 @@ test("clean prose surrounding a DSML call remains answer-visible", () => {
assert.deepEqual([...collectNarrationCallIds(events)], []);
assert.equal(isNarrationMarker(events[1]), false);
- assert.equal(recomputeAnswerContent(events), "Great job! Choose the next topic.");
+ assert.equal(
+ recomputeAnswerContent(events),
+ "Great job! Choose the next topic.",
+ );
});
test("token-limit continuation replays the exact visible answer", () => {