Qwen3.8-Flash-Next on any consumer hardware: one-click install for Windows / Linux. Strata inference engine, OpenAI/Anthropic API on localhost, optional image input.
C++
UPDATE.bat / update.sh: a clone on the pre-2026-10-06 history is moved to origin/main (old commits kept in pre-cleanup-backup) when no tracked file is edited; otherwise the two commands are printed (#1276)
Niko1221495ba0767999
diff --git a/UPDATE.bat b/UPDATE.batindex 7ee2901ca..8f44e00bb 100644--- a/UPDATE.bat+++ b/UPDATE.bat@@ -16,12 +16,55 @@ rem All of it in one block: cmd reads a .bat file while it runs it, and the gitexit /b 1)echo Getting the newest Strata ^(git pull^) ...- git pull --ff-only || (- echo.- echo git pull did not succeed ^(the reason is above^): nothing was updated. Files you changed here can stop it:- echo "git status" lists them.- pause- exit /b 1+ git pull --ff-only+ if errorlevel 1 (+ rem The history was rewritten on 2026-10-06, see #1276: a clone from before has no commit in common with origin/main.+ set "REWR="+ git merge-base HEAD origin/main >nul 2>nul+ if errorlevel 1 set "REWR=1"+ git rev-parse --is-shallow-repository 2>nul | findstr /x true >nul && set "REWR="+ if defined REWR (+ echo.+ echo This clone is on the repository's old history ^(cleaned up on 2026-10-06^): it has no commit in common+ echo with origin/main, so it cannot be updated by git pull.+ set "DIRTY="+ for /f "delims=" %%i in ('git status --porcelain --untracked-files^=no') do set "DIRTY=1"+ if defined DIRTY (+ echo You have local changes to tracked files here, so nothing was touched. To move to the new history+ echo yourself ^(your untracked files, models and settings stay where they are^):+ echo git branch pre-cleanup-backup ^&^& git stash push+ echo git checkout -B main origin/main+ echo then run UPDATE.bat again.+ pause+ exit /b 1+ )+ set "BK=pre-cleanup-backup"+ git rev-parse --verify -q refs/heads/pre-cleanup-backup >nul 2>nul && set "BK=pre-cleanup-backup-%RANDOM%"+ set "BR=main"+ for /f "delims=" %%i in ('git symbolic-ref --short -q HEAD 2^>nul') do set "BR=%%i"+ call git branch %%BK%% HEAD+ if errorlevel 1 (+ echo Could not make the backup branch: nothing was updated.+ pause+ exit /b 1+ )+ call git checkout -q -B %%BR%% origin/main+ if errorlevel 1 (+ echo.+ echo Could not move to the new history ^(the reason is above^): nothing was updated. By hand:+ echo git checkout -B main origin/main+ pause+ exit /b 1+ )+ call echo Moved to the new history. Your old commits are kept in the branch %%BK%%.+ echo Untracked files ^(models, settings, the engine^) were not touched.+ ) else (+ echo.+ echo git pull did not succeed ^(the reason is above^): nothing was updated. Files you changed here can stop it:+ echo "git status" lists them.+ pause+ exit /b 1+ ))) else (echo This copy of Strata was not made with git, so it cannot fetch new files itself. Download the newest one:diff --git a/update.sh b/update.shindex a3963b18a..3a0adcb6a 100755--- a/update.sh+++ b/update.sh@@ -14,10 +14,40 @@ main() {fiecho "Getting the newest Strata (git pull) ..."if ! git pull --ff-only; then- echo- echo "git pull did not succeed (the reason is above): nothing was updated. Files you changed here can stop it:"- echo "\"git status\" lists them."- exit 1+ # The history of the repository was rewritten on 2026-10-06 (#1276): a clone made before that has no commit in+ # common with origin/main, so a fast-forward can never work. Say so, and move it over when nothing is lost.+ if [ "$(git rev-parse --is-shallow-repository 2>/dev/null)" != "true" ] && ! git merge-base HEAD origin/main >/dev/null 2>&1; then+ echo+ echo "This clone is on the repository's old history (cleaned up on 2026-10-06): it has no commit in common"+ echo "with origin/main, so it cannot be updated by git pull."+ if [ -n "$(git status --porcelain --untracked-files=no)" ]; then+ echo "You have local changes to tracked files here, so nothing was touched. To move to the new history"+ echo "yourself (your untracked files, models and settings stay where they are):"+ echo " git branch pre-cleanup-backup && git stash push # keeps the old commits and your edits"+ echo " git checkout -B main origin/main"+ echo "then run ./update.sh again."+ exit 1+ fi+ bk=pre-cleanup-backup+ if git rev-parse --verify -q "refs/heads/$bk" >/dev/null 2>&1; then+ bk="pre-cleanup-backup-$(date +%Y%m%d%H%M%S)"+ fi+ branch=$(git symbolic-ref --short -q HEAD || echo main)+ if git branch "$bk" HEAD && git checkout -q -B "$branch" origin/main; then+ echo "Moved to the new history. Your old commits are kept in the branch $bk."+ echo "Untracked files (models, settings, the engine) were not touched."+ else+ echo "Could not move to the new history (the reason is above): nothing was updated. By hand:"+ echo " git branch pre-cleanup-backup"+ echo " git checkout -B main origin/main"+ exit 1+ fi+ else+ echo+ echo "git pull did not succeed (the reason is above): nothing was updated. Files you changed here can stop it:"+ echo "\"git status\" lists them."+ exit 1+ fifielseecho "This copy of Strata was not made with git, so it cannot fetch new files itself. Download the newest one:"