fix(config): register WAL sizing pragmas in DEFAULT_CONFIG

database.wal_autocheckpoint / database.journal_size_limit are now real
schema keys (default None = SQLite defaults) so the dashboard config
schema doesn't produce a single-field 'database' category, and the two
pragmas apply_database_pragmas reads are discoverable/documented.
This commit is contained in:
Teknium 2026-07-29 18:02:08 -07:00
parent 52b16c2d92
commit 9d4bfd5e3d
2 changed files with 7 additions and 0 deletions

View file

@ -14,6 +14,9 @@
# NFS, or SMB. Hermes will not live-downgrade a database already open in WAL.
database:
journal_mode: "wal" # Supported values: "wal", "delete"
# Optional WAL sizing pragmas (integers). Unset = SQLite defaults.
# wal_autocheckpoint: 1000 # pages between automatic checkpoints
# journal_size_limit: 67108864 # cap the WAL/journal file size in bytes
# =============================================================================
# Model Configuration

View file

@ -15,6 +15,10 @@ DEFAULT_CONFIG = {
# not crash-safe (for example macOS virtiofs, NFS, or SMB).
"database": {
"journal_mode": "wal",
# Optional WAL sizing pragmas, applied when set to integers.
# None = SQLite defaults (autocheckpoint 1000 pages, no size limit).
"wal_autocheckpoint": None,
"journal_size_limit": None,
},
# Global active chat session cap across CLI, TUI/dashboard, and messaging.
# None/0 = unbounded.