Skip to main content

Module session

Module session 

Source
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§

ResumeDecision
ResumeResolution
RunSessionDecisionOptions

Enums§

ResumeBehavior
ResumeDecisionMode
ResumeReason
ResumeScope
ResumeStatus
SessionValidationResult

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