mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #1833] [CLOSED] Add optional isolated full-TeX chat math rendering #3708
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#3708
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/1833
Author: @CC-David-CC
Created: 10/10/2026
Status: ❌ Closed
Base:
main← Head:feat/web-math-tex📝 Commits (8)
56063f3web: isolate shared chat math foundation and adapter contractebc4a72web: render chat math with an optional isolated full TeX worker276da31docs: distinguish Docker installation from pending native TeX validation253ea8cMerge remote-tracking branch 'upstream/main' into HEAD7737627Merge commit '61b3fb5dd3' into HEAD1606d9cMerge commit '253ea8cfe5' into HEADfba7967Remove full TeX time budgets and validate current-main adapter1f075d0Merge Strata v0.1.43 into feat/web-math-tex📊 Changes
39 files changed (+2366 additions, -6 deletions)
View changed files
➕
docs/WEB_MATH.md(+94 -0)➕
docs/WEB_MATH_COMPARISON.md(+99 -0)➕
docs/WEB_MATH_INTERFACE.md(+22 -0)➕
docs/web-math-results/katex-chromium.json(+81 -0)➕
docs/web-math-results/katex-firefox.json(+81 -0)➕
docs/web-math-results/katex-webkit.json(+81 -0)➕
docs/web-math-results/mathjax-chromium.json(+81 -0)➕
docs/web-math-results/mathjax-firefox.json(+81 -0)➕
docs/web-math-results/mathjax-webkit.json(+81 -0)➕
docs/web-math-results/tex-chromium.json(+82 -0)➕
docs/web-math-results/tex-firefox.json(+82 -0)➕
docs/web-math-results/tex-linux-chromium.json(+82 -0)➕
docs/web-math-results/tex-runtime.json(+15 -0)➕
docs/web-math-results/tex-webkit.json(+82 -0)➕
docs/web-math-results/tex-worker.json(+86 -0)➕
serve/fixtures/math.json(+12 -0)📝
serve/server.py(+32 -2)➕
serve/test_tex_math.py(+84 -0)➕
serve/tex_math.py(+40 -0)➕
serve/tex_worker/Dockerfile(+13 -0)...and 19 more files
📄 Description
Adds optional XeLaTeX → PDF → filtered SVG rendering for assistant equations, with the shared parser, settings, queue and source-preserving chat integration. The shared core does not render. Rendering starts disabled; the compiler container is built and started explicitly, with no dependencies installed by normal Strata startup.
Refreshed to upstream main
61b3fb5dand shared math core253ea8cf. Compilation has no fixed CPU/wall budget, host transport timeout or TeX browser conversion deadline. Browser-only adapters retain their default deadlines. Cancelled compiler RPCs keep their queue slot until completion and discard the cancelled result. Memory, process, filesystem, input/output and SVG limits remain enabled.Fresh Windows/Docker Desktop validation: 41 endpoint/security tests, seven valid compiler cases, six malformed/restricted compiler cases, and the complete Chromium, Firefox and Playwright WebKit suites passed. The unbounded recursive TeX macro fixture is explicitly skipped and requires operator cancellation by restarting the worker. Source copy/export/history/model requests remain unchanged; the SVG uses source alt text rather than semantic MathML.
Current refresh evidence and reproduction, including exact image/worker identity, isolation, raw timings and screenshots. Single acceptance-run timings are descriptive; Chromium cold timing includes corpus contention. The archived image is 7.04 GB uncompressed, not an estimated download size.
Addresses #1769 and #1780. See setup and adapter contract.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.