End-to-end probe against Qwen3-0.6B caught a real renderer-engagement bug: the model emits a complete SVG body inside a ``` fence but forgets the closing ```. parseCodeFence is strict about the closing backticks, and the StreamdownBlock fallback only tried parseIncompleteCodeFence while isIncomplete was true. Once streaming finished, parseCodeFence returned null, the fallback was skipped, and HtmlSvgRenderer never mounted -- the user saw a plain code block where the new Preview / Code tabs should have been. Fix: always fall back to parseIncompleteCodeFence when parseCodeFence fails. The fallback is safe for non-fence content (returns null) and for non-HTML/SVG fences (HtmlSvgRenderer only engages on html/svg languages; everything else falls through to renderHighlightedCode). Adds a vitest case pinning the unclosed-final-fence path so a future regression is loud. |
||
|---|---|---|
| .. | ||
| backend | ||
| frontend | ||
| src-tauri | ||
| __init__.py | ||
| install_llama_prebuilt.py | ||
| install_python_stack.py | ||
| LICENSE.AGPL-3.0 | ||
| package-lock.json | ||
| package.json | ||
| setup.bat | ||
| setup.ps1 | ||
| setup.sh | ||
| Unsloth_Studio_Colab.ipynb | ||