mirror of
https://github.com/Darkatse/TauriTavern.git
synced 2026-10-19 15:45:12 +00:00
Only settings.json is an untyped JSON object whose parse failure means the
bytes are damaged. tauritavern-settings.json is typed, so a parse failure
may be a schema problem and keeps failing fast.
- Recover in one match arm: rename the damaged file to
settings.json.corrupt-<unix_ms>, rebuild from the bundled
default/content/settings.json, and report through the user-visible error
channel once the rebuild succeeded. A failed rename propagates instead of
overwriting the only copy of the damaged bytes.
- Inject the bundled defaults from the composition root; a missing
settings.json now converges on the same defaults instead of `{}`.
- Move the startup-only blocking loader out of the repository as
load_tauritavern_settings_blocking.
|
||
|---|---|---|
| .. | ||
| crates | ||
| resources/tokenizers | ||
| .gitignore | ||
| Cargo.lock | ||
| Cargo.toml | ||