mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-06 08:18:54 +00:00
Owner's top item. The Loop select's state started at 'off' and was never synced from the saved file (only the select itself set it), so after a restart a saved On showed Off, the page sent no loop word with a re-prepare (context, KV, pictures change), and Control's setup, where Loop is opt-in (a run that does not say --loop on leaves it Off, d60c78b0f5 / cc04b246c9), turned the saved On off. NativeModels.tsx: the effect that opens a version from its saved settings now also sets the Loop select from installed.q4Loop (On only when saved On), a model that is not installed starts Off (never the last model's), and the effect follows installed.q4Loop when a Load or a Settings save changes it. The page already sends `loop: 'on'` with a download only when the select is On, and q4_loop in a Load only when it differs from the saved one, so with the select synced a re-prepare of a saved On carries --loop on, and an Off the person chose is sent as before. Tests: tests/qwen4-loop-ui-sync.test.mjs. Functional, through the host's fake-Control fixture: an install with loop on reaches strata_install as `loop: 'on'`, loop off or none reaches no loop word, a context / KV / pictures change keeps it, another family never gets one. Pins on the source for the sync (installed model, not installed, the effect's dependency) and for what the page sends. The page itself is not rendered in a test; the screenshot harness (preview host) shows the select but its fixture has no installed model.