Skip to content

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++

Models folder: spacing and the path as code in the dialogs, a plain line instead of the mockup's 'as in step 2', a way to force the copy path for tests, INSTALL.md sentence, string test

Niko1221e3040e9e2526
diff --git a/apps/host/src/components/ModelsFolderDialog.tsx b/apps/host/src/components/ModelsFolderDialog.tsx
index bf6285428..8d9ba884d 100644
--- a/apps/host/src/components/ModelsFolderDialog.tsx
+++ b/apps/host/src/components/ModelsFolderDialog.tsx
@@ -129,27 +129,27 @@ export function ModelsFolderCard({ blocked }: { blocked: boolean }) {
{error && !stage ? <Failure message={error.message} details={error.details}/> : null}
</section>
- <Dialog open={stage === 'issue' && !!plan?.issue} compact title={tr(plan?.issue?.code === 'not_found' ? "That folder isn't there" : "That folder can't be used")} onClose={leave}
+ <Dialog className="models-dialog" open={stage === 'issue' && !!plan?.issue} compact title={tr(plan?.issue?.code === 'not_found' ? "That folder isn't there" : "That folder can't be used")} onClose={leave}
actions={<>{plan?.issue?.code === 'not_found' ? null : <Btn onClick={leave}>{tr('Cancel')}</Btn>}<Btn variant="primary" onClick={() => { leave(); void pick(); }}>{tr('Choose another folder')}</Btn></>}>
{plan?.issue ? <Failure message={plan.issue.message} details={plan.issue.details}
next={plan.issue.code === 'not_writable' ? 'Choose a folder you own, for example one in Documents or on another drive.' : plan.issue.code === 'not_found' ? 'Check that the drive is plugged in, then pick the folder again. Your models were not touched.' : undefined}/> : null}
</Dialog>
- <Dialog open={stage === 'drive' && !!plan} compact title={tr('Use this folder for your models?')} onClose={leave}
+ <Dialog className="models-dialog" open={stage === 'drive' && !!plan} compact title={tr('Use this folder for your models?')} onClose={leave}
actions={<><Btn onClick={leave}>{tr('Cancel')}</Btn><Btn variant="primary" onClick={() => setStage('choose')}>{tr('Continue')}</Btn></>}>
{plan ? <>
<div className="models-picked"><span className="small muted">{tr('New folder')}</span><code className="storage-directory__path">{plan.shown}</code><span className="small muted">{tr('{0} free on this drive', [gb(plan.free_bytes)])}</span></div>
<div className="models-notice models-notice--info"><Icon name="info" size={18}/><div>{tr('You picked the whole drive {0}. Strata keeps its files in a folder of their own, so your models go in {1}.', [plan.picked, plan.shown])}</div></div>
- <p className="small muted">{tr('The three choices follow, as in step 2.')}</p>
+ <p className="small muted">{tr('The three choices come next.')}</p>
</> : null}
</Dialog>
- <Dialog open={stage === 'choose' && !!plan} title={tr('Use this folder for your models?')} onClose={() => { if (!pending) leave(); }}
+ <Dialog className="models-dialog" open={stage === 'choose' && !!plan} title={tr('Use this folder for your models?')} onClose={() => { if (!pending) leave(); }}
actions={plan ? <>{plan.choices.move.possible ? <Btn disabled={pending} onClick={leave}>{tr('Cancel')}</Btn> : <Btn disabled={pending} onClick={() => { leave(); void pick(); }}>{tr('Choose another folder')}</Btn>}<Btn variant="primary" disabled={pending} onClick={() => void start()}>{tr(pending ? 'Working…' : choice === 'move' ? 'Move my models' : choice === 'keep' ? 'Use both folders' : 'Start empty')}</Btn></> : null}>
{plan ? <ChooseBody plan={plan} choice={choice} setChoice={setChoice} names={planNames} error={error}/> : null}
</Dialog>
- <Dialog open={!!moving && !outcome} compact noClose title={tr('Moving your models')} onClose={() => undefined}
+ <Dialog className="models-dialog" open={!!moving && !outcome} compact noClose title={tr('Moving your models')} onClose={() => undefined}
actions={<Btn disabled={stopping} onClick={() => void stop()}>{tr(stopping ? 'Stopping…' : 'Stop moving')}</Btn>}>
<div className="models-free"><Bar value={percent} label={tr('Progress')}/><div className="models-free__row small"><span><strong>{tr('{0} of {1} GB', [progress ? (progress.done / 1e9 >= 10 ? Math.round(progress.done / 1e9) : (progress.done / 1e9).toFixed(1)) : 0, Math.round((progress?.total ?? 0) / 1e9)])}</strong></span><span className="muted">{progress && !progress.sameDrive ? timeLeft(progress.secondsLeft) : null}</span></div></div>
<p className="small">{tr('Keep Strata open. You can keep using other apps. Your models cannot be loaded until the move is done.')}</p>
@@ -224,7 +224,7 @@ function ResultDialog({ outcome, plan, native, onClose, onAgain }: { outcome: Na
</Dialog>;
}
return <Dialog open compact title={tr('Your models are moved')} onClose={onClose} actions={<Btn variant="primary" onClick={onClose}>{tr('Done')}</Btn>}>
- <div className="models-ok"><span className="models-ok__mark"><Icon name="check" size={20}/></span><div><strong>{tr('{0} now live in {1}', [gb(result.total ?? 0), plan?.shown ?? result.to ?? ''])}</strong>
+ <div className="models-ok"><span className="models-ok__mark"><Icon name="check" size={20}/></span><div><strong>{(() => { const [before, after] = tr('{0} now live in {1}', [gb(result.total ?? 0), '@@']).split('@@'); return <>{before}<code className="models-path">{plan?.shown ?? result.to ?? ''}</code>{after}</>; })()}</strong>
{result.sameDrive ? null : <><br/><span className="small muted">{tr('The old copies were removed and {0} is free again on {1}.', [gb(result.total ?? 0), driveOf(result.from ?? '')])}</span></>}</div></div>
</Dialog>;
}
diff --git a/apps/host/src/locales/de.json b/apps/host/src/locales/de.json
index 7fead0238..449d2b35e 100644
--- a/apps/host/src/locales/de.json
+++ b/apps/host/src/locales/de.json
@@ -3367,7 +3367,7 @@
"s8278": "Neuer Ordner",
"s8279": "{0} frei auf diesem Laufwerk",
"s8280": "Sie haben das ganze Laufwerk {0} gewählt. Strata legt seine Dateien in einem eigenen Ordner ab, Ihre Modelle liegen daher in {1}.",
- "s8281": "Danach folgen die drei Möglichkeiten wie in Schritt 2.",
+ "s8281": "Als Nächstes folgen die drei Möglichkeiten.",
"s8282": "Meine Modelle verschieben",
"s8283": "Beide Ordner verwenden",
"s8284": "Leer beginnen",
diff --git a/apps/host/src/locales/en.json b/apps/host/src/locales/en.json
index 0f6eb0a63..fb3f94b36 100644
--- a/apps/host/src/locales/en.json
+++ b/apps/host/src/locales/en.json
@@ -3367,7 +3367,7 @@
"s8278": "New folder",
"s8279": "{0} free on this drive",
"s8280": "You picked the whole drive {0}. Strata keeps its files in a folder of their own, so your models go in {1}.",
- "s8281": "The three choices follow, as in step 2.",
+ "s8281": "The three choices come next.",
"s8282": "Move my models",
"s8283": "Use both folders",
"s8284": "Start empty",
diff --git a/apps/host/src/locales/es.json b/apps/host/src/locales/es.json
index a0f3f33d1..716bee351 100644
--- a/apps/host/src/locales/es.json
+++ b/apps/host/src/locales/es.json
@@ -3367,7 +3367,7 @@
"s8278": "Carpeta nueva",
"s8279": "{0} libres en esta unidad",
"s8280": "Has elegido toda la unidad {0}. Strata guarda sus archivos en una carpeta propia, así que tus modelos irán en {1}.",
- "s8281": "A continuación vienen las tres opciones, como en el paso 2.",
+ "s8281": "A continuación verás las tres opciones.",
"s8282": "Mover mis modelos",
"s8283": "Usar ambas carpetas",
"s8284": "Empezar vacío",
diff --git a/apps/host/src/locales/ja.json b/apps/host/src/locales/ja.json
index 3d3d0929a..344db3ea2 100644
--- a/apps/host/src/locales/ja.json
+++ b/apps/host/src/locales/ja.json
@@ -3367,7 +3367,7 @@
"s8278": "新しいフォルダ",
"s8279": "このドライブの空き: {0}",
"s8280": "ドライブ全体 {0} を選びました。Strata は専用のフォルダにファイルを置くため、モデルは {1} に保存されます。",
- "s8281": "次に、手順 2 と同じ 3 つの選択肢が表示されます。",
+ "s8281": "次に 3 つの選択肢が表示されます。",
"s8282": "モデルを移動する",
"s8283": "両方のフォルダを使う",
"s8284": "空の状態で始める",
diff --git a/apps/host/src/locales/ko.json b/apps/host/src/locales/ko.json
index 498dfb342..bbf5989b6 100644
--- a/apps/host/src/locales/ko.json
+++ b/apps/host/src/locales/ko.json
@@ -3367,7 +3367,7 @@
"s8278": "새 폴더",
"s8279": "이 드라이브의 여유 공간: {0}",
"s8280": "드라이브 전체 {0}을(를) 선택했습니다. Strata는 자체 폴더에 파일을 보관하므로 모델은 {1}에 저장됩니다.",
- "s8281": "다음으로 2단계와 같은 세 가지 선택지가 나옵니다.",
+ "s8281": "다음으로 세 가지 선택지가 나옵니다.",
"s8282": "내 모델 이동",
"s8283": "두 폴더 모두 사용",
"s8284": "빈 상태로 시작",
diff --git a/apps/host/src/locales/pt.json b/apps/host/src/locales/pt.json
index 678d549f1..cecc2f1a2 100644
--- a/apps/host/src/locales/pt.json
+++ b/apps/host/src/locales/pt.json
@@ -3367,7 +3367,7 @@
"s8278": "Pasta nova",
"s8279": "{0} livres nesta unidade",
"s8280": "Você escolheu a unidade inteira {0}. O Strata guarda seus arquivos em uma pasta própria, então seus modelos ficam em {1}.",
- "s8281": "Em seguida vêm as três opções, como na etapa 2.",
+ "s8281": "Em seguida, você verá as três opções.",
"s8282": "Mover meus modelos",
"s8283": "Usar as duas pastas",
"s8284": "Começar vazio",
diff --git a/apps/host/src/locales/ru.json b/apps/host/src/locales/ru.json
index da83fc83f..670c0531a 100644
--- a/apps/host/src/locales/ru.json
+++ b/apps/host/src/locales/ru.json
@@ -3367,7 +3367,7 @@
"s8278": "Новая папка",
"s8279": "Свободно на этом диске: {0}",
"s8280": "Вы выбрали весь диск {0}. Strata хранит свои файлы в отдельной папке, поэтому модели будут в {1}.",
- "s8281": "Дальше будут три варианта, как на шаге 2.",
+ "s8281": "Дальше будут три варианта.",
"s8282": "Переместить мои модели",
"s8283": "Использовать обе папки",
"s8284": "Начать с пустой",
diff --git a/apps/host/src/locales/zh.json b/apps/host/src/locales/zh.json
index 61e95aab2..b670fc478 100644
--- a/apps/host/src/locales/zh.json
+++ b/apps/host/src/locales/zh.json
@@ -3367,7 +3367,7 @@
"s8278": "新文件夹",
"s8279": "此驱动器可用 {0}",
"s8280": "你选择了整个驱动器 {0}。Strata 会把文件放在自己的文件夹里,因此你的模型将存放在 {1}。",
- "s8281": "接下来会出现三个选项,与第 2 步相同。",
+ "s8281": "接下来会出现三个选项。",
"s8282": "移动我的模型",
"s8283": "同时使用两个文件夹",
"s8284": "从空文件夹开始",
diff --git a/apps/host/src/styles/annotation-fixes.css b/apps/host/src/styles/annotation-fixes.css
index de133dc66..8d31cb620 100644
--- a/apps/host/src/styles/annotation-fixes.css
+++ b/apps/host/src/styles/annotation-fixes.css
@@ -768,3 +768,6 @@ html[data-motion='reduced'] .task-tree-row[data-leaving] { opacity: 0; }
.models-details ul { margin:8px 0 0; padding-left:18px; color:var(--st-ink-soft); font-size:var(--st-fs-sm); }
.models-ok { display:flex; align-items:center; gap:12px; }
.models-ok__mark { display:grid; place-items:center; flex:none; width:44px; height:44px; border-radius:50%; background:var(--st-accent-tint); color:var(--st-accent-text); }
+.models-dialog .dialog-body { display:grid; gap:14px; }
+.models-path { font-family:var(--st-font-mono); font-size:12px; font-weight:400; background:var(--st-surface-2); padding:2px 6px; border-radius:6px; overflow-wrap:anywhere; }
+.models-dialog .storage-directory__path { margin:0; }
diff --git a/apps/host/tests/models-folder.test.mjs b/apps/host/tests/models-folder.test.mjs
index cf950ec25..7ff268edb 100644
--- a/apps/host/tests/models-folder.test.mjs
+++ b/apps/host/tests/models-folder.test.mjs
@@ -159,3 +159,23 @@ test('a move needs the app: the Control command line is built from the plan and
const failing = createControl({ control: { dir: '/c', python: '/c/py', cli: '/c/strata.py' }, run: async () => ({ code: 5, json: { ok: false, error: { code: 'disk_full', message: 'The drive ran out of space.', details: 'ENOSPC' }, moved: [] }, text: '', stderr: '' }) });
await assert.rejects(failing.moveModels('/o', '/n'), e => e.code === 'disk_full' && e.details === 'ENOSPC' && /ran out of space/.test(e.message));
});
+
+test('the models folder strings exist in all 8 languages with the same placeholders', () => {
+ const read = lang => JSON.parse(readFileSync(new URL(`../src/locales/${lang}.json`, import.meta.url), 'utf8'));
+ const en = read('en');
+ const ours = Object.keys(en).filter(k => Number(k.slice(1)) >= 8261 && Number(k.slice(1)) <= 8338);
+ assert.equal(ours.length, 78);
+ for (const lang of ['de', 'es', 'ja', 'ko', 'pt', 'ru', 'zh']) {
+ const text = read(lang);
+ for (const key of ours) {
+ assert.ok(text[key], `${lang} ${key}`);
+ assert.deepEqual((text[key].match(/\{\d\}/g) ?? []).sort(), (en[key].match(/\{\d\}/g) ?? []).sort(), `${lang} ${key} placeholders`);
+ }
+ }
+ // every string the dialog shows through tr() is in the catalogue
+ const source = readFileSync(new URL('../src/components/ModelsFolderDialog.tsx', import.meta.url), 'utf8');
+ const values = new Set(Object.values(en));
+ for (const text of ['Models folder', 'Change folder', 'Move my models', 'Use both folders', 'Start empty', 'Stop moving', 'Your models are moved', 'Moving stopped']) {
+ assert.ok(source.includes(text) && values.has(text), text);
+ }
+});
diff --git a/docs/INSTALL.md b/docs/INSTALL.md
index d860d0429..afb1e866e 100644
--- a/docs/INSTALL.md
+++ b/docs/INSTALL.md
@@ -311,7 +311,9 @@ The model files are the only big part (70 to 190 GB). Put them where there is ro
- **In the app:** the first screen shows the model folder with a button to change it, and Settings > Storage changes it
later. Pick a folder you can save files in; a whole drive (`D:\`) becomes `D:\Strata`, which Strata makes and says so.
- Models you already have in the old folder stay there and keep working; nothing is moved or deleted for you.
+ Change folder then asks what to do with your models: move them (copied file by file and checked before the old copies are removed; you can stop at any time),
+ keep them where they are and also use the new folder, or start empty (the old files are never deleted). From the Terminal the same move is
+ `strata models move NEW_FOLDER` (add `--plan` to see what it would do first).
- **In the Terminal:** `strata launch --data-dir D:\Strata` once. The folder is remembered for the next `strata launch`
and `strata models list`. Until you give it one, the Terminal uses the folder the app chose; the app keeps its own setting
(Settings > Storage) and does not read the Terminal's. `--move-data` moves the models you already have into it; without it they stay where they
diff --git a/strata_control/models_move.py b/strata_control/models_move.py
index 36eb6fc27..e42a4b8da 100644
--- a/strata_control/models_move.py
+++ b/strata_control/models_move.py
@@ -102,6 +102,9 @@ def _near(path: Path) -> Path:
def same_drive(a: Path, b: Path) -> bool:
+ """Both folders are on one volume (a move is then a rename). STRATA_MOVE_ALWAYS_COPY=1 copies anyway: for testing the copy path on one disk."""
+ if os.environ.get("STRATA_MOVE_ALWAYS_COPY") == "1":
+ return False
try:
return os.stat(_near(a)).st_dev == os.stat(_near(b)).st_dev
except OSError: