mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #4425] [Engine] Docker: a run config key in the file GET /config names is silently discarded by the next launch #1973
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#1973
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 @tevenfeng on GitHub (Oct 28, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4425
Area
[Engine](speed, kernels, models, the server and API) — the server's run config, rewritten bystrata launch.Desktop app, Terminal or source?
Docker
What happened
On a Docker install I added a documented run-config key to the run config file that
GET /confignames for the running model:I added
"tool_call_recovery": true(and"reasoning_close_retry": true) to that file at top level, next to"args", then randocker restart strata. After the restart both keys were gone from the file, the settings were not in effect, and nothing indocker logs stratamentioned it.The same file is the one Strata's own Model settings card writes:
POST /configends up inserve/runconfig.py:save(path, cfg), which writes the file the server loaded and says the change is "used from the next start of the model". On Docker that promise cannot hold, because the next start goes throughstrata launch, which re-derives that file from the installed config before the server reads it:docker/entrypoint.shends instrata launch --no-tui --access lan … --preset "$PRESET", plus--save-preset "$PRESET"whenever any setting environment variable is set — the normal compose setup (MODEL_PATH,CONTEXT,KV, …).strata_cli/launch/runner.py:build_config()runs on every launch, not only on--save-preset:base = read_config(base_path)— the installed config from setup (strata-<model>.json,/data/install/in the Docker layout),cfg = derive_config(base, self.s, …)— "the installed one plus the choices that are not setup's",out = launch_dir() / f"{self.name}.json"; write_private(out, cfg)— it overwrites the private run config (thegyrom.jsonabove), andself.config_path = outmakes that overwritten file the one the server runs with.Net effect: in a Docker install there is no path a user has for a run-config key that
GET /configdoes not expose:serve/runconfig.py:EDITABLElists 16 keys and neithertool_call_recoverynorreasoning_close_retryis among them;strata profile setaccepts onlyOVERRIDE_KEYS(strata_control/profiles.py:host,port,parallel,batch_groups,max_queue,queue_timeout,offline, …);STRATA_SET/launch --setare documented as engine settings orSTRATA_*variables;GET /configis discarded by the next launch as shown above.This matters in practice because both affected keys are the documented remedy for the "a reply ends inside its thinking / a call written in the thinking, so no tool call is delivered and the agent stops" family:
tool_call_recovery(docs/DETAILS.md: "On 1,462 agent turns 98.3% read as intended with it and 92.9% without") andreasoning_close_retry(#1053, #2731). Following that advice on a Docker install is what led me to this report.Smallest steps or command that reproduce it
docker run … -v strata-data:/data …with at least one setting such asMODEL_PATHorCONTEXT, so the entry point re-saves the preset on every start).GET /confignames:"tool_call_recovery": trueat top level (not inside"args"), keep a copy:cp gyrom.json gyrom.json.mine.docker restart strata, wait for the model to load.docker exec strata sh -c 'grep -n tool_call_recovery $(find /data -name "*.json")'→ nothing;diffagainstgyrom.json.mineshows the launch rewrote the file./data/install/strata-<model>.json(the installed config) is unchanged, which is where the key belongs — see the workaround below.Expected: either the key stays, or the launch says it dropped something.
Reproduction status
Unconfirmed static analysis (I read code or ran a scanner; I did not see it fail)
The loss of the key was observed on a live Docker install (0.2.7, engine 0.1.52) and matches the code path quoted above line for line, but I did not run the sequence myself end to end. Logs, the file before and after, and any further command output I will add on request.
Strata version
Strata 0.2.7 · engine 0.1.52 — Docker image;
/propsbuild_info=Strata 0.1.52,/metricsengine.version=0.1.52Graphics card, memory and system
NVIDIA GeForce RTX 5060 Ti 16 GB · 64 GB RAM · Linux host, Docker container (
/datavolume), context 163840,--kv int8, 2 slotsModel, size and settings
Qwen3.8-Flash-Next-Gyro-M TQ2_0 (single GGUF) · 163840 context · kv int8 · parallel 2 · vision on · thinking on at xhigh
Logs
Nothing is logged when the key is dropped — no
[strata] …line, no warning — which is part of the report.docker logs stratafor that restart shows only the ordinary launch lines (preset, model, tuning kept, engine start). I can attach them, and the before/after copies of the run config, on request; they contain an API key and paths, so I would redact first.Suggested directions
build_config()could start from the existing private run config when it is newer than the installed one, or merge its keys, instead of deriving it from scratch frombase.[strata] … discarded run config key "tool_call_recovery"line would have made this visible indocker logs.tool_call_recoveryandreasoning_close_retryinserve/runconfig.py:EDITABLE(both are documented config keys indocs/DETAILS.md), so the Model settings card can set them likeapi_monitorandreasoning_budget_tokens.Workaround, if this is by design
Put the key in the installed config instead of the private one:
/data/install/strata-<model>.jsonin the Docker layout.derive_config()starts from that file, so the key is copied into the private config on every launch and survives restarts. Worth a line indocs/DOCKER.mdnext toSTRATA_SET, since "editstrata-<model>.jsonand restart" (docs/DETAILS.md, Quick start step 4) reads as if the file/configshows is that file.Related issues
Not a duplicate of #4077 / #4078 (parser behaviour, reasoning and tool-call markup) — this is about the run config being rewritten before the server reads it, and it blocks the remedy those threads recommend.
#1503(fixed in 0.2.7) and#2518are about the conversation cache, not the config file.