mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
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#4161
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/2605
Author: @qiuzan2001
Created: 10/15/2026
Status: ❌ Closed
Base:
main← Head:chief-serve/bench-profile-key📝 Commits (1)
044439ebench: a bench-started server also drops the config's "expert_profile_save" key, not only the argument (#2088)📊 Changes
2 files changed (+25 additions, -4 deletions)
View changed files
📝
tools/strata_bench.py(+10 -4)📝
tools/test_strata_bench.py(+15 -0)📄 Description
On #2088; the gap docs PR #2601 describes.
What it changes. When the bench starts the server itself,
without_profile_save()intools/strata_bench.pygives it a copy of the config without
--expert-profile-save, so the bench's short prompts do not overwrite theuser's profile (
017a672a). Butserve/server.pylearned_profile_args()adds that same argument back from aconfig's
"expert_profile_save"key (#477, opt-in): a bench-started server from such a config still saved itsprofile at QUIT and every 10 minutes, and started from the learned profile instead of the config's own
--expert-profile, against the pinned-profile rule in docs/COMMUNITY_BENCHMARKS.md. The copy now also leaves out"expert_profile_save"and"expert_profile_save_every", and the stderr note names the key.What it leaves alone. The user's config file (only the temporary copy beside the bench log changes). A config
with neither the argument nor the key: the same object, started from the user's own file as before.
--urlruns(the bench does not start that server). The server's handling of the key.
How it was checked.
tools/test_strata_bench.pyReportTests.test_a_bench_server_never_saves_over_the_users_profilenow also covers a config with the key: the copyhas no key,
learned_profile_args()on the copy adds no--expert-profile-save(on the original it does), andstart_serverwrites the copy without the key. Fails onmain; 17 tests OK. Python 3.14, Ubuntu (Linux 7.0); no GPU.🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.