* fix(math_animator): make the code-repair deadline configurable
The render-fix loop's overall repair timeout was fixed at 180s: run_render
built CodeRetryManager without passing repair_timeout_seconds, so the knob
existed on the manager but was unreachable from settings. A long reasoning
model repairing a book animation was cancelled mid-edit at that ceiling with
no way to raise it (#2767).
Lift the deadline into a runtime setting capabilities.math_animator.repair_timeout
in main.yaml, read once in run_render through a get_math_animator_params getter
that shares the UI's coerce/clamp path. The single read site covers all three
callers (math_animator capability, visualize Manim route, book AnimationGenerator),
and an in-flight render keeps the value it started with. The apply branch only
persists when the key is present, so saving unrelated animation settings does not
shadow the loop's default (#1316 shape). Clarify both repair-timeout errors to name
the stage, the effective seconds, and that this is a local deadline rather than a
provider connection failure.
Backend only; the Settings-form field is left to a follow-up and failure-stage
diagnostics/artifact retention to #2768.
* fix(config): keep repair timeout default out of settings saves
The Settings page PUTs the full GET DTO, so exposing the runtime default caused unrelated saves to persist repair_timeout=180. Omit it until explicitly configured, cover the full round trip, and soften the timeout diagnostic.
---------
Co-authored-by: ZQR1101 <278034003+ZQR1101@users.noreply.github.com>
Repairs are targeted edits to a script that already exists: a render
error, a layout finding, a compile error. With a reasoning chat model
they routinely take minutes (Math Animator repairs regularly ran past
the 180 s repair timeout); the Settings task model does them in seconds.
task_model_agent(factory) builds an agent bound to the task model at its
configured reasoning level, or returns None when no task model is set.
- Math Animator: repair_agent = task-model CodeGeneratorAgent, falling
back to the main code agent.
- Video Lesson: the first draft is still written by the chat model;
attempts 2+ go to a task-model LessonWriterAgent that shares the same
conversation (share_conversation), falling back to the main writer.
Without a vision model the pipeline has no layout review, so overlapping
labels, lines through formulas and text cut off by the frame ship as-is.
layout_probe.py replays the scene with Manim's dry_run (no frames drawn,
a few seconds), snapshots every visible text and stroked VMobject after
each play()/wait(), and reports in scene units: text overlapping text,
strokes crossing text, and text or shapes past the (camera) frame edge.
When visual review is off and output is video, the probe runs before each
render. A failing layout is raised as a ManimRenderError, so the existing
repair loop fixes it before any frame is drawn (MAX_LAYOUT_ROUNDS = 3);
after that the scene renders as it stands, and the post-render review only
records what is left. The probe fails open: a crash or timeout skips it.
The English code-generator prompt gains layout rules and the Manim
Community API names the renderer rejects; the repair prompt says how to
fix layout findings.
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
* fix: make prompt loading and capability failures terminal
* fix: handle remote knowledge base file listings
* fix: proxy uploads to LightRAG servers
* fix: show remote LightRAG document status
* fix: clarify knowledge upload confirmation
* fix(knowledge): hide reindex for connected bases
* refactor: narrow this branch to the prompt-resource fix
Split out of the original PR so #737's two halves land separately:
- The terminal-failure change to runtime/orchestrator.py is already on dev
via #732, which shipped the same turn_terminal/status metadata. Dropped
here rather than merged twice.
- The LightRAG Server upload forwarding and remote document listing belong
to #755, not #737. Preserved on origin/keep/738-lightrag-server for a
follow-up PR against that issue.
- Dropped the third prompt fallback that read the adjacent YAML with
pathlib+yaml directly. With the cache no longer poisoned by a miss,
reload_prompts() recovers on its own, and PromptManager stays the only
thing that knows how to locate a prompt file.
---------
Co-authored-by: Bingxi Zhao (Frank) <13051345080@163.com>
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>
Replace asyncio.create_subprocess_exec with subprocess.Popen + reader
threads + asyncio.Queue. This fixes Windows SelectorEventLoop
incompatibility while preserving real-time line-by-line progress output
(unlike subprocess.run which buffers until completion).
Made-with: Cursor
Instead of replacing asyncio.create_subprocess_exec with subprocess.run
(which loses real-time streaming and cancellation), fix the root cause:
set WindowsProactorEventLoopPolicy before uvicorn starts so that
create_subprocess_exec works correctly on Windows.
This preserves the original async streaming renderer while fixing
Windows compatibility at the event loop level.
Made-with: Cursor
This PR fixes multiple Windows compatibility issues that prevented
the Math Animator from generating videos on Windows systems.
### Changes
1. **renderer.py**: Fix subprocess execution on Windows
- Replace `asyncio.create_subprocess_exec` with `subprocess.run` + `asyncio.to_thread`
- The original approach silently fails on Windows when uvicorn uses SelectorEventLoop (default)
- New approach works regardless of event loop type
2. **code_generator_agent.yaml (en/zh)**: Add Manim v0.20.1 compatibility constraints
- Prohibit `MarkupText` (requires LaTeX)
- Prohibit `stroke_dash_pattern` parameter (not supported in v0.20.1)
- Prohibit `save_state()` method (not supported in MovingCameraScene)
- Applied to both `generate_system` and `retry_system` sections
3. **ChatComposer.tsx**: Suppress hydration warning for i18n placeholder
- Add `suppressHydrationWarning` to textarea
- Resolves SSR/CSR text mismatch warning for language-specific placeholders
### Testing
- ✅ CLI mode: Successfully generated Pythagorean theorem animation (660KB)
- ✅ Web mode: Successfully generated cone cross-section animation
- ✅ Auto-retry: First attempt error → LLM repair → second attempt success
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>