Skip to content

pi: resolver home lookup ignores $USERPROFILE #192

Description

@ecalifornica

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions