Commit Graph
93 Commits
Author SHA1 Message Date
Niko1221 ae8ea9d420 fix(gui): clamp Hy4-Flash reasoning effort, overhaul QuestionCard UX, drain chat saves on shutdown, and fix SECURITY.md links 2026-11-23 01:12:02 +01:00
Niko1221 2e87c08db1 Release Strata 0.2.20 (Control and engines 0.1.66) 2026-11-22 20:46:53 +01:00
Niko1221 5cf4cd3343 Align Q36 expert type mirror, offline split-engine probe, quiet_crash_env, and app snapshot goldens 2026-11-22 19:43:49 +01:00
Niko1221 41aa4c850c Fix #6623, #6614, #6619, #4891, #6629, #6628, and #6626 sweep 2026-11-22 18:53:59 +01:00
Niko1221 231df084a4 hy4flash/ux: 4-tier adaptive MoE, fast hybrid verify, layer-split, zstd-dec, tokenizer recovery, and #6528/#6556/#6588/#6589/#6602/#6606/#6607/#6610 2026-11-22 17:18:10 +01:00
Niko1221 a6d64514b9 Merge branch 'f-0220-unsloth-4gb' into f-0220-int 2026-11-22 15:59:38 +01:00
Niko1221 63b73ba73f Merge branch 'f-0220-multigpu' into f-0220-int 2026-11-22 15:59:06 +01:00
Niko1221 4aecb6f9ba Add Unsloth Inkling-2-Mini GGUFs, unlock 4 GB MoE GPUs, fix #6573 and #6587 2026-11-22 15:54:50 +01:00
Niko1221 f886633847 control/tui/gui: wire multi-GPU HY-4, Inkling, AMD/Intel SYCL selection, Windows ADL dedup, and #6473/#6504 2026-11-22 15:52:10 +01:00
Niko1221 ddca992850 Merge branch 'f-0220-nextgen' into f-0220-int
# Conflicts:
#	engine/src/hy4flash/run/hy4_gpu_model.hip.h
#	engine/src/hy4flash/run/hy4_main.hip.cpp
#	engine/src/inkling2/cuda/ink_hybrid.cuh
#	engine/src/inkling2/cuda/ink_runner.cuh
#	engine/src/inkling2/hip/ink_hip_backend.hip.cpp
#	engine/src/program/generate.cpp
2026-11-22 15:05:59 +01:00
Niko1221 1f6bd2d34b feat(ssd-stream): add 3-tier NVMe streaming and first-class GPU+SSD & CPU+SSD modes 2026-11-22 14:51:40 +01:00
Niko1221 e52a7227d8 Merge branch 'f-0220-ink-ux-gguf' into f-0220-int 2026-11-22 14:22:54 +01:00
Niko1221 09616de6da inkling2: support local GGUF/.strata import and suppress Qwen engine prompts when shape engine is installed 2026-11-22 14:21:41 +01:00
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 26350e4387 Release Strata 0.2.19 (Control and engines 0.1.65) 2026-11-22 10:11:54 +01:00
Niko1221 575a752a2c inkling2: discard raw thinking channel and strip remaining thinking leaks in host 2026-11-22 02:13:14 +01:00
Niko1221 5d84abe07f inkling2: enforce no-thinking mode (off only), wire --gpus 2 EP, fix cross-OS packaging entrypoint 2026-11-22 02:08:05 +01:00
Niko1221 cd606e41dc inkling2: ensure DGX Spark GB10 (sm_121, linux-aarch64) auto-selects SQ-20 UMA 2026-11-22 00:49:06 +01:00
Niko1221 d8540c1331 inkling2: add TUI, Desktop GUI, control, private HF auth, serving, and Docker support
Add full Inkling-2-Mini (SQ-20, SQ-15, SQ-10, Vision) support across Terminal TUI, Desktop GUI, setup.py, strata_control (inkling_fit, inkling_family, shape_engine component strata-inkling, pictures, discovery, doctor, transfer HF_TOKEN auth), serve (inkling_dialect, inkling_kind, InklingOutputParser, 6-level reasoning_effort none..max, parallel 1..64), tools/packaging, and Docker shape bundling. Includes unit and end-to-end tests for Python and Desktop host.
2026-11-21 20:56:15 +01:00
Niko1221 9796bb5206 Fix Hy4-Flash TUI/CLI UX, server effort clamp, image Stop race, and run-config check
- Keep Hy4-Flash pictures enabled on Intel Arc (SYCL) and without Qwen strata-vision reader; show accurate 0.9 GB strata-hy4 vision wording
- Fetch only missing Hy4-Flash-Vision.strata on partial folders without re-downloading existing SQ-64/Engram-Q8 shards
- Streamline Hy4-Flash TUI launch flow to 6 screens (omitting Qwen-only cards/drafting/parallel/tuning/advanced) and clean Save/Start/plan/list-presets summaries
- Add clear 1-line explanations for strata tune auto, strata engine calibrate, and strata drafting on Hy4-Flash
- Fix strata connect display name in OpenCode and thinking effort levels ([high, max], default high) in omp and pi
- Clamp external OpenAI/Responses/Anthropic reasoning_effort and thinking_mode values server-side so unsupported levels never crash Hy4-Flash chat_template.jinja
- Fix multi-turn image temp-file race in hy4_kind.write_images when cancelling/stopping a stream before sending a follow-up message
- Recognize shape_title in SETUP_KEYS and GUI run-config-check.mjs so Expert settings shows no unknown-key warning on Hy4-Flash
2026-11-21 16:04:48 +01:00
Niko1221 44fd644180 hy4-flash: update HF source, on-demand vision, thinking levels, and GUI polish 2026-11-21 12:49:29 +01:00
Niko1221 76789d4e80 Hy4-Flash: skip Qwen engine update step during Hy4 install and wait out concurrent update_lock in shape_engine.ensure 2026-11-21 08:51:18 +01:00
Niko1221 e616bfda7b Merge main (3142b66b9) into 0.2.18 RC 2026-11-21 01:29:32 +01:00
Niko1221 d277b0fd0d Hy4-Flash: keep Qwen drafting choices intact, preserve Catalog stub lookup, and respect Hy4 rank-cut fit in V100 menu test 2026-11-21 01:12:56 +01:00
Niko1221 fcf5bbe86c Release 0.2.18 (Control and engines 0.1.64) 2026-11-21 00:14:58 +01:00
Niko1221 6e77ead01f Hy4-Flash: distilled dfly_patch_v3 SHA-256s, HF download source, and GUI/CLI/TUI integration fixes 2026-11-21 00:14:57 +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 cc06e2d26d GitHub's Windows checks: four tests read source files with \n and failed on a CRLF checkout; the diagnostic step used the old path
GitHub's windows-2022 runner checks out with core.autocrlf=true, so every source file has CRLF line ends there. Four tests read a source file and match it with \n and failed only there since the 0.2.16 push (main run 44412709932 and later):
- app/host/tests/agent-mcp-model-timeout.test.mjs, "the host hands the model's setting to the agent" (server/index.mjs, server/native-control.mjs)
- app/host/tests/monitor-gpu-load-hint.test.mjs, "the web Monitor shows the same sentence on its GPU load label" (terminal/serve/web/app.js)
- app/host/tests/shell-languages.test.mjs (src-tauri/src/shell.rs)
- terminal/serve/test_web_history.js, run by serve.test_web_history.HistoryInNode (serve/web/app.js)
They now read the file with CRLF turned into LF. Reproduced on the owner PC with a checkout made under core.autocrlf=true: the same three host tests and the same history case fail there and pass with LF and, after this change, with CRLF. The product code is not involved; it is the same text.

.github/workflows/check.yml: the diagnostic step imported ./apps/host/server/hardware.mjs (ERR_MODULE_NOT_FOUND since the layout move); it is app/host now.
2026-11-20 07:11:56 +01:00
Niko1221 68f3b514f6 Merge f-hy4-int (SQ-32 removed, defaults) into the 0.2.18 branch 2026-11-20 01:17:58 +01:00
Niko1221 018f5a7ac9 Hy4-Flash: SQ-32 removed (owner 2026-11-20): three builds, SQ-64 the smallest; the planner never recommends SQ-32 and a PC that cannot hold SQ-64 still gets it with the may-run-slower words and its SSD-read figure at 128K 2026-11-20 01:15:59 +01:00
Niko1221 8601e766b3 Merge f-hy4-int (Hy4-Flash Strata side and runner base) into the 0.2.18 branch 2026-11-20 00:15:23 +01:00
Niko1221 f78d8339c9 Hy4-Flash 0.2.18 defaults: 128K context, the drafter on, images on, each with a clean fallback until the engine has it
Context 128K (owner, 2026-11-19): hy4_fit budgets the KV (HY4-STRIX measured 66.3 GiB at 128K against 62.2 GiB at 4K on SQ-64: 34.7 KB a token beyond the author's 20K, +3.84 GB at 128K),
the 0.93 GB Vision shard in RAM when images are on, and notes that the 0.44 GB drafter is inside every build's dense weights. The author's 7 cases still hold at their own 20K
(AUTHOR_CONTEXT); at 128K the 12 GiB + 64 GiB home PC keeps SQ-64 resident (1.25 GB experts in the card, 54.79 GB in RAM). context_fits / recommend_context pick the largest context a
card holds the cache of; setup says so and keeps a larger one the person asks for. DEFAULT_CONTEXT is 131072 in the family, setup, launch, the catalog and the app.

Drafter on by default (DEFAULT_DRAFTER = dfly2): serve asks the engine `--info` (drafter=none|dfly2) before a start and passes `--draft dfly2` only when it says dfly2; otherwise
one log line and a start without it. Any word but off means the default (Qwen's drafting words included).

Images on by default: the Vision shard is in the default download set (setup, catalog, expected files), `--vision <shard>` is in the config, and `--vision no/off` leaves it out.
Image protocol (design note section 1.6b): `image=<path>` keys on the GEN line (one per picture, prompt order, %20 / %25 for space and percent), one placeholder pad token per
picture in the ids, `IMG i n` lines back, INFO / --info `images=1`. serve writes the pictures (JPEG, PNG, BMP, GIF after normalisation) and deletes them after the request; an engine
without an image reader gets `--vision` taken out with one line and a request with a picture answers 400 with a plain sentence. The runner's --info and INFO now say drafter=none images=0.
The mock engine implements both (HY4_MOCK_CAPS). Tests updated and added; design note and TEXT-PENDING updated.
2026-11-19 22:49:31 +01:00
Niko1221 01d81206d4 Version 0.2.17 (app and Terminal), 0.1.63 (Control and engines)
App, Terminal and the desktop shell 0.2.17; Control and every engine package 0.1.63. The release manifest (docs/data/release.json, published 2026-11-20,
the aarch64 DeepSeek package no longer an asset of the release: its feed entry names the v0.2.13 file, #6267), the version lines and installer names of the
current pages, the capability table, the settings register (line numbers), and the two tests that pin the versions follow. MIN_ENGINE stays (0, 1, 46).
2026-11-19 22:16:47 +01:00
Niko1221 d76b24cb93 Hy4-Flash: whole-file hashes of the Engram and Vision shards (the Engram Section 4 hash is kept apart); app: Hy4-Flash group, version fit, no Flash-Next options for its engine 2026-11-19 21:24:42 +01:00
Niko1221 c619aebeb9 "Leave 20% for my work" starts the engine with the old RAM budget on the started copy only; the saved run config keeps setup's number, so the Terminal always reads the new one
Owner rule: the Terminal always uses the new number. The work-mode swap is no longer part of resourceSettings (what every write of the run config takes): it is
launchBudgetArgs(cfg, profile), applied by buildConfig to the config of the start being made, after the person's options are merged in. The saved args keep setup's
--resident-budget-gib (47 on 64 GB), args_written is unchanged, and ui_resource_baseline carries no budget bookkeeping (nothing is saved, so nothing is put back).
"Full performance" and a load with no preference leave args as they are. The same rules as before: the person's budget (user_args, an edit of args), a --ram-keep-gib, and a
STRATA_RAM_KEEP_GIB / STRATA_RESIDENT_HEADROOM_GIB in the env keep their value; no work number (a 0.2.16 config not yet moved, a budget asked of setup, unified memory) leaves the
budget alone; a config moved by strata_cli/ram_budget_move.py works as a new one.

Tests: app/host/tests/resource-rammode.test.mjs now loads through the host (a work load starts with 40, the file read afterwards has 47, performance 47, the person's value in both),
terminal/tools/test_setup_rammode.py: a Terminal start (engine_args) of the config the app saved gets 47. Docs (UNSLOTH_Q4.md, DETAILS.md) say the swap is not saved.
2026-11-19 17:48:56 +01:00
Niko1221 fd008fbbec The run config check knows "ui_budget_work_gib" (setup writes it, so the settings panel must not call it a key nothing reads)
The host test that compares setup's SETUP_KEYS with the check's known keys failed on the first gate run (p1006-20261119-1657-5bfb, owner-20261119-1657-b3cc).
2026-11-19 17:02:05 +01:00
Niko1221 c8d70bbcdc RAM budget per mode: "Leave 20% for my work" keeps RAM less 24 GB, Full performance and the Terminal get RAM less 17 GB; 0.2.16 configs move once; the reading rounds up to the PC's size
Owner decisions 11-19. Setup writes both numbers in the run config: --resident-budget-gib in args is the new rule (47 on 64 GB), and "ui_budget_work_gib" is the old
rule (40) from the same function (resident_budget_gib(work=True)). The app's "Leave 20% for my work" swaps the second one into args and records what it replaced in the
resource baseline (setupBudget); "Full performance" runs with setup's number and puts it back after a work load. The app holds no copy of the rule. The key is left out when
setup was asked for a budget, when the config keeps one of the person's (user_args, an edit of args), and where the two rules agree (a unified-memory GPU, 24 in both; every
expert in RAM). A budget, --ram-keep-gib, STRATA_RAM_KEEP_GIB or STRATA_RESIDENT_HEADROOM_GIB of the person's wins in every mode.

A 0.2.16 config (setup's old number, args_written equal, no second number) moves once at the first command of the new Control (strata.py -> strata_cli/ram_budget_move.py,
setup.migrate_ram_budget): 40 -> 47 on 64 GB, 24 -> 31 on 48 GB, 8 -> 15 on 32 GB, with the old number as the work number. A number the person set, a unified-memory PC
and a layer split are not touched; the earlier file is kept as .bak, a second run changes nothing, and a config with nothing to move is not written.

The RAM reading is rounded up to the size the PC is sold with (16/24/32/48/64/96/128/192/256, then a multiple of 8) where it reads within 3% under it, only in the budget rule:
a 64 GB Windows PC (63.1) gets 47 like Linux, a PC with 60 GB gets 43.

Tests: terminal/tools/test_setup_rammode.py, app/host/tests/resource-rammode.test.mjs, goldens regenerated with the repo's generators, docs (UNSLOTH_Q4.md, DETAILS.md).
2026-11-19 16:51:47 +01:00
Niko1221 83999039d5 gtui French strings: a no-break space before the semicolon (the French typography test) 2026-11-19 14:19:26 +01:00
Niko1221 b97a0c2e74 First-run memory card: a processor's built-in graphics is not counted as a second GPU next to a real card (GUI-TUI QA)
On the owner PC (Ryzen 5 7600 with its built-in "AMD Radeon(TM) Graphics", 0.5 GB, and an RTX 5070) the Welcome flow said
"VRAM · 2 GPUs 12 GB" and "2 GPUs connected", while the Terminal and the Models page count one card. listedGpus() leaves out a card with a known
size under 1 GB when another card has 4 GB or more; a size of 0 (not read) is kept. Test: onboarding-memory.test.mjs.
2026-11-19 14:14:07 +01:00
Niko1221 87ad937524 QA fixes: the Model step's box no longer ends in the middle of a sentence at 80x24; Model files names the models folder before and after a load (GUI-TUI QA)
- Terminal, Model step at 80x24: for a model that does not fit, the explanation box (four lines) ended with the cut sentence "The n-gram table
  stays on your SSD and is". That general sentence now shows only for a model that fits or in a window of 30 rows or more; the help (?) keeps it.
  Test: terminal/tests/terminal/test_guitui_0217.py (fails before, 3 passed after).
- App, Models page: the "Model files" card showed C:\...\Strata\Models before a model was loaded and C:\...\Strata (the data folder) after.
  It now always names the models folder, the same one Settings > Storage shows. Test: guitui-0217.test.mjs.
2026-11-19 14:14:07 +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 55f3d8fcbd App: the model list of GET /v1/models has the status, the architecture and one row per alias, as the engine's own list has (#6193, #6180)
From PR #6193 (FluxNimbusAi; its commit f13232ead), author kept. A client that asks the app for /v1/models got rows
without the status object, the input and output kinds and the alias rows that the engine's own list gives; a client
that decides from those fields saw a different model list through the app. Each ready instance now has a row with
status {value: "loaded"}, architecture (text, plus image when the instance has vision) and the context fields it had
before; each alias that differs from the model id is a row of its own with alias_of naming the model id.
Applies as posted (the author rebased it on the 0.2.16 layout). The PR's tests are kept: native-models-meta.test.mjs
(new) fails on the old code (it expects the alias row between the two instances' rows) and passes with the change;
native-models.test.mjs and native-models-context.test.mjs are updated to the new rows. 16 of 16 pass.
2026-11-19 13:12:17 +01:00
Niko1221 262b8f32bc Merge f-fix-app: GitHub issues of the app, setup, docker, mac and terminal areas (0.2.17) 2026-11-19 13:11:00 +01:00
Niko1221 9fb2e3eadb Monitor: "Energy since start" counts the power the engine reports where the host has no reading of its own (#3727)
On a Windows AMD card the host has no power sensor, so the energy meter (fed only with the host's own readings) stayed at 0.0 Wh
while the Power tile, which takes the engine's reading, showed 235 to 285 W (reported on RX 9070 XT, RX 7900 GRE). The host's poll
of an engine's /metrics now notes the watts it reports (hardware.gpus[].power, else hardware.gpu_power) per instance, and the
meter adds the larger of the host's sum and the engines' sum (the same card in both is not added twice); a reading older than 6 s
counts for nothing. Tests: app/host/tests/energy-engine-power.test.mjs; energy-partial-power.test.mjs follows the new call.
2026-11-19 13:10:56 +01:00
Niko1221 f1f710c319 Skills: the agent's copy of a workspace skill holds the whole skill folder, not only SKILL.md (#6245)
materializeSkills() wrote one file per skill, a regenerated SKILL.md, into <data>/agent/skills-live/<name>/ and never copied the
rest of the skill's folder, so a skill that says "run scripts/build.py" or "use the template in assets/" pointed at nothing (one
worksheet request took 48.6 minutes and 244 tool calls in the report). A skill that comes from a folder of its own (the app's
written skills and the workspace's skills folder) now brings the files beside its SKILL.md: same places, links and dot folders
and node_modules left out, limits of 500 files / 64 MB / 6 levels / 16 MB a file, an unchanged file not rewritten (the agent
treats every write as a change), a file taken out of the skill taken out of the copy too (a note .strata-copied.json lists what
was copied; files the person put there by hand are never touched). The skill id -> folder map stays in the host; the page does
not receive it. Tests: app/host/tests/skill-extras.test.mjs.
2026-11-19 13:10:55 +01:00
Niko1221 84a01e1709 Host test: the card order check names the saved roles (#6117)
native-fb5.test.mjs matches the NativeModels.tsx expression that picks the shown card roles; it now includes the roles the run config holds, between the running model's cards and the recommendation. Test only.
2026-11-19 11:03:19 +01:00
Niko1221 c2c5de7261 Host: the default workspace is in the same Documents folder as the models on Linux (#3749)
The models folder follows XDG_DOCUMENTS_DIR (Dokumente on a German desktop) and the default workspace was hard-coded to <home>/Documents, so one install had two Strata folders. workspaceBases puts the system's Documents folder first on Linux; a workspace already made in <home>/Documents is kept while the system folder has none, and Windows and macOS are unchanged. Test: app/host/tests/fixapp-0217-workspace-documents.test.mjs.
2026-11-19 10:56:06 +01:00
Niko1221 8fc68883a2 Host: a test keeps POST /v1/responses open on the shared port (#5677, already fixed in 0.2.16)
The shared listener answered 404 for the Responses API in 0.2.13; the host now starts it with allowResponses. The test covers the allow-list in both directions and that index.mjs passes the flag. Test only.
2026-11-19 10:50:34 +01:00
Niko1221 b584e131fe App: the Graphics cards box shows the cards the model was last started with, and Back to recommended replaces them (#6117)
A Load that asks for the recommendation keeps the cards the model's run config names (the #3256 rule), but the box showed the recommendation, so it said Recommended on two cards and the Load ran on the one saved card, then flipped to Your choice. The server now hands over the run config's gpu_roles with the installed model; the page shows them (savedRoles in lib/gpu-roles.ts) while the person has not picked roles, and Back to recommended, or a pick equal to the recommendation, is sent as a choice (gpuRoles) that replaces the saved ones. No text changes. Tests: app/host/tests/fixapp-0217-saved-roles.test.mjs.
2026-11-19 10:47:52 +01:00