[GH-ISSUE #5351] [Engine] Configuration files #3189

Open
opened 2026-11-07 14:38:45 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @GruenSein on GitHub (Nov 5, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/5351

What happened

Engine configuration is spread across several files, and the file a user edits is not reliably the file the engine reads. After a clean install, engine runtime parameters appear in multiple locations:

~/.local/share/strata/install/strata-<model>.json (opened by the UI)

~/.local/state/strata/launch/<preset>.json (live launch state)

~/Documents/Strata/strata-<model>.json (model-adjacent copy)

tuning output such as ~/.local/state/strata/launch/<preset>.tune.json

saved presets under .config/strata/profiles/ or the preset directory

environment variables that affect the engine and have no corresponding entry in any profile

These files are not kept in sync. Loading a model rewrites more than one of them, and the user cannot tell which file is authoritative.

Specific configuration problems observed:

  1. Tuning files are separate and not clearly linked to the active profile.
    Tuning writes a .tune.json file containing result.base and result.arms, but it is not obvious whether the tuned values are applied automatically, whether they live only in the launch file, or whether they are merged into a preset. If tuning creates a variant, it is not stored in the same schema or directory as the profile it modifies.

  2. Settings are duplicated between args and user_args, with unclear precedence.
    The launch file can contain the same flag in both args and user_args. user_args is supposed to win on conflict, but some control-layer functions strip --draft* flags from args and only read them back from user_args, while other flags are handled differently. A setting placed in args may be ignored; the same setting in user_args may reach the engine. There is no single rule a user can rely on.

  3. args_written adds a third argument list.
    Some configuration files contain args, user_args, and args_written. The relationship between these three lists is not documented in the UI or CLI. It is unclear which list is generated, which is preserved, and which is actually sent to the engine.

  4. Settings are silently ignored.
    Examples reported by users include strata launch --set draft-conf=… being replaced by an auto value, hand-edited args being removed by the next launch, and environment-only engine switches (such as disabling layer-major prefill) having no representation in the profile. The user has no reliable way to see that a setting was dropped.

    Strata: 0.2.11, engine 0.1.58, CUDA 13

    GPU: NVIDIA RTX 2000 Ada Generation Laptop GPU (8 GB, compute capability 8.9)

    OS: Linux (Fedora-based), 32 GB RAM

    Model: coder-iq1_m (Qwen3.8-Flash-Next GSQ-RCO Coder IQ1_M)

Relevant log/config evidence

The engine started line in the logs contains flags that do not match the most recently edited launch configuration.

The launch directory contains both <preset>.json and <preset>.tune.json, and the relationship between them is not visible from the CLI.

The launch JSON contains args and user_args, and in some cases an args_written block; the same flag can appear in more than one list.

Friendly request: one authoritative engine profile per model, plus separate App/TUI/network files

The goal is to make it possible to answer “where is this setting stored?” with one path for engine settings, and clearly scoped files for everything else.

Proposal

Authoritative engine profile per model.
All engine settings — whether set by the App, the TUI, the CLI, or tuning — live in a single profile file expressed in engine-setting shape. The CLI, the App, the TUI, and the engine all read this file. Any of them may modify it. There is no second engine-parameter file in install/, launch/, or Documents/.

Tuning creates a new copy in the same directory and schema.
When tuning produces a variant, it writes a separate profile file (for example .tuned.json) in the same location, using the same schema. The user can now select the tuned or original profile.

One separate file for network / access settings.
Settings that concern only server exposure — bind host, port, API key, CORS origins — live in a single, clearly named file (for example network.json). They are not mixed into the engine profile.

One file per application for app-specific settings.
Settings that only concern the desktop App (UI preferences, available tools, window state) live in one App-specific file. Settings that only concern the TUI live in one TUI-specific file. Neither file contains engine settings, and neither overrides the engine profile.

This is offered as a consolidation of the existing files, not a redesign of the engine’s settings themselves. It would remove the current ambiguity without changing engine behaviour.

Originally created by @GruenSein on GitHub (Nov 5, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/5351 What happened Engine configuration is spread across several files, and the file a user edits is not reliably the file the engine reads. After a clean install, engine runtime parameters appear in multiple locations: ~/.local/share/strata/install/strata-<model>.json (opened by the UI) ~/.local/state/strata/launch/<preset>.json (live launch state) ~/Documents/Strata/strata-<model>.json (model-adjacent copy) tuning output such as ~/.local/state/strata/launch/<preset>.tune.json saved presets under .config/strata/profiles/ or the preset directory environment variables that affect the engine and have no corresponding entry in any profile These files are not kept in sync. Loading a model rewrites more than one of them, and the user cannot tell which file is authoritative. Specific configuration problems observed: 1. Tuning files are separate and not clearly linked to the active profile. Tuning writes a .tune.json file containing result.base and result.arms, but it is not obvious whether the tuned values are applied automatically, whether they live only in the launch file, or whether they are merged into a preset. If tuning creates a variant, it is not stored in the same schema or directory as the profile it modifies. 2. Settings are duplicated between args and user_args, with unclear precedence. The launch file can contain the same flag in both args and user_args. user_args is supposed to win on conflict, but some control-layer functions strip --draft* flags from args and only read them back from user_args, while other flags are handled differently. A setting placed in args may be ignored; the same setting in user_args may reach the engine. There is no single rule a user can rely on. 3. args_written adds a third argument list. Some configuration files contain args, user_args, and args_written. The relationship between these three lists is not documented in the UI or CLI. It is unclear which list is generated, which is preserved, and which is actually sent to the engine. 4. Settings are silently ignored. Examples reported by users include strata launch --set draft-conf=… being replaced by an auto value, hand-edited args being removed by the next launch, and environment-only engine switches (such as disabling layer-major prefill) having no representation in the profile. The user has no reliable way to see that a setting was dropped. Strata: 0.2.11, engine 0.1.58, CUDA 13 GPU: NVIDIA RTX 2000 Ada Generation Laptop GPU (8 GB, compute capability 8.9) OS: Linux (Fedora-based), 32 GB RAM Model: coder-iq1_m (Qwen3.8-Flash-Next GSQ-RCO Coder IQ1_M) Relevant log/config evidence The engine started line in the logs contains flags that do not match the most recently edited launch configuration. The launch directory contains both <preset>.json and <preset>.tune.json, and the relationship between them is not visible from the CLI. The launch JSON contains args and user_args, and in some cases an args_written block; the same flag can appear in more than one list. Friendly request: one authoritative engine profile per model, plus separate App/TUI/network files The goal is to make it possible to answer “where is this setting stored?” with one path for engine settings, and clearly scoped files for everything else. Proposal Authoritative engine profile per model. All engine settings — whether set by the App, the TUI, the CLI, or tuning — live in a single profile file expressed in engine-setting shape. The CLI, the App, the TUI, and the engine all read this file. Any of them may modify it. There is no second engine-parameter file in install/, launch/, or Documents/. Tuning creates a new copy in the same directory and schema. When tuning produces a variant, it writes a separate profile file (for example <profile>.tuned.json) in the same location, using the same schema. The user can now select the tuned or original profile. One separate file for network / access settings. Settings that concern only server exposure — bind host, port, API key, CORS origins — live in a single, clearly named file (for example network.json). They are not mixed into the engine profile. One file per application for app-specific settings. Settings that only concern the desktop App (UI preferences, available tools, window state) live in one App-specific file. Settings that only concern the TUI live in one TUI-specific file. Neither file contains engine settings, and neither overrides the engine profile. This is offered as a consolidation of the existing files, not a redesign of the engine’s settings themselves. It would remove the current ambiguity without changing engine behaviour.
Author
Owner

@github-actions[bot] commented on GitHub (Nov 5, 2026):

Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing:

  • Add the Strata version (Settings > About, or strata --version).
  • Add your graphics card with its VRAM, your RAM and your operating system.

Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment /reopen.

Details: CONTRIBUTING.md

<!-- gh-comment-id:6670508478 --> @github-actions[bot] commented on GitHub (Nov 5, 2026): Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing: - [ ] Add the Strata version (Settings > About, or `strata --version`). - [ ] Add your graphics card with its VRAM, your RAM and your operating system. Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment `/reopen`. Details: [CONTRIBUTING.md](https://github.com/Niko1221/Strata/blob/main/CONTRIBUTING.md)
Author
Owner

@github-actions[bot] commented on GitHub (Nov 5, 2026):

Thanks, this follows the format now.

<!-- gh-comment-id:6670642860 --> @github-actions[bot] commented on GitHub (Nov 5, 2026): Thanks, this follows the format now.
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#3189
No description provided.