pub struct SessionsConfig {
pub dir: Option<PathBuf>,
pub retention_keep_days: u64,
pub retention_keep_count: usize,
pub auto_prune: bool,
pub lock_wait_secs: u64,
pub autotitle: bool,
}Fields§
§dir: Option<PathBuf>Defaults to <state_dir>/sessions.
retention_keep_days: u64Default for sessions prune --keep-days: delete sessions whose last activity is
older than this many days. 0 = disabled. Applied unattended only if auto_prune.
retention_keep_count: usizeDefault for sessions prune --keep-count: keep only the newest N sessions.
0 = disabled. Applied unattended only if auto_prune.
auto_prune: boolApply the retention limits when the CLI starts (run and the REPL), before the
prompt. Off by default. It deletes only if at most 10 sessions would go; otherwise
it warns and deletes nothing. With both limits 0 it does nothing. The web dashboard
never prunes.
lock_wait_secs: u64How long a run waits for another process to release the same session before it fails. 0 = do not wait at all (fail on the first refusal).
autotitle: boolName sessions: a name derived from the opening message before the first request, and at
most one small-model call per session to replace it with a better one. The call goes to
provider.aux when there is one, so it costs the cheap route and never the turn’s model.