Skip to main content

local_sessions_root

Function local_sessions_root 

Source
pub fn local_sessions_root(cwd: &Path) -> PathBuf
Expand description

Session persistence root directory for --local sandbox mode: <repo-root>/.defect/sessions.

The project root is detected via .git (same source as the project layer in the config system); if no .git is found, falls back to cwd/.defect/sessions so that sandbox directories without a repository can still be used.