mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-31 19:16:29 +00:00
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:
parent
52b16c2d92
commit
9d4bfd5e3d
2 changed files with 7 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue