SessionsConfig class final

The sessions: config section (gh-1746). Carries retention and the issue #1882 AC2 vacuumLedgers opt-in; unknown members are noted, never fatal.

Constructors

SessionsConfig({SessionRetentionConfig retention = const SessionRetentionConfig(), bool vacuumLedgers = false, List<String> notes = const []})
Creates a configuration; see retention and vacuumLedgers.
const
SessionsConfig.fromYaml(Object? node)
Parses the sessions: map. Tolerant: never throws.
factory

Properties

hashCode → int
The hash code for this object.
no setterinherited
isEmpty → bool
Whether the whole section is at its defaults (nothing persisted).
no setter
notes → List<String>
Tolerant-parse notes for the wrapper level (sessions.<key>).
final
retention → SessionRetentionConfig
The retention: block — defaults mean no retention at all.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
vacuumLedgers → bool
sessions.vacuumLedgers: true (issue #1882 AC2): at session open, drop the resumed session's superseded shell_job_registry / subagent_registry / obligations_ledger snapshots through the same keep-latest surgery fa session repair performs. Explicit opt-in — the default (false) never rewrites a session file; a live presence row (another instance holds the session) skips the vacuum; the pre-vacuum bytes stay at <path>.bak.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
toYaml() → String
The full sessions: section, only when non-default; empty at the defaults (the file stays minimal — defaults are never written).

Operators

operator ==(Object other) → bool
The equality operator.
inherited