[PR #1806] [CLOSED] config: user_args - engine options of the user's own that setup keeps #3687

Closed
opened 2026-11-07 15:30:04 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/1806
Author: @gt50
Created: 10/10/2026
Status: ❌ Closed

Base: main ← Head: user-args


📝 Commits (2)

  • f93a2d6 config: user_args, engine options of the user's own that setup keeps and the server applies over args
  • 90b17ce config: the layer-split and GPU-order checks read args with user_args over them

📊 Changes

6 files changed (+109 additions, -12 deletions)

View changed files

📝 docs/DETAILS.md (+7 -0)
📝 docs/INSTALL.md (+3 -1)
📝 serve/runconfig.py (+12 -3)
📝 serve/server.py (+47 -7)
📝 serve/test_server.py (+37 -0)
📝 setup.py (+3 -1)

📄 Description

Title

Config: "user_args", engine options of the user's own that setup keeps

Summary

Setup writes "args" on every run, so engine options added there by hand are dropped and named (#629). "user_args" is a list of the user's own options, e.g. ["--no-prefill-borrow", "--kv-resident", "0"]. The server applies it over "args" when it starts the engine: an option in both takes the user_args value, any other is added. Setup never writes the key, so carry_over already keeps it. Split out of #1789 (which now only carries the Windows AMD images), as AGENTS.md asks: one change per PR, a new feature opt-in.

What changed

  • serve/server.py:
    • user_args_of(): a list of strings starting with an option, else a config error at start;
    • merge_user_args();
    • engine_args() applies it before #1322's --vision check, so that check sees the final options.
  • serve/runconfig.py: the web app's Settings read and edit an option in user_args when it is there (else args, as before).
  • setup.py: the "options it had that this one has not" line points to user_args.
  • Docs: docs/INSTALL.md and docs/DETAILS.md.

Extra Notes

  • Default path: without the key, engine_args returns exactly what it did (tested).
  • Tests: serve/test_server.py UserArgs: replace and add, bad values, the Settings page. All serve and setup test files pass on main 61b3fb5d (1156 tests; rebased).

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Niko1221/Strata/pull/1806 **Author:** [@gt50](https://github.com/gt50) **Created:** 10/10/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `user-args` --- ### 📝 Commits (2) - [`f93a2d6`](https://github.com/Niko1221/Strata/commit/f93a2d68c92c6339b1b0b0abf87a15b3cb126525) config: user_args, engine options of the user's own that setup keeps and the server applies over args - [`90b17ce`](https://github.com/Niko1221/Strata/commit/90b17ce4181376ae9d43a0c8e365f80966b7d458) config: the layer-split and GPU-order checks read args with user_args over them ### 📊 Changes **6 files changed** (+109 additions, -12 deletions) <details> <summary>View changed files</summary> 📝 `docs/DETAILS.md` (+7 -0) 📝 `docs/INSTALL.md` (+3 -1) 📝 `serve/runconfig.py` (+12 -3) 📝 `serve/server.py` (+47 -7) 📝 `serve/test_server.py` (+37 -0) 📝 `setup.py` (+3 -1) </details> ### 📄 Description ## Title Config: "user_args", engine options of the user's own that setup keeps ## Summary Setup writes `"args"` on every run, so engine options added there by hand are dropped and named (#629). `"user_args"` is a list of the user's own options, e.g. `["--no-prefill-borrow", "--kv-resident", "0"]`. The server applies it over `"args"` when it starts the engine: an option in both takes the `user_args` value, any other is added. Setup never writes the key, so `carry_over` already keeps it. Split out of #1789 (which now only carries the Windows AMD images), as AGENTS.md asks: one change per PR, a new feature opt-in. ## What changed - **`serve/server.py`:** - `user_args_of()`: a list of strings starting with an option, else a config error at start; - `merge_user_args()`; - `engine_args()` applies it before #1322's `--vision` check, so that check sees the final options. - **`serve/runconfig.py`:** the web app's Settings read and edit an option in `user_args` when it is there (else `args`, as before). - **`setup.py`:** the "options it had that this one has not" line points to `user_args`. - **Docs:** `docs/INSTALL.md` and `docs/DETAILS.md`. ## Extra Notes - **Default path:** without the key, `engine_args` returns exactly what it did (tested). - **Tests:** `serve/test_server.py` `UserArgs`: replace and add, bad values, the Settings page. All `serve` and setup test files pass on `main` 61b3fb5d (1156 tests; rebased). 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 15:30:04 +07:00
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#3687
No description provided.