Commit Graph
14 Commits
Author SHA1 Message Date
Niko1221 0a8b39376c [GUI] resolve subagent work view (#6516), model server port (#6475), prompt-cache-spread (#6469), and PRs #6390 #6391 #6394 2026-11-22 14:15:07 +01:00
Niko1221 3142b66b96 Paths in comments, usage lines and READMEs: apps/host and apps/desktop are app/host and app/desktop since the layout move
The move of apps/ to app/ in 0.2.16 left the old names in comments, docstrings, usage lines of scripts ("python apps/desktop/scripts/stage-control.py ...", "cd apps/host") and in a few READMEs. A search of every code path (string literals, join() arguments, imports, workflows, build files) found none still pointing at apps/: the only code use of "apps" left are the Harness's own apps/cli folder and tools/layout (the move scripts, kept as they were). So this changes text only: 131 replacements in 88 files. history/apps/..., @tauri-apps/... and apps/cli are left alone. terminal/strata_control/app_policy.py writes a header line that is also in app/host/server/policy-generated.mjs; both changed together (tests/terminal/test_app_policy.py passes).
2026-11-20 07:11:56 +01:00
Niko1221 05c98301b7 Chat: a picture an earlier message lost from browser storage no longer stops every later message; the Models page fits a 360 px window (GUI-TUI QA)
Seen in the QA pass: after a chat with a picture, the same host opened in another browser profile (or after the browser data was cleared)
answered every new message of that chat with "red-square.png is no longer in browser storage. Attach it again. Try sending the message again.",
and an earlier message cannot get its picture back, so the chat was stuck.

- lib/history-pictures.ts: readHistoryPictures reads what it can; a picture it cannot read is left out of the history, named to the model
  in the earlier message's text, and the page shows a toast (gtui03, gtui04 in 10 languages).
- app.css: at 360 px the Version row and the Computer use switch of the Models page wrap instead of running past the card.
- Tests: guitui-0217-pictures.test.mjs.
2026-11-19 14:14:07 +01:00
Niko1221 af84e7e7ff Desktop: the shell takes only the App Host's own answer for its host; a model started from the Terminal on the port is named (#6278)
`strata launch` serves on 8080 and answers /api/health with 200, like the App Host. The shell's health wait and the Linux session check
(live_session) took any 200 as "Strata is running", so a stale app session (old process id reused) or a port the person had chosen in
Settings (8080) showed the Terminal model server's own web page in the app window, which asks for that server's API key.

- identity.rs: classify_health tells the App Host ("uptimeSec") from a Strata model server ("service": "strata").
- wait_for_health and live_session accept only the App Host.
- When the wanted port is busy and a Terminal model server holds it, the notice is busy:<wanted>:<used>:terminal and the page says so
  in plain words (new gtui locale family, 10 languages); the old busy-port text stays for any other holder.
- Tests: identity.rs unit tests, a main.rs test with a stub server on a loopback port, guitui-0217.test.mjs.
2026-11-19 14:14:07 +01:00
Niko1221 20bd33abf0 Expert settings and the Terminal: the route tail skip is Off by default, On is 7 (0.2.17)
Owner decision 2026-11-19: the tail skip ("Skip rarely used parts of the model", STRATA_ROUTE_TAIL_SKIP) is off by default; users reported lower quality.

- strata_control/speed_switches.py: route_tail_skip has default "off"; its entry is STRATA_ROUTE_TAIL_SKIP=7 (On); the choices are 7 (On) and the ranks
  1-6, 8, 9; "0" is no longer a choice (a 0 in a config, setup's or the person's, reads as Off). The Terminal's Default cell says "off".
  engine_env_defaults() holds the start default (unset -> 0), used by the next commit.
- app: the dropdown's default option is the word of the switch's default state ("Off (default)"; it was "Automatic (recommended)"), On is the choice 7.
  policy-generated.mjs is regenerated with python -m strata_control.app_policy; the hint's last sentence is "Off by default." (it was "On by default where it helps.");
  the ten languages of both strings are in scripts/make-guic-locales.py (same two entries, same numbering).
- tests: test_tail_skip_choice.py, test_speed_switches.py, tail-skip-choice.test.mjs (default label, 7 writes the entry, Off removes it).
2026-11-19 09:02:31 +01:00
Niko1221 f2919b3585 Connection banner: after two failed Retries it says the background part has stopped and what helps (packaged-app walkthrough A63)
With the host process gone, Retry only asks the same address again, so it does nothing visible; the Windows and macOS app is one process with no host watcher (a 0.2.17 item, as in v0.2.15).
The banner now counts the Retries that finish with the connection still down (lib/connection-retry.ts, cleared when the connection is live) and, from the second one,
shows "Strata's background part has stopped. Close Strata and open it again." on its own row. Ten languages. TEXT-PENDING: the owner is asked about the line.

Test: tests/connection-retry.test.mjs.
2026-11-17 21:01:04 +01:00
Niko1221 6fc8add9b9 Tasks: a line says why Run now is disabled when no model is loaded on this computer (packaged-app walkthrough A70)
With only an API model picked, "Run now" stays disabled on the Tasks list and said nothing. That is right: a task run on the host uses the model loaded on this computer
(server/index.mjs runTurn without a remote model; the agent-task runner takes an API model only from the developer variable STRATA_TASK_REMOTE_MODEL). A plain line now reads
"Tasks run on a model loaded on this computer. Load one in Models." when there are tasks, no model runs here and no editor is open. Ten languages. TEXT-PENDING: the owner
is asked about the line. Running a task on an API model (a model per task, and whether unattended tasks may use an API provider) is a 0.2.17 decision.

Test: tests/tasks-model-note.test.mjs.
2026-11-17 21:01:02 +01:00
Niko1221 b056792b57 First run: an unreadable download list has its own words and one next step; the offline and error cards can go on without an engine (packaged-app walkthrough A10, fix 2)
Any first-run error that is not "no internet" (an unreadable feed) showed the "can't pick an engine from its update list ... press Update Strata in Settings" card. It now has a card
of its own: "Strata couldn't read its download list, so it can't pick an engine yet. Press Try again, or choose another way below." (raw reason behind Details), with Try again,
Choose a downloaded file and Continue without an engine. The offline card gets Continue without an engine too (until now only the generic card had it, so an offline person
had no way on except connecting to another computer). The card for "the feed was read and nothing fits" keeps its wording. Ten languages through make-guic-locales.py.
TEXT-PENDING: the owner is asked about the one new English line.

Tests: tests/engine-first-run-card.test.mjs; tests/connect-only.test.mjs counts the new branch.
2026-11-17 20:55:33 +01:00
Niko1221 f994d618c3 Languages: the engine settings texts and the Monitor's "Last:" line are translated (GUI-VIS-1117 finding 10)
Draft layer (MTP) and MTP per request (label and hint), the groups Recovery and GPU & memory, the drafting hint (its drafter size is a {0} slot, so any size
matches, whether the host or Control writes it) and the Monitor lines "Last: {0} tokens at {1} tok/s" / "Last: {0} tokens" had no catalog entry and showed in
English in every other language. Nine strings, ten languages (make-guic-locales.py); English unchanged, no new English text. Translations are lane drafts for review.

Test: tests/engine-settings-locale.test.mjs (every such text in all nine languages, the size carried through, the Last line with its numbers).
2026-11-17 18:01:15 +01:00
Niko1221 b60358f271 Chat: with no model loaded, a line under the box says why Send is grey and what to do (GUI-VIS-1117 finding 6)
Typed text (or a picture) with no model loaded left Send greyed with no sentence; the placeholder only shows in an empty box. A plain line now reads
"No model is loaded. Load one in Models to send this message." (role status, same place and style as the busy hint). It is not shown while an answer runs,
for the bare slash, or for /time-skip (which works without a model). Ten languages through make-guic-locales.py; the English is the coordinator's draft
(TEXT-PENDING: owner's yes).

Test: tests/composer-no-model-hint.test.mjs.
2026-11-17 17:59:10 +01:00
Niko1221 a26b822caf Language switch: a live switch redraws the chat messages, and the tool-summary lines and the code label are said in the chosen language (GUI-VIS-1117 finding 2)
The chat's Message and the Markdown preview slices are memo() components that change no prop on a language switch, so they kept the words of the
language before until a reload (German with Japanese code labels and "thought for", Hebrew with Korean). They now read the language from the store.

The host writes an activity group's line in English from its counts ("Ran a command, edited a file"), and the saved chat keeps it, so that line and the
"code" label were English in every language. lib/group-line.ts reads the line back into its parts and says each in the person's language (ten languages,
make-guic-locales.py; Spanish, French, Portuguese and Russian join with a small letter after the first part, Japanese and Chinese with their own comma).
An unknown sentence stays as written. English is unchanged. New texts are drafts until the coordinator confirms them.

Test: tests/language-switch-live.test.mjs (memo components read the language; the line in all ten languages; no cache across switches).
2026-11-17 17:52:18 +01:00
Niko1221 252fc0c09d First run: the Prepare page says what is already on this computer, the file check has its own title, the tuning card has no gap, 30d / 7d are translated (GUI-VIS-1117)
Found by the visual walkthrough on 18526b879; the same in 0.2.15.

1) With the model's files already in the folder the Prepare page said "Downloading the model... 111.3 GB to download" and offered "Download model" while the plan
   said the files were here (9 GB needed) and the next screen said nothing is downloaded. Control's plan (strata_mcp.install_plan) now also carries files_complete (every file of
   the install whole at the size setup pins: no .part, the pinned size, the picture reader included; strata_mcp.files_here) and download_left_gb. The page uses them:
   files complete = title "Preparing the model...", the counter says "Already on this computer" with a check mark and no GB, the footer says "Strata checks the files first." and the
   button "Continue"; some files there = "Part of the model is already here" with "GB left to download" when Control gives the figure; nothing there = as before. Size alone
   is the cheap check: setup still checks the files by their hashes (the "checking files" step), so "Continue" is not a promise that they are good.
