mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-04 00:51:17 +08:00
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>