mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #346] [CLOSED] setup: don't list the shared Chat settings file as a model config (KeyError: 'exe') #2589
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#2589
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?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/346
Author: @xidus90
Created: 10/1/2026
Status: ❌ Closed
Base:
main← Head:fix/setup-skip-shared-settings📝 Commits (1)
ecd87bdsetup: the shared Chat settings file is no model config (start menu KeyError: 'exe')📊 Changes
2 files changed (+72 additions, -3 deletions)
View changed files
📝
setup.py(+9 -3)➕
tools/test_setup_configs.py(+63 -0)📄 Description
Problem
Once Chat settings have been saved for all clients in the web UI,
START-HERE.batlists the settings file as a model of its own. Picking it crashes:Service.set_shared()inserve/server.pywrites the settings tostrata-<model>.shared-settings.jsonnext to the config (serve/server.py:2042). That name matches thestrata-*.jsonpatternsetup.pyuses to find model configs. Anyone who has saved shared settings once has the file, and resetting the settings deletes it again.Fix
A new helper,
model_configs(folder), listsstrata-*.jsonwithout*.shared-settings.json. All three places that globbed for configs now use it:installed_configs(): the start menu (the crash above).previous_config(): "set up like the last one" from another install. The settings file is written after the config, somax(mtime)could pick it there, andchoices_from_config()would then read empty args.Name-based filtering is sufficient.
serve/server.py,setup.pyandtools/calibrate.pywrite no otherstrata-*.jsonnext to a config, and calibration results go into the config's ownargs.Tests
The three new tests fail on
mainand pass with the fix. The existingtools.test_setup_pins,test_setup_amd,test_setup_lowram,test_setup_rope,test_calibrateandtest_shardsstill pass (61 tests).previous_config()also scans theStrata*folders next to the checkout, so the tests patchother_installs()to keep real installs on the test machine out.Tested on Windows 11 with Python 3.13. On a real install with both files, the menu now lists only
strata-iq3_s.json.I found no existing issue or PR for this.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.