toolpath_pi::PathResolver::new() reads $HOME only. The other six provider resolvers fall back to $USERPROFILE on Windows. Without a home, the pi resolver uses the relative path ./.pi/agent/sessions.
path-cli injects Config::home_dir() ($HOME, then $USERPROFILE), so the CLI resolves the correct directory on Windows. Library consumers that call PathResolver::new() do not.
Preferred fix: fold into #185. new(home) takes a required home argument, the internal env read is deleted, and the caller supplies the fallback order.
Interim alternative, only if a library consumer needs the Windows fix before #185: add the $USERPROFILE fallback to the internal read. #185 deletes that read either way.
toolpath_pi::PathResolver::new()reads$HOMEonly. The other six provider resolvers fall back to$USERPROFILEon Windows. Without a home, the pi resolver uses the relative path./.pi/agent/sessions.path-cli injects
Config::home_dir()($HOME, then$USERPROFILE), so the CLI resolves the correct directory on Windows. Library consumers that callPathResolver::new()do not.Preferred fix: fold into #185.
new(home)takes a required home argument, the internal env read is deleted, and the caller supplies the fallback order.Interim alternative, only if a library consumer needs the Windows fix before #185: add the
$USERPROFILEfallback to the internal read. #185 deletes that read either way.