mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #3656] [TUI] launch overwrites the config's "log" on every run, so each model/context gets its own log file under %LOCALAPPDATA% with no index and no rotation #1510
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#1510
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 @njcray2 on GitHub (Oct 21, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/3656
Area
[TUI]
Desktop app, Terminal or source?
Terminal (the
stratacommand)What happened
The model config used to name one log,
M:\Strata\strata-iq3_xxs.log, which every start appended to (serve/server.py:995,open(log, "a"); nothing inserve/rotates or caps it). Afterlaunch, the engine log for this model isC:\Users\njcr\AppData\Local\Strata\launch\iq3_xxs-240k.engine.log, and each profile also writesruntime\<profile>.server.logandruntime\<profile>.host.log. Alogkey the person set in their own config is overwritten on every launch. The history I had built across 135 sessions in one file (3.2 MB) is now split across per-profile files and not preserved, which makes archaeology when things go wrong harder.There are now also two copies of the same run config — the install folder's
strata-iq3_xxs.jsonand%LOCALAPPDATA%\Strata\launch\iq3_xxs-240k.json— and the profile points at the second ("source_config": "C:\\Users\\njcr\\AppData\\Local\\Strata\\launch\\iq3_xxs-240k.json"). They had drifted apart: the install copy still named the single log, the AppData copy named the per-profile one. Nothing in either file says which is authoritative.Smallest steps or command that reproduce it
Set
"log": "M:\\Strata\\strata-iq3_xxs.log"in a model config, runlaunch, and read the file thatlaunchwrote:lognames…\Strata\launch\<name>.engine.log.Reproduction status
Reproduced locally.
Strata version
Strata 0.2.2 · engine 0.1.47
Graphics card, memory and system
RTX 4070 Ti SUPER 16 GB · 63 GB RAM · Windows 11 x64
Additional Thoughts
Print the log paths in the launch summary, and mention
strata logs --follow(strata_cli/monitor_commands.py:63-72) or the monitor's Logs view as the way to watch a managed instance.strata servekeeps the config's own log and streams the server into the terminal, which is what the per-model.batused in the 0.1.x days.@TalenMud commented on GitHub (Oct 21, 2026):
I can tackle this. Plan is to keep it focused:
.log.1,.log.2capped to 5 files) for the TUI launcher run log under%LOCALAPPDATA%so previous session diagnostics aren't clobbered.logconfig entry without overwriting it on launch.Since this touches default log naming, ping me here if you'd prefer a timestamped scheme or a different rotation limit instead. Otherwise, I'll put together a PR with reproduction steps and validation logs.
@Niko1221 commented on GitHub (Oct 27, 2026):
Thank you. In 0.2.5 launch prints where the engine log is. For 0.2.7 launch keeps a log path you set yourself, and an engine log that grows past a size limit moves to .1 (kept bounded) instead of growing forever.
Release: https://github.com/Niko1221/Strata/releases/tag/v0.2.7