Native LightRAG role models: extraction, keyword, query and vision each
resolve their own model, vision indexing pins a vision-capable model
instead of silently degrading, and a knowledge base records which models
and which embedding built it. A published index refuses queries after its
embedding identity changes rather than searching a foreign vector space,
and a rebuild is confirmed against the configuration it will actually
use — a stale confirmation is rejected instead of quietly rebuilding
something else. A failed publication is withdrawn, not left half-written.
PDF attachments follow the parsing engine configured for the workspace,
report the stage they are in, and a truncated answer says it was
truncated with the counters that prove it. Providers are no longer
filtered out of the embedding picker on an unverifiable capability guess:
configure the model and test it. Visualize's temperature and token budget
are settings rather than literals. Notebook evidence no longer depends on
the chat session that produced it.
See assets/releases/ver1-6-10.md for the full notes, and the README
translations for the propagated prose.
Ship a content workspace you choose, one exec tool for every language,
Mastery Path modes that gate its tools, and Settings that grades
readiness instead of listing faults.
Release notes: assets/releases/ver1-6-5.md
Models regularly answer the analysis stage with a visual_genre or render_type that is not in the prompt's list ("simulation", "diagram"). Both fields are enums, so validation aborted the render over a label no downstream stage strictly needs.
VisualizationAnalysis now degrades an unknown genre to "" and an unknown render_type to svg, logging the rejected value. Putting it on the model rather than at the one parse site also covers render_type, which is required with no default.
Follow-up to the three PRs merged for #711, #709 and #707 — same fixes,
moved onto the seam each one belongs to, plus the regression tests they
shipped without.
#711 — partner Codex login. The prefix sniffing lived inside the
credential store, so codex_auth had to know what a partner is. Add
`get_owner_path_service()` next to `get_current_path_service()`, where
scope resolution already lives, and `is_partner_user_id()` next to the
prefix that defines it. codex_auth now just asks for the owner's root.
#709 — missing web/node_modules. Split the side-effecting install out of
`_resolve_frontend()` into `_ensure_web_dependencies()`; the resolver
goes back to resolving, and the launcher's second resolve pass is a
single `Path.exists()`.
#707 — book spine and visualize. The blocking calls bypassed
`BaseAgent.call_llm` for the factory directly, which silently dropped the
image attachments the analysis stage is handed, the trace metadata the
Activity panel renders, and the per-agent api_key/base_url/binding
routing. Route all three through the agent seam; blocking behaviour and
its rationale are unchanged.
* fix(web): use WebSocket for book creation to avoid proxy timeout
* fix(book): stabilize spine synthesis with non-streaming LLM
* fix(web): use WebSocket for regenerate-block to avoid proxy timeout
* fix(visualize): use non-streaming LLM to avoid reasoning truncation in analysis/code generation
---------
Co-authored-by: raidenShogun <18191371014@163.com>
Models often close a fenced block on the same line as the last content.
Require only an optional newline before the closing fence so mermaid and
chart payloads are extracted instead of returned still-fenced.
A broad consolidation release across four product surfaces.
- Learning Space: Space becomes a learning dashboard; My Agents imports
local Claude Code / Codex chat history into resumable agents (with an
objective explore_context briefing so the tutor never role-plays the
user); Memory is promoted to a top-level /memory route; Partner
conversations flow into Memory; EduHub skills install inline.
- Knowledge Center: /knowledge rebuilt as a console with per-engine
detail pages; GraphRAG / PageIndex / LightRAG engines join LlamaIndex;
linked-KB read-only mounts; Obsidian live-vault capability.
- Settings: pluggable document parsing (MinerU / Docling / MarkItDown)
with a content-addressed cache and MinerU cloud/local backends; voice
TTS/STT; image & video generation; rebuilt settings navigation.
- Platform: per-user capability gating by assigned model; Solve rebuilt
on the chat loop with a per-step gate and mid-run failure fallback;
username login + inline errors; CLI skill publish/update; picker
polish; math-before-citation render fix.
Docs were split out to a standalone site, so site/ is now landing-page
only. Bumps __version__ to 1.4.6 and adds assets/releases/ver1-4-6.md.
Folds in mypy fixes surfaced by pre-commit (mineru/local Path typing,
knowledge/manager no-redef, explore_context token kwargs, CLI
set_dist_tag capability probe) plus prettier reformatting of
previously-committed web files.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Finishes the visualize overhaul (517c90b backend + b499ba7 frontend).
- Book figure/interactive now share the chat path: deterministic local
validate_visualization, one targeted repair on failure (figure), and
GenerationFailure on residual invalidity so the book engine retries
instead of baking a broken figure/placeholder into the book.
- Delete the now-dead open-ended LLM review: pipeline.run_review and the
review prompts (review_agent.yaml keeps only repair_system/
repair_user_template). ReviewAgent's process() IS the repair pass now
(BaseAgent.process is abstract, so repair was renamed, not stubbed).
- Prompts: drop the 'split into an overview plus a detail figure' wording
that contradicted the single-<svg> policy; add a text vertical-centering
rule (y = box center, host centers via CSS) and a visual_genre fallback
line. en + zh kept in sync.
- svg-theme.css: dominant-baseline: central on .dt-svg-root text — the
host guarantees vertical centering so the model never has to emit (or
misspell) dominant-baseline itself.
- tests: replace the stale FakeReview/run_review fake with a valid-svg
no-repair path in test_capabilities_runtime.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Squash-merge of #490 (skinred78) with two non-trivial conflict resolutions:
* `openai_compat_provider.py`: PR inlined reasoning_effort logic that has since
been refactored into `build_openai_compatible_reasoning_kwargs`. Keep the
helper call; the Gemini default-down will be folded into the helper in a
follow-up commit instead of duplicating it inline.
* `capabilities/visualize.py`: i18n was applied to the review-stage messages
after the PR forked. Kept the new try/except review-fallback structure but
routed all three messages through `i18n.t(...)`; added `review_skipped_error`
key to en/zh visualize.yaml.
Other PR changes applied as-is:
* `executors.py` / `cloud_provider.py`: inline Gemini 2.5/3.x default-down
* `loader.py`: section_map entry for `visualize`
* `init.py`: `capabilities.visualize` default with max_tokens=16384
* `code_generator_agent.py`: defensive root-tag trim for svg/html
Closes#489.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Capability infrastructure:
- New capabilities/_shared.emit_capability_result helper fills the
result envelope (label, summary, payload, render hints, UsageTracker
totals) consistently across modes.
- StatusI18n loads capability status copy from
capabilities/prompts/{en,zh}/<name>.yaml; legacy main.yaml strings
removed.
- New capabilities_settings router + service-config module power the
/settings/capabilities admin page (live capability list, defaults,
per-capability overrides).
Visualize + Animator merge:
- Visualize's AnalysisAgent now picks one of six render_types:
svg / chartjs / mermaid / html (text pipeline) or manim_video /
manim_image (Manim subprocess). The result envelope carries
render_type so the frontend delegates to the right viewer.
- math_animator capability is folded behind Visualize; the standalone
MathAnimatorConfigPanel.tsx is removed. The Animator sidebar entry
is gone, but Manim outputs and existing records remain unaffected.
Settings UI:
- /settings page split into appearance / capabilities / embedding /
llm / mcp / memory / search / status / tools tabs with a shared
layout and items index.
- New /settings/tools page lists chat-mountable tools and surfaces
availability (e.g. gh for github_query) via a new tools router.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Six bugs that combined to break the Visualize capability on Gemini 2.5
Flash (and similar thinking-by-default models). Each is independently
useful, but the user-visible symptom — Visualize "kind of works but
output is randomly truncated at ~370 chars" — needs all of them.
1. Gemini 2.5/3.x reasoning-tokens default (root cause)
Gemini 2.5+ models burn most of `max_tokens` on internal "thinking"
tokens by default. With `max_tokens=4096`, ~3900 went to reasoning
and only ~160 came out as actual content, causing finish_reason=length
on every multi-step pipeline (Visualize codegen + review, Deep Solve,
anything that asks for a structured output beyond a sentence).
Default `reasoning_effort="none"` for Gemini 2.5/3.x models when the
caller doesn't specify, in all three execution paths:
- provider_core/openai_compat_provider.py:_build_kwargs (live path)
- executors.py:sdk_complete / sdk_stream (legacy SDK path)
- cloud_provider.py:_openai_complete / _openai_stream (aiohttp fallback)
2. visualize capability had no agents.yaml entry
`get_agent_params("visualize")` silently fell through to the 4096
default because there was no section_map entry and no
DEFAULT_AGENTS_SETTINGS entry. Added both, with a 16384-token budget
appropriate for full HTML pages.
3. Review stage crashed hard on JSON parse failure
`ReviewAgent.process` does `ReviewResult.model_validate(extract_json_object(response))`.
When the model returned prose instead of JSON (common with large SVGs
that the model can't escape into a JSON string), the parse raised and
killed the entire turn. Wrapped pipeline.run_review() in try/except
so review failure falls back to the unreviewed draft and the user
still gets a rendered result.
4. Codegen output not trimmed to the root tag
Models often wrap SVG/HTML in prose ("Here you go: <svg>…</svg>
Enjoy!") or emit a closing code fence on the same line as `</html>`,
which `extract_code_block`'s regex (requiring a leading \n before
the fence) doesn't strip. Added defensive root-tag trimming for
render_type=="svg" and render_type=="html".
Verified end-to-end on Gemini 2.5 Flash via the CLI and headless
Playwright: full 22 KB long-division HTML page, no truncation, all
interactive elements present, multi-step walkthrough completes
correctly (7852 ÷ 6 → 1308 R 4).
Resolved conflicts in:
- deeptutor/agents/notebook/summarize_agent.py
Kept the YAML-driven record_hints lookup from dev (covers chat,
co_writer, guided_learning, default), instead of the inline
dict from guide2.0 which only had chat + co_writer.
- deeptutor/capabilities/visualize.py
Kept dev's load_answer_now_prompts(...) path so the answer-now
fast path stays prompt-externalised under
deeptutor/agents/visualize/prompts/{en,zh}/answer_now.yaml.
- deeptutor/services/prompt/manager.py
Merged the MODULES list: dropped 'guide' (deleted by guide2.0),
added 'book' from guide2.0, and kept dev's 'notebook',
'visualize', 'chat' modules.
Made-with: Cursor
- Move inline LLM prompts out of capabilities/agents into versioned
prompt YAMLs under each agent's prompts/{en,zh}/:
- notebook: analysis_agent, summarize_agent
- question/research/solve/visualize: answer_now
- Slim down capability modules (_answer_now, deep_question,
deep_research, deep_solve, visualize) to load prompts via the
prompt manager instead of hard-coding strings
- Update services/prompt/manager.py to support the new prompt paths
- Refresh web config panels (quiz, research, visualize, math-animator)
and shared types to align with the new capability options
- Update Mermaid, ChatMessages, TracePanels and settings page,
plus en/zh locales for the new copy
Made-with: Cursor