pub fn resolve_session_root(
flag: Option<&Path>,
cfg: &Config,
default: &Path,
) -> PathBufExpand description
Cascade: CLI flag > config’s session-root > caller-supplied default.
The default itself is computed once at the call site (see
default_session_root); passing it in keeps this function pure
and unit-testable without env-var manipulation.