Files
Claude 69bb17e468 fix(translate): stop crash-looping on CPUs without AVX (#1512)
The bergamot wheel needs AVX. On a CPU without it (Celeron N5105, N100-class
mini PCs) importing it dies with SIGILL, which killed the whole proxy on the
first translated page; Docker restarted it and the /viewer healthcheck kept
reporting healthy.

At startup the proxy now tries the import once in a child process. If the
child dies, no language is offered, the library is forwarded untranslated,
and the reason ("this CPU lacks the AVX instructions ...") is logged and shown
in the page's translate bar.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0118UBk31k7JCzTSuktPuqVi
2026-11-17 22:18:31 +00:00
..