2.1 — Code Review Hardening + Regression Test Framework
Code Review Hardening + Regression Test Framework
What's New
Features & Improvements
- API Key clear/reset — cleanly clear a key in the Web UI instead of only overwriting it.
- Automated regression framework —
scripts/regression_runner.pyruns 9 scenarios concurrently (WeightedSemaphore, total weight ≤ 10), with incremental JSON + Markdown reports, endpoint verification, artifact checks, and resume / quick-verify /--cleanupmodes. - Longer keyframes timeout — video submission timeout raised to 180s for keyframes-heavy tasks to avoid spurious failures on slow renders.
Refactoring & Optimizations
- Security hardening (H1–H6) — API Key reads unified via
config.py(no hardcoded keys); upload path traversal blocked; shell injection removed (shell=True→ list args); CJK font fallback in subtitle overlay; moviepy log leakage silenced; JSON parse failure in screenwriter hardened with LLM retry fallback. - Robustness (M1–M10, L1–L8) — index/bounds safety, granular exception handling, path normalization, unified HTTP timeouts, task-state race fix, TTS file handle leak fix, i18n variable shadowing fix, dead-file cleanup, and the first automated unit test suite.
Bug Fixes
- UI bug: switching language no longer flips the API Key status display back to "not configured".
- Subtitle multi-line wrapping (dynamic
max_chars_per_line, CJK punctuation-break priority,method="caption"). - TTS edge-case error handling with automatic 2.5× volume boost.
- Concatenator single-video shortcut optimization + subtitle overlay failure degradation (non-blocking).
start.shauto-creates venv, installs dependencies, and opens the browser on macOS.
About Agnes Video Generator
A completely free, open-source AI video generator: turn text into multi-scene AI videos with narration and subtitles.
- Free and open source — no payment, no high-end GPU required
- Text-to-video, image-to-video, digital anchor and image generation
- Powered by free Agnes AI models, rendered entirely in the cloud
- Runs via Web UI, Docker or npm, and supports self-hosting
Related Pages
Release Notes
Changelog for Agnes Video Generator: new features, improvements and bug fixes for every release.
Try Online Demo | Agnes Video
Enter a prompt and generate AI videos and images instantly
Text to Video API — Free AI Video Generation API, No GPU | Agnes Video
Programmatically access Agnes AI's free video models. Text-to-video, image-to-video, and narration APIs. Developer-friendly, zero-cost, no high-end GPU required.
Why you can trust this
Written by a practicing developer and cross-checked against authoritative primary sources such as arXiv papers, vendor technical reports, and the Stanford AI Index.
SandGrid@lcy362
Author of Agnes Video Generator · Full-stack Developer
Independent developer and author of Agnes Video Generator, an open-source (MIT) AI video generation tool built on Agnes AI's free video models. Has helped 1,000+ creators produce AI videos at zero cost. Focused on making video generation models accessible and production-ready; content is based on hands-on practice and primary research.
View on GitHubLast updated:2026-08-21
Ready to Start Creating?
"Making world-class AI belong to everyone." — Bruce Yang. It's completely free, no credit card, and you won't need a high-end GPU. Your first AI video starts at zero cost. Want to use Agnes AI's free video models? This is the easiest way in.
Clone the GitHub repo and launch in 2 minutes