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