You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(installer): pre-mark setup wizard complete on successful install
After a fresh install, the dashboard setup wizard overlays every
route on every page load because routers/setup.py::setup_status
reads ${SETUP_CONFIG_DIR}/setup-complete.json and returns
first_run=true whenever the file is absent. The installer never
wrote it, and it is only written by POST /api/setup/complete at
the end of the wizard — so a user who never clicked through the 6
steps saw the wizard forever.
Write the marker from all three installers (Linux phase 13, macOS
install-macos.sh phase 6, Windows install-windows.ps1 phase 9) after
the success card is shown and services are up. Payload matches the
one written by POST /api/setup/complete: {"completed_at":"<ISO-8601
UTC>","version":"1.0.0"}.
Host path: ${INSTALL_DIR}/data/config/setup-complete.json
Container path: /data/config/setup-complete.json (via the
./data:/data bind mount in docker-compose.base.yml).
Failure to write the marker is non-fatal (logged as a warning);
wizard reappearing is cosmetic. The contract test in
tests/contracts/test-installer-contracts.sh asserts all three
installers emit the write.
0 commit comments