2) In the file check the bar's figures ("16% . 8.4 / 49.4 GB . About 5 min left . Stop") sat under the last part row (Engine, Done) and read as that row's. The bar and its figures now
   come first and the Model files / Picture reader / Engine rows below them; while the job is checking the files the title says "Checking the model files..." instead of "Downloading".
3) "A little tuning": the grid row under the artwork took the spare height of the taller tour card, leaving a gap: grid-template-rows auto 1fr.
4) "30d" and "7d" of the Usage periods had no catalog entry, so every language but English showed them as they are: translated in all ten (ja 30日 / 7日, he 30 ימים / 7 ימים, ...).

New English (approved by the coordinator): Preparing the model..., Checking the model files..., Already on this computer, Part of the model is already here, Strata checks the files
first. (the other words reuse existing strings); ten languages through make-guic-locales.py.

Tests: tests/first-run-prepare.test.mjs (7) and terminal tests/desktop/test_control_install.py files_here (sizes, .part, missing picture reader, unpinned file, GB left); Linux host suite 1953 passed / 0
failed, py-tests of test_control_install 25 passed on p1004; Windows host files 76 of 76. Live (throw-away host, headless Chrome at 1440 x 900, par/guie1117/live-firstrun3-head) with fake plans:
complete, partly, none, the check running (figures above the rows, title Checking...) and the tuning card (gap 0 px).
2026-11-17 17:46:37 +01:00
Niko1221 98ad62b613 Merge f-0216-layout (7d77f51ca) into f-0216-int (61c13b33b): the 0.2.16 layout move (the top level becomes app/, engine/, terminal/, docs/, tools/ and .github/) and the serve/server.py split into serve/server_parts/
Rename detection carried the release-check fixes 1 to 3 (routerace, commitwarn, killtimeout) onto the moved paths: app/host/server/agent/agent-bridge.mjs, gateway-client.mjs, harness-runtime.mjs, control-runtime.mjs, app/host/server/index.mjs and terminal/serve/server.py merged by content; the six files those fixes ADDED (app/host/src/lib/commit-warning.ts, app/host/tests/agent-route-race.test.mjs, commit-warning.test.mjs, control-call-log.test.mjs, terminal/serve/commit_limit.py and test_commit_limit.py) were the six "file location" conflicts and are kept at the new paths. Path fix-ups of the added files follow in the next commit.
2026-11-17 14:56:19 +01:00
Niko1221 4058aa782b Layout move for 0.2.16: the top level becomes app/, engine/, terminal/, docs/, tools/ and .github/
Made by tools/layout/move_0216.py (the commit before this one) on db8e0be9c, the final code head of 0.2.16:
- 75 git mv (renames, so `git log --follow` and blame keep working; packaging/acceptance_matrix.md shows as delete + add because its links
  changed too) and 3 removals: SETUP.bat, UPDATE.bat and update.sh (setup.py --update pulls the code now);
- 1,425 path edits in 307 files: root-relative paths in CI, Docker, .gitignore and the release scripts; Markdown links; Python and
  Node joins from a root that moved with its folder; explicit edits for code that computes a root or names a moved path; tables of
  repository paths inside tests.

engine/ holds what CMake builds (src, include, cmake, metal, sycl, spark, third_party, the C++ tests and benches). app/ is the desktop
app and its host (was apps/). terminal/ is the Terminal in the layout of the installed one (strata.py, setup.py, strata_cli,
strata_control, serve, bin, data, ref, crates, the Python tools and tests). docs/ has the documentation, docs/lang/ the translated
READMEs, docs/history and docs/bench-results. tools/ has the repository's own checks, packaging, docker, research and nix.
tests/core/test_tqp_ref.py is a pytest file and stays with the Python tests (terminal/tests/core/).
AGENTS.md, README.md, LICENSE, setup.sh and START-HERE.bat stay at the root.

No behaviour change: the same command lines, the same sources. For this head a replay of the script gave the same numbers and the path
scan (tools/layout/checks/path_scan.py) reports no hit; the suites and the builds run on this commit next.
2026-11-17 13:19:21 +01:00