pub fn local_sessions_root(cwd: &Path) -> PathBufExpand 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.