Expand description
Session persistence and recovery facade.
Responsibilities:
- Re-export session persistence, validation, recovery UI, decision modeling, and progress helpers.
- Keep the public
crate::session::*surface stable while implementation stays split.
Not handled here:
- Queue/run-loop orchestration.
- Session state schema definitions.
Invariants/assumptions:
- Persistence, validation, recovery prompts, decision shaping, and progress mutation remain separate.
- Re-exports preserve existing caller paths.
Structs§
Enums§
Functions§
- check_
session - clear_
session - Clear (delete) the session file.
- get_
git_ head_ commit - Get the git HEAD commit hash for session tracking.
- increment_
session_ progress - Increment the session’s tasks_completed_in_loop counter and persist.
- load_
session - Load session state from disk.
- prompt_
session_ recovery - prompt_
session_ recovery_ timeout - resolve_
run_ session_ decision - save_
session - Save session state to disk.
- session_
exists - Check if a session file exists.
- session_
path - Get the path to the session file.
- validate_
session - validate_
session_ with_ now