[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

Closed
opened 2026-11-04 01:51:50 +07:00 by bsakaguchi · 2 comments
Owner

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 strata command)

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 in serve/ rotates or caps it). After launch, the engine log for this model is C:\Users\njcr\AppData\Local\Strata\launch\iq3_xxs-240k.engine.log, and each profile also writes runtime\<profile>.server.log and runtime\<profile>.host.log. A log key 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.json and %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, run launch, and read the file that launch wrote: log names …\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 serve keeps the config's own log and streams the server into the terminal, which is what the per-model .bat used in the 0.1.x days.

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 `strata` command) ### 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](#L995), `open(log, "a")`; nothing in `serve/` rotates or caps it). After `launch`, the engine log for this model is `C:\Users\njcr\AppData\Local\Strata\launch\iq3_xxs-240k.engine.log`, and each profile also writes `runtime\<profile>.server.log` and `runtime\<profile>.host.log`. A `log` key 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.json` and `%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, run `launch`, and read the file that `launch` wrote: `log` names `…\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](#L63-L72)) or the monitor's Logs view as the way to watch a managed instance. `strata serve` keeps the config's own log and streams the server into the terminal, which is what the per-model `.bat` used in the 0.1.x days.
Author
Owner

@TalenMud commented on GitHub (Oct 21, 2026):

I can tackle this. Plan is to keep it focused:

  • Introduce indexed rotation (e.g. .log.1, .log.2 capped to 5 files) for the TUI launcher run log under %LOCALAPPDATA% so previous session diagnostics aren't clobbered.
  • Preserve the user-defined log config 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.

<!-- gh-comment-id:6328782582 --> @TalenMud commented on GitHub (Oct 21, 2026): I can tackle this. Plan is to keep it focused: - Introduce indexed rotation (e.g. `.log.1`, `.log.2` capped to 5 files) for the TUI launcher run log under `%LOCALAPPDATA%` so previous session diagnostics aren't clobbered. - Preserve the user-defined `log` config 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.
Author
Owner

@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

<!-- gh-comment-id:6445820594 --> @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
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#1510
No description provided.