mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-06 08:18:54 +00:00
APP-QA / owner: the Docker image documented DRAFTING and VISION but had no Loop variable. tools/docker/entrypoint.sh: LOOP=on|off (also yes/no/true/false/1/0, any case) becomes `strata launch --loop on|off`, the one path the app and the Terminal use. A bad value ends the start with a plain message (exit 2). With FAMILY set to another family it is said once ("LOOP=on is for Qwen4-35B-A3B only, so it is ignored for FAMILY=...") and not passed; with no FAMILY the launcher decides by the model it picks (it already says so for a model that is not Qwen4). Unset passes nothing: a first start is Off and a saved preset keeps what it has. docs/DOCKER.md: the LOOP row.
So that Off really clears it: strata_cli/launch/runner.py derive_config removes every Loop flag (both spellings, --loop-direct-t1) from "args" and from "user_args" after the argument layers, when the config has no Loop key (Off, or Loop not ready). The layers put the person's copy back from the installed config and from the earlier launch config, so `--loop off` used to leave it in user_args; serve's guard (Off is Off) already kept it from the engine.
Tests: tools/test_docker_entrypoint.py (the arg mapping for every spelling, unset passes nothing, no FAMILY, another family says one line, bad value, the doc row and the header line; Linux only: runs on the test runner) and tools/test_qwen4_off_stale.py LaunchOff (key, both spellings, user_args, a second launch over the file written, and Loop on still works, for the .strata and the GGUF config; red without the runner change).