mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #3504] [TUI] Terminal 0.2.1 Advanced settings mis-serialize multi-value args and "off" emits bare flags instead of removing them #1436
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#1436
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @PTSD-Creations on GitHub (Oct 20, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/3504
Summary
Strata Terminal 0.2.1's Advanced settings/profile generation can produce invalid engine argv in two related ways:
offremoves an override, but for some options it instead leaves the flag inargswith no value.The resulting bare flags consume later argv values and cause misleading engine startup errors.
This appears related to #3216, but this reproduction is on Terminal 0.2.1 / Control 0.1.46.2 / Engine 0.1.46 and involves Advanced-setting serialization.
Environment
0.2.10.1.46.20.1.46Issue 1: Multi-value argument serialization
The engine expects:
--control-vector-layer-range 4 44A valid profile therefore needs:
"--control-vector-layer-range", "4", "44"When configured through the Terminal Advanced-settings path, the generated runtime JSON instead becomes:
"--control-vector-layer-range", "4,44"The engine option itself expects two values (
A B), so these are not equivalent argv.Issue 2:
offleaves bare flagsThe Advanced editor indicates that entering
offremoves the setting.After setting the control-vector options to
off, however, the generatedargscontained:"--control-vector-layer-range", "--control-vector-scaled", "--conversation-cache-mib", "8192", "--conversation-cache-slots", "4", "--cvec-dir", "--cvec-mode"Instead of removing the disabled options, their values were removed while the option names remained.
This corrupts parsing because valued options consume the following argv entries.
For example, the engine eventually reported:
unknown argument: 8192even though the cache setting itself was correctly represented as:
"--conversation-cache-mib", "8192"Another startup attempt failed with:
--cvec-dir: per-layer or single:L, got '--cvec-mode'This shows
--cvec-modewas being consumed as the missing value for the preceding bare--cvec-dir.Expected behavior
For a multi-value setting:
--control-vector-layer-range 4 44should serialize as:
"--control-vector-layer-range", "4", "44"If
offmeans remove, the option itself and its value(s) should be completely absent from generated engineargs.Actual behavior
Multi-value input can become:
"--control-vector-layer-range", "4,44"and options set to
offcan become bare flags such as:"--control-vector-layer-range", "--control-vector-scaled", "--cvec-dir", "--cvec-mode"Those bare flags then shift argv parsing and cause subsequent valid settings to appear to be invalid.
Workaround / Confirmation
Manually deleting the offending control-vector overrides/arguments completely allowed the NVFP4 profile to start and begin tuning.
This suggests the NVFP4 model/engine itself was not responsible for the startup failure.
The generated profile also contained an
args_writtenarray that ended cleanly before these Advanced overrides, whileargscontained the malformed appended options. This made the difference particularly visible.Related
Possibly related to #3216, which involves control-vector arguments being lost/regenerated, although this reproduction is specifically the Terminal 0.2.1 Advanced-settings serialization/removal behavior.
@github-actions[bot] commented on GitHub (Oct 20, 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:
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
@github-actions[bot] commented on GitHub (Oct 20, 2026):
Thanks, this follows the format now.
@Niko1221 commented on GitHub (Oct 21, 2026):
Fixed for 0.2.2, the next release (not out yet). --control-vector-layer-range is written as two entries (4,44 / 4 44 / 4-44 all work) and removed with both values. An empty value in the Advanced table no longer writes a bare flag.
--aux-cpus: helper threads on spare CPUs, +10% decode on a layer split (Linux, opt-in) #3555