[GH-ISSUE #3723] [GUI] first-run and error UX: language before model download, taskbar icon, context-memory labels, out-of-VRAM reason #1555

Open
opened 2026-11-04 01:52:13 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @xvcezrqpbxtpzblrt on GitHub (Oct 22, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/3723

2026-11-06 核对结果:v0.2.10 发布说明点名 #3723 (part) 已修,装机 0.2.11 与 main@9f7d977d2 核对一致——首屏按系统语言打开(store.ts detectLanguage + navigator.languages,无已保存语言时 {...prefs, language: detectLanguage(...)});"Context memory" 每个格式附一行说明(NativeModels.tsx,注释含 DETAILS 来源);显存不足走引擎原行匹配并给出下一步(native-resources.mjs:98-119,此为 0.2.8 已核部分)。第 2 条任务栏通用图标未修(发布说明自认未覆盖),本 issue 只跟踪该项。未做 GUI 实测。


Area

[GUI] (the desktop app)

Desktop app, Terminal or source?

Desktop app (Windows, Linux or Mac)

What happened

Four separate desktop-app problems from a fresh Windows 11 install of 0.2.2. They are independent; I can split them into separate issues if you prefer.

1. No language choice before the model download

Strata ships a localized UI (English / 简体中文), but the first screen after the installer is the model download, and it is in English. The language switch is in the app settings, and the default is English regardless of the Windows display language.

From host/dist/assets/index-DsqNG4H4.js (0.2.2):

X6 = { language: "en", ... }              // default preferences
function yTi() { ... return { ...X6 } }   // no stored prefs -> English
Fu(en.language)                           // applied at startup

navigator.language is used only for dictation, not for the UI language. %LOCALAPPDATA%\Strata\app-settings.json has no language field.

Expected: ask for the language (or at least start in the Windows display language) before the model download screen, not after the user has already downloaded tens of GB. A Chinese user should not have to find the language setting first.

On Windows 11 the running app's taskbar button shows the generic "application window" icon (white page, blue title bar). The exe and the window itself carry the correct Strata logo:

  • ExtractAssociatedIcon("...\strata-desktop.exe") returns the Strata logo (black rounded square, three bars, green middle bar), 32x32.
  • WM_GETICON on the main window (strata-desktop, pid 12672, title "Strata") returns the same logo for the small icon (ICON_SMALL2, 32x32).

So the icon exists, but the taskbar does not show it. Neighbouring apps (OpenCode, Notepad, Chrome) show their real icons.

Expected: the taskbar button shows the Strata logo.

3. Context memory options (INT8 / Q4 / K8 / V4) have no explanation

Models -> Expert settings -> Context memory is a combobox with three options: INT8, Q4, K8 / V4. None of them has a description, tooltip or help text; the only accessible name is "Native KV format". A user cannot tell what changes (VRAM use, quality, speed) or which one to pick.

DOM from 0.2.2:

<span>Context memory</span>
<button role="combobox" aria-label="Native KV format" aria-expanded="false">
  <span class="select__value">INT8</span>
</button>
...
<div role="option"><span class="select__option-label">INT8</span></div>
<div role="option"><span class="select__option-label">Q4</span></div>
<div role="option"><span class="select__option-label">K8 / V4</span></div>

No title, no aria-description, and no visible text besides the label.

Other settings on the same page do have a one-line explanation (for example "Run multiple models: Loading another model keeps the others loaded."), so the pattern already exists.

Expected: one line per option (what it stores, roughly how much VRAM it saves, what it costs), or a link to the docs.

4. Out-of-VRAM start failure shows no reason

When the model does not fit, the app shows the start failure without the cause. The recorded load error (0.2.2) ends with a colon and nothing after it:

server_exited (exit code 1): EngineDied: the engine exited before it was ready (see ...\strata-swift-iq3_xxs.log) | the engine process ended: exit code 1 | the engine log's last lines:

The engine log does contain the cause and the remedy (same failed starts):

strata generate: expert cache auto: 1.92 GiB free, 2048 MiB reserved (+184 MiB for the draft head) -> 0 slots
strata generate: no VRAM is left for the expert cache: it needs at least 332 slots (737 MiB), about 1000 MiB more than this card has free. To make room: a smaller --max-context (the session, mostly its KV cache, takes 7361 MiB at 524288 tokens), --kv q4_0, ...

So the explanation exists but never reaches the user.

Expected: show at least the last engine log lines after "the engine log's last lines:", or a plain-language line such as "Not enough graphics memory: lower the context size or set Context memory to Q4", with Details for the log.

Smallest steps or command that reproduce it

  1. Language: install 0.2.2 on a Windows whose display language is Chinese; after the installer, the model download screen is in English.
  2. Taskbar: start the app; its taskbar button shows the generic application icon instead of the Strata logo.
  3. Context memory: Models -> Expert settings -> open the Context memory combobox; the three options have no description or tooltip.
  4. Out-of-VRAM: load a model with a context that does not fit (here 524288 tokens, INT8 KV, 16 GB card); the start fails and the error ends at "the engine log's last lines:" with no lines.

Reproduction status

Reproduced locally

Strata version

Strata 0.2.2 · engine 0.1.47

Graphics card, memory and system

RTX 3080 Ti Laptop 16 GB · 64 GB RAM · Windows 11 (10.0.26300)

Model, size and settings

Swift 1.5 IQ3_XXS · 393K context (the failing attempt used 512K) · INT8 KV · pictures on

Logs

  • Language: host/dist/assets/index-DsqNG4H4.js - X6={language:"en",...}, yTi() falls back to it; navigator.language is only used for dictation.
  • Taskbar: ExtractAssociatedIcon and WM_GETICON both return the Strata logo; the taskbar renders the generic icon.
  • Context memory: DOM above; there is no help text anywhere on the page for this setting.
  • Out-of-VRAM: %USERPROFILE%\.strata\data\native-jobs.json (error string above) and %LOCALAPPDATA%\Strata\install\strata-swift-iq3_xxs.log lines 32-43 (the "no VRAM is left..." and "verify: needs the profile-filled VRAM expert tier" lines).
Originally created by @xvcezrqpbxtpzblrt on GitHub (Oct 22, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/3723 **2026-11-06 核对结果**:v0.2.10 发布说明点名 #3723 (part) 已修,装机 0.2.11 与 main@9f7d977d2 核对一致——首屏按系统语言打开(store.ts detectLanguage + navigator.languages,无已保存语言时 {...prefs, language: detectLanguage(...)});"Context memory" 每个格式附一行说明(NativeModels.tsx,注释含 DETAILS 来源);显存不足走引擎原行匹配并给出下一步(native-resources.mjs:98-119,此为 0.2.8 已核部分)。**第 2 条任务栏通用图标未修(发布说明自认未覆盖)**,本 issue 只跟踪该项。未做 GUI 实测。 --- ### Area [GUI] (the desktop app) ### Desktop app, Terminal or source? Desktop app (Windows, Linux or Mac) ### What happened Four separate desktop-app problems from a fresh Windows 11 install of 0.2.2. They are independent; I can split them into separate issues if you prefer. #### 1. No language choice before the model download Strata ships a localized UI (English / 简体中文), but the first screen after the installer is the model download, and it is in English. The language switch is in the app settings, and the default is English regardless of the Windows display language. From `host/dist/assets/index-DsqNG4H4.js` (0.2.2): ```js X6 = { language: "en", ... } // default preferences function yTi() { ... return { ...X6 } } // no stored prefs -> English Fu(en.language) // applied at startup ``` `navigator.language` is used only for dictation, not for the UI language. `%LOCALAPPDATA%\Strata\app-settings.json` has no language field. Expected: ask for the language (or at least start in the Windows display language) **before** the model download screen, not after the user has already downloaded tens of GB. A Chinese user should not have to find the language setting first. #### 2. The taskbar button shows the generic Windows icon, not the Strata logo On Windows 11 the running app's taskbar button shows the generic "application window" icon (white page, blue title bar). The exe and the window itself carry the correct Strata logo: - `ExtractAssociatedIcon("...\strata-desktop.exe")` returns the Strata logo (black rounded square, three bars, green middle bar), 32x32. - `WM_GETICON` on the main window (`strata-desktop`, pid 12672, title "Strata") returns the same logo for the small icon (`ICON_SMALL2`, 32x32). So the icon exists, but the taskbar does not show it. Neighbouring apps (OpenCode, Notepad, Chrome) show their real icons. Expected: the taskbar button shows the Strata logo. #### 3. Context memory options (INT8 / Q4 / K8 / V4) have no explanation Models -> Expert settings -> Context memory is a combobox with three options: `INT8`, `Q4`, `K8 / V4`. None of them has a description, tooltip or help text; the only accessible name is "Native KV format". A user cannot tell what changes (VRAM use, quality, speed) or which one to pick. DOM from 0.2.2: ```html <span>Context memory</span> <button role="combobox" aria-label="Native KV format" aria-expanded="false"> <span class="select__value">INT8</span> </button> ... <div role="option"><span class="select__option-label">INT8</span></div> <div role="option"><span class="select__option-label">Q4</span></div> <div role="option"><span class="select__option-label">K8 / V4</span></div> ``` No `title`, no `aria-description`, and no visible text besides the label. Other settings on the same page do have a one-line explanation (for example "Run multiple models: Loading another model keeps the others loaded."), so the pattern already exists. Expected: one line per option (what it stores, roughly how much VRAM it saves, what it costs), or a link to the docs. #### 4. Out-of-VRAM start failure shows no reason When the model does not fit, the app shows the start failure without the cause. The recorded load error (0.2.2) ends with a colon and nothing after it: ```text server_exited (exit code 1): EngineDied: the engine exited before it was ready (see ...\strata-swift-iq3_xxs.log) | the engine process ended: exit code 1 | the engine log's last lines: ``` The engine log does contain the cause and the remedy (same failed starts): ```text strata generate: expert cache auto: 1.92 GiB free, 2048 MiB reserved (+184 MiB for the draft head) -> 0 slots strata generate: no VRAM is left for the expert cache: it needs at least 332 slots (737 MiB), about 1000 MiB more than this card has free. To make room: a smaller --max-context (the session, mostly its KV cache, takes 7361 MiB at 524288 tokens), --kv q4_0, ... ``` So the explanation exists but never reaches the user. Expected: show at least the last engine log lines after "the engine log's last lines:", or a plain-language line such as "Not enough graphics memory: lower the context size or set Context memory to Q4", with Details for the log. ### Smallest steps or command that reproduce it 1. Language: install 0.2.2 on a Windows whose display language is Chinese; after the installer, the model download screen is in English. 2. Taskbar: start the app; its taskbar button shows the generic application icon instead of the Strata logo. 3. Context memory: Models -> Expert settings -> open the Context memory combobox; the three options have no description or tooltip. 4. Out-of-VRAM: load a model with a context that does not fit (here 524288 tokens, INT8 KV, 16 GB card); the start fails and the error ends at "the engine log's last lines:" with no lines. ### Reproduction status Reproduced locally ### Strata version Strata 0.2.2 · engine 0.1.47 ### Graphics card, memory and system RTX 3080 Ti Laptop 16 GB · 64 GB RAM · Windows 11 (10.0.26300) ### Model, size and settings Swift 1.5 IQ3_XXS · 393K context (the failing attempt used 512K) · INT8 KV · pictures on ### Logs - Language: `host/dist/assets/index-DsqNG4H4.js` - `X6={language:"en",...}`, `yTi()` falls back to it; `navigator.language` is only used for dictation. - Taskbar: `ExtractAssociatedIcon` and `WM_GETICON` both return the Strata logo; the taskbar renders the generic icon. - Context memory: DOM above; there is no help text anywhere on the page for this setting. - Out-of-VRAM: `%USERPROFILE%\.strata\data\native-jobs.json` (error string above) and `%LOCALAPPDATA%\Strata\install\strata-swift-iq3_xxs.log` lines 32-43 (the "no VRAM is left..." and "verify: needs the profile-filled VRAM expert tier" lines).
Author
Owner

@xvcezrqpbxtpzblrt commented on GitHub (Oct 30, 2026):

Re-checked all four sub-items against 0.2.8 (app 0.2.8, Control and engine 0.1.54), reading the tag v0.2.8 sources. Status below, with the line that decides it, so it is clear which three are still open.

1. Language follows the system — still open, and the fix is one line.

The language default is a hard English, with no OS consultation anywhere:

  • apps/host/src/lib/store.ts:164 — language: 'en' in the prefs defaults, returned when nothing is stored (:219 only re-checks a saved value: validLanguage(parsed.language) ? parsed.language : 'en').
  • apps/host/src/lib/i18n.ts:59 — let language: Language = 'en'; the module has no navigator, no Intl, no storage read of its own.
  • The OS locale is already read, but only for the electricity price: apps/host/server/region.mjs:36 (Windows registry HKCU\Control Panel\International\LocaleName), exposed as GET /api/locale at apps/host/server/index.mjs:1951, consumed by apps/host/src/lib/money.ts:10-14. Nothing feeds it into the language.
  • No first-run surface offers a language: screens/Setup.tsx (21 lines), components/GuidedSetup.tsx (281 lines) and components/EngineFirstRun.tsx (174 lines) contain zero matches for language/locale/LANGUAGES. The language control lives only in the Settings dialog (screens/Settings.tsx:31), which the setup takeover does not expose.
  • The installer is English-only: apps/desktop/src-tauri/tauri.conf.json sets bundle.windows.nsis.languages: ["English"], and it never writes a language into the app's own settings.
  • Nothing in the v0.2.5–v0.2.8 notes addresses a default; those releases only add translation coverage (#3479, #3825, French in 0.2.7).

The cheapest correct fix: at startup with no stored preference, order the candidate as (1) navigator.languages, (2) the tag from /api/locale (region.mjs already returns it), (3) English — then set <html lang> before the first paint. The existing test apps/host/tests/language-preferences.test.mjs pins only the saved-value and invalid-value cases, so detection would not break it. A language row before the model download in Setup is the same change one screen over, and it is the part that decides whether a first-time Chinese user can read the download screen at all.

2. Taskbar icon — nothing in the source addresses it.

apps/desktop/src-tauri/src/main.rs has no window-icon or AppUserModelID handling, and grep icon over src-tauri/src returns only message-box flags (desktoplog.rs:457-463) and the tray builder (shell.rs:115-152, which does take app.default_window_icon()). tauri.conf.json does declare bundle.icon: ["icons/icon.png","icons/icon.ico"] and installerIcon, and app.windows: [] — the window is built in main.rs. So this is thin evidence: no code changed and no commit mentions it (search/commits for taskbar → 0 hits), but I did not launch the app to confirm what the taskbar shows today.

3. Context memory (INT8 / Q4 / K8 / V4) with no explanation — still open, and the numbers exist already.

apps/host/src/components/NativeModels.tsx:215 renders the picker as a bare <Select> of INT8 / Q4 / K8 / V4 with no hint, no per-option line and no tooltip; components/ui.tsx Select has no option-help property at all. The costs are computed in the same app: apps/host/src/lib/native-fit.ts:35 — KV_BYTES = { fp16: 2112, int8: 1056, q4_0: 576, k8v4: 816 } bytes/token, used at :38 for the per-session MiB figure — and that per-session number is already shown elsewhere on the page. The neighbouring switch in the same card does carry a one-liner ("Loading another model keeps the others loaded."), so the pattern is available. A line under the select saying what each format costs per token, in the same wording style, closes this.

4. Out-of-VRAM start failure — partly addressed by a different route than asked.

Now present: apps/host/server/native-resources.mjs:98-119 matches the engine's own line (no VRAM (is|was) left for the expert cache, :107), reads "about N MiB more than this card has free" (:109), lowers --vram-reserve-mib but never below 1024 MiB (:111, rationale #2065) and, if that is not enough, halves --max-context (:112-117), then returns a plain sentence naming what it changed (:119). apps/host/server/native-control.mjs:373-382 applies exactly one such retry and attaches that sentence plus the technical line as Details. The repo even pinned it with the reporter's own engine line as the fixture: apps/host/tests/resource-ram.test.mjs:78-92.

Still missing, as the issue asked: the failure never carries the engine log's last lines in the app path (the "the engine log's last lines:" behaviour exists only in the Terminal and the served page — strata_cli/cli.py:1377, serve/server.py:551); logs remain a separate dialog (components/NativeOperations.tsx:119-120). And when no safer step applies, the message is generic system-RAM advice rather than the two knobs that actually help: apps/host/src/lib/plain-errors.ts:13-14, rule at :38 kind memory → "most likely because the PC ran low on memory / close other programs / Leave 20% for my work / turn on the low-RAM option", which never mentions lowering the conversation context or picking Q4 for Context memory.

So: sub-items 1, 2 and 3 still open; sub-item 4 half-done (auto-recovery yes, log tail and remedy wording no). Happy to split this into four issues if that is easier to track than one — say which you prefer.

<!-- gh-comment-id:6533607526 --> @xvcezrqpbxtpzblrt commented on GitHub (Oct 30, 2026): Re-checked all four sub-items against 0.2.8 (app `0.2.8`, Control and engine `0.1.54`), reading the tag `v0.2.8` sources. Status below, with the line that decides it, so it is clear which three are still open. **1. Language follows the system — still open, and the fix is one line.** The language default is a hard English, with no OS consultation anywhere: - `apps/host/src/lib/store.ts:164` — `language: 'en'` in the prefs defaults, returned when nothing is stored (`:219` only re-checks a *saved* value: `validLanguage(parsed.language) ? parsed.language : 'en'`). - `apps/host/src/lib/i18n.ts:59` — `let language: Language = 'en'`; the module has no `navigator`, no `Intl`, no storage read of its own. - The OS locale is already read, but only for the electricity price: `apps/host/server/region.mjs:36` (Windows registry `HKCU\Control Panel\International\LocaleName`), exposed as `GET /api/locale` at `apps/host/server/index.mjs:1951`, consumed by `apps/host/src/lib/money.ts:10-14`. Nothing feeds it into the language. - No first-run surface offers a language: `screens/Setup.tsx` (21 lines), `components/GuidedSetup.tsx` (281 lines) and `components/EngineFirstRun.tsx` (174 lines) contain zero matches for `language`/`locale`/`LANGUAGES`. The language control lives only in the Settings dialog (`screens/Settings.tsx:31`), which the setup takeover does not expose. - The installer is English-only: `apps/desktop/src-tauri/tauri.conf.json` sets `bundle.windows.nsis.languages: ["English"]`, and it never writes a language into the app's own settings. - Nothing in the v0.2.5–v0.2.8 notes addresses a default; those releases only add translation coverage (#3479, #3825, French in 0.2.7). The cheapest correct fix: at startup with no stored preference, order the candidate as (1) `navigator.languages`, (2) the tag from `/api/locale` (`region.mjs` already returns it), (3) English — then set `<html lang>` before the first paint. The existing test `apps/host/tests/language-preferences.test.mjs` pins only the saved-value and invalid-value cases, so detection would not break it. A language row before the model download in `Setup` is the same change one screen over, and it is the part that decides whether a first-time Chinese user can read the download screen at all. **2. Taskbar icon — nothing in the source addresses it.** `apps/desktop/src-tauri/src/main.rs` has no window-icon or AppUserModelID handling, and `grep icon` over `src-tauri/src` returns only message-box flags (`desktoplog.rs:457-463`) and the tray builder (`shell.rs:115-152`, which does take `app.default_window_icon()`). `tauri.conf.json` does declare `bundle.icon: ["icons/icon.png","icons/icon.ico"]` and `installerIcon`, and `app.windows: []` — the window is built in `main.rs`. So this is thin evidence: no code changed and no commit mentions it (`search/commits` for `taskbar` → 0 hits), but I did not launch the app to confirm what the taskbar shows today. **3. Context memory (INT8 / Q4 / K8 / V4) with no explanation — still open, and the numbers exist already.** `apps/host/src/components/NativeModels.tsx:215` renders the picker as a bare `<Select>` of INT8 / Q4 / K8 / V4 with no hint, no per-option line and no tooltip; `components/ui.tsx` `Select` has no option-help property at all. The costs are computed in the same app: `apps/host/src/lib/native-fit.ts:35` — `KV_BYTES = { fp16: 2112, int8: 1056, q4_0: 576, k8v4: 816 }` bytes/token, used at `:38` for the per-session MiB figure — and that per-session number is already shown elsewhere on the page. The neighbouring switch in the same card does carry a one-liner ("Loading another model keeps the others loaded."), so the pattern is available. A line under the select saying what each format costs per token, in the same wording style, closes this. **4. Out-of-VRAM start failure — partly addressed by a different route than asked.** Now present: `apps/host/server/native-resources.mjs:98-119` matches the engine's own line (`no VRAM (is|was) left for the expert cache`, `:107`), reads "about N MiB more than this card has free" (`:109`), lowers `--vram-reserve-mib` but never below 1024 MiB (`:111`, rationale #2065) and, if that is not enough, halves `--max-context` (`:112-117`), then returns a plain sentence naming what it changed (`:119`). `apps/host/server/native-control.mjs:373-382` applies exactly one such retry and attaches that sentence plus the technical line as Details. The repo even pinned it with the reporter's own engine line as the fixture: `apps/host/tests/resource-ram.test.mjs:78-92`. Still missing, as the issue asked: the failure never carries the engine log's last lines in the app path (the "the engine log's last lines:" behaviour exists only in the Terminal and the served page — `strata_cli/cli.py:1377`, `serve/server.py:551`); logs remain a separate dialog (`components/NativeOperations.tsx:119-120`). And when no safer step applies, the message is generic system-RAM advice rather than the two knobs that actually help: `apps/host/src/lib/plain-errors.ts:13-14`, rule at `:38` kind `memory` → "most likely because the PC ran low on memory / close other programs / Leave 20% for my work / turn on the low-RAM option", which never mentions lowering the conversation context or picking Q4 for Context memory. So: sub-items 1, 2 and 3 still open; sub-item 4 half-done (auto-recovery yes, log tail and remedy wording no). Happy to split this into four issues if that is easier to track than one — say which you prefer.
Author
Owner

@xvcezrqpbxtpzblrt commented on GitHub (Oct 31, 2026):

Correcting how sub-item 1 was framed, after re-reading the first-run flow in 0.2.8. My original wording ("the first screen after the installer is the model download, the language switch is in settings") made it sound smaller than it is. The installer's language is not the problem, and "just change it in Settings" is not actually possible at that moment, because the first screen of the app has no exit of any kind. All references below are tag v0.2.8 (app 0.2.8, Control and engine 0.1.54).

1. The first screen is the engine-download card, not the wizard. apps/host/src/screens/Setup.tsx:15-16: while the engine is missing, the setup surface returns <EngineFirstRun/> instead of GuidedSetup. useEngineNeeded() (apps/host/src/components/EngineFirstRun.tsx:28-42) re-reads GET /api/control/status every 3 seconds and reports true whenever engine.usable === false — which is the state of a fresh Windows install until the engine has been downloaded.

2. That card offers no way out. EngineFirstRun.tsx:153: on the normal path (GET /api/engine/first-run → status: "offer") the screen has exactly two controls — Download the engine and I already have the file…. The header (:172) contains the logo and nothing else: no close button, no Finish later, no Continue without an engine. The escape hatch Continue without an engine exists only in the fallback branch at :165, which the normal path never reaches. And once the card has been shown it cannot be skipped: Setup.tsx:11-16 keeps cardShown true, and the only control that clears it is onDone, reachable only from "The engine is ready. Next: pick a model." (:133-134) — that is, only after the download finished.

3. The wizard behind it does have exits, so the intent is clear. GuidedSetup.tsx:209 Go straight to the app (step 1) and :204 Finish later (later steps). The engine card simply never carries that over.

4. Nothing else is reachable from that card. apps/host/src/app/App.tsx:71-76 renders it inside role="dialog" aria-modal="true"; the scrim (:72) has no click handler; apps/host/src/lib/focus.ts:113-118 keeps Tab inside the surface and no handler watches Escape; apps/host/src/lib/store.ts:804 navigates back to setup whenever setup is incomplete. Settings — the only place the language can be set, apps/host/src/screens/Settings.tsx:31 — is unreachable while the card is up.

5. What a user actually has to do to get out. Quit the app (the card says "You can close Strata; it continues where it stopped." — EngineFirstRun.tsx:139, which is about the download carrying on in the host), reopen it, and this time, with the engine present, the card is skipped and the wizard with Finish later appears — then Settings, then the language, then back to the model download. I cannot tell from here which branch this particular restart landed in, but the point does not depend on that: on the offer screen there is no exit at all, and the workaround (quit and reopen) is not something a person who cannot read the screen is going to invent. That is the whole of the complaint: the screen that decides what gets downloaded is the one screen the language setting cannot reach.

6. The language half needs no new UI: the app already reads the OS locale and ignores it for language. GET /api/locale (apps/host/server/index.mjs:1951 → apps/host/server/region.mjs:60 systemLocale()) returns the system locale, region and currency, and the only thing it is used for is money (apps/host/src/lib/money.ts:14, apps/host/src/lib/currency.ts:45-66). The UI language is a hardcoded English in four places, none of them consulting the system: apps/host/src/lib/store.ts:164 (language: 'en' in the defaults), :219 (a saved value only), apps/host/server/shell-prefs.mjs:16 (DEFAULTS), apps/desktop/src-tauri/src/shell.rs:27 (language: "en".into()). The target list already exists — apps/host/src/lib/i18n.ts:48 LANGUAGES, nine languages — so a tag→language map applied to the value /api/locale already returns, plus one Change language line on the first-run card, is enough.

7. One more verified detail of the same flow. The Windows installer is English-only: apps/desktop/src-tauri/tauri.conf.json → bundle.windows.nsis.languages: ["English"]. It matters less than items 1-6 (the installer is short and mostly buttons), but it is why "install it in Chinese" is not an option today.

The one-line version of sub-item 1: the first-run card should (a) open in the language the host already reads from the system, and (b) carry the same Finish later / Continue without an engine exit the wizard already has, so the language can be set without quitting the app and without a download decision made in a language the user cannot read.

I am happy to split this out of #3723 as its own issue if you would rather keep #3723 as the four original items — say so and I will do it. Read from the sources, not clicked through on a fresh VM, so treat this as static analysis plus the fresh-install walkthrough already in the issue body.

<!-- gh-comment-id:6539790998 --> @xvcezrqpbxtpzblrt commented on GitHub (Oct 31, 2026): **Correcting how sub-item 1 was framed, after re-reading the first-run flow in 0.2.8.** My original wording ("the first screen after the installer is the model download, the language switch is in settings") made it sound smaller than it is. The installer's language is not the problem, and "just change it in Settings" is not actually possible at that moment, because the first screen of the app has **no exit of any kind**. All references below are tag `v0.2.8` (app 0.2.8, Control and engine 0.1.54). **1. The first screen is the engine-download card, not the wizard.** `apps/host/src/screens/Setup.tsx:15-16`: while the engine is missing, the setup surface returns `<EngineFirstRun/>` instead of `GuidedSetup`. `useEngineNeeded()` (`apps/host/src/components/EngineFirstRun.tsx:28-42`) re-reads `GET /api/control/status` every 3 seconds and reports `true` whenever `engine.usable === false` — which is the state of a fresh Windows install until the engine has been downloaded. **2. That card offers no way out.** `EngineFirstRun.tsx:153`: on the normal path (`GET /api/engine/first-run` → `status: "offer"`) the screen has exactly two controls — **Download the engine** and **I already have the file…**. The header (`:172`) contains the logo and nothing else: no close button, no *Finish later*, no *Continue without an engine*. The escape hatch **Continue without an engine** exists only in the fallback branch at `:165`, which the normal path never reaches. And once the card has been shown it cannot be skipped: `Setup.tsx:11-16` keeps `cardShown` true, and the only control that clears it is `onDone`, reachable only from "The engine is ready. Next: pick a model." (`:133-134`) — that is, only after the download finished. **3. The wizard behind it does have exits, so the intent is clear.** `GuidedSetup.tsx:209` **Go straight to the app** (step 1) and `:204` **Finish later** (later steps). The engine card simply never carries that over. **4. Nothing else is reachable from that card.** `apps/host/src/app/App.tsx:71-76` renders it inside `role="dialog" aria-modal="true"`; the scrim (`:72`) has no click handler; `apps/host/src/lib/focus.ts:113-118` keeps Tab inside the surface and no handler watches Escape; `apps/host/src/lib/store.ts:804` navigates back to `setup` whenever setup is incomplete. Settings — the only place the language can be set, `apps/host/src/screens/Settings.tsx:31` — is unreachable while the card is up. **5. What a user actually has to do to get out.** Quit the app (the card says "You can close Strata; it continues where it stopped." — `EngineFirstRun.tsx:139`, which is about the download carrying on in the host), reopen it, and this time, with the engine present, the card is skipped and the wizard with *Finish later* appears — then Settings, then the language, then back to the model download. I cannot tell from here which branch this particular restart landed in, but the point does not depend on that: on the `offer` screen there is no exit at all, and the workaround (quit and reopen) is not something a person who cannot read the screen is going to invent. That is the whole of the complaint: the screen that decides what gets downloaded is the one screen the language setting cannot reach. **6. The language half needs no new UI: the app already reads the OS locale and ignores it for language.** `GET /api/locale` (`apps/host/server/index.mjs:1951` → `apps/host/server/region.mjs:60 systemLocale()`) returns the system locale, region and currency, and the only thing it is used for is money (`apps/host/src/lib/money.ts:14`, `apps/host/src/lib/currency.ts:45-66`). The UI language is a hardcoded English in four places, none of them consulting the system: `apps/host/src/lib/store.ts:164` (`language: 'en'` in the defaults), `:219` (a saved value only), `apps/host/server/shell-prefs.mjs:16` (`DEFAULTS`), `apps/desktop/src-tauri/src/shell.rs:27` (`language: "en".into()`). The target list already exists — `apps/host/src/lib/i18n.ts:48 LANGUAGES`, nine languages — so a tag→language map applied to the value `/api/locale` already returns, plus one *Change language* line on the first-run card, is enough. **7. One more verified detail of the same flow.** The Windows installer is English-only: `apps/desktop/src-tauri/tauri.conf.json` → `bundle.windows.nsis.languages: ["English"]`. It matters less than items 1-6 (the installer is short and mostly buttons), but it is why "install it in Chinese" is not an option today. **The one-line version of sub-item 1:** the first-run card should (a) open in the language the host already reads from the system, and (b) carry the same *Finish later / Continue without an engine* exit the wizard already has, so the language can be set without quitting the app and without a download decision made in a language the user cannot read. I am happy to split this out of #3723 as its own issue if you would rather keep #3723 as the four original items — say so and I will do it. Read from the sources, not clicked through on a fresh VM, so treat this as static analysis plus the fresh-install walkthrough already in the issue body.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#1555
No description provided.