pub fn resolve_db_path( working_dir: &Path, global_storage: bool, ) -> Result<PathBuf, String>
Resolve the session database path for a working directory and storage scope.