Skip to main content

Module session

Module session 

Source
Expand description

Owned per-project snapshots and transactional restoration. Scratch and readonly documents never persist. Trust storage is independent.

Structs§

SaveRequest
Fully owned work item: move this to a blocking persistence worker.
Session

Enums§

SessionError
SessionPolicy

Functions§

capture
Capture owns all paths and history; it never borrows the editor afterward.
capture_save
is_trusted
is_trusted_remote
load
Read/decode without an editor, suitable for a blocking worker. Missing state and disabled persistence are ordinary absence, not errors.
restore
state_root
Resolve once at live startup. Replay receives this value in the seed; trust access does not imply automatic session restoration or persistence.
trust
trust_remote