Files
jmj 3889b6d910 feat(repair): add toggle for offscreen sandbox precheck
The offscreen WebView validation runs once per page and is the heaviest
part of the render pipeline on low-end TV boxes: it wakes an invisible
WebView, loads the sandbox page, injects the full DOM and waits ~550ms
before mounting the real page.

Add RepairAiConfig.precheckEnabled (default true) so it can be disabled:

- Android: skip validateInOffscreenSandbox and mount directly, reporting
  status "rendered_precheck_skipped" so the outcome stays distinguishable
  in render results. Exposed in the terminal settings dialog and accepted
  from hub config pushes.
- Hub: add precheck_enabled to RepairAIConfig, the admin form and the
  config payload so the switch can be toggled remotely.

Trade-off: with precheck off, malformed pages surface on screen instead
of being caught and repaired before mounting.
2026-11-30 11:06:17 +08:00
..