pub struct SessionConfig {
pub recap: RecapConfig,
pub provider_persistence: bool,
pub persist_provider_overrides: bool,
pub enabled: bool,
pub data_dir: String,
pub encrypt: bool,
pub max_event_log_mb: u64,
pub condense: CondenseConfig,
pub resume: ResumeConfig,
}Expand description
Top-level [session] config block.
Fields§
§recap: RecapConfigRecap-on-resume settings.
provider_persistence: boolWhether to persist the last-used provider per channel across restarts.
When true (the default), the agent stores the active provider name in SQLite
after each /provider switch and restores it on the next startup for the same
(channel_type, channel_id) pair.
Set to false to always start with the configured primary provider.
persist_provider_overrides: boolWhether to persist per-session provider override parameters across restarts (#4654).
Currently persists reasoning_effort only (Phase 1). Only takes effect when
provider_persistence is also true — overrides are meaningless without a persisted
provider to apply them to. Default: true.
enabled: boolWhether to maintain a durable, replayable JSONL event log per conversation-session
(spec-068, #5343). Default: true.
When true, every channel (CLI, TUI, Telegram, ACP) mints a
zeph_common::SessionId on first turn and appends
SessionEvents to <data_dir>/<session_id>/events.jsonl. When false, only the
existing messages SQLite projection is written (pre-#5343 behavior).
data_dir: StringDirectory under which per-session event logs are stored (spec-068 §4.1).
Default: .zeph/sessions (sibling of memory.sqlite_path’s parent directory).
encrypt: boolOpt-in AEAD encryption of session event logs. Deferred to a post-MVP implementation
(spec-068 §4.3) — currently has no effect. Default: false.
max_event_log_mb: u64Event-log size (in MB) that acts as a rotate/condense trigger guard (spec-068 §17).
Default: 256.
condense: CondenseConfigDurable context condensation settings (spec-068 §8).
resume: ResumeConfigResume-visibility settings: banner and /history bounds (spec-068 §13, §18).
Trait Implementations§
Source§impl Clone for SessionConfig
impl Clone for SessionConfig
Source§fn clone(&self) -> SessionConfig
fn clone(&self) -> SessionConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more