Skip to content

path p import claude --project . should resolve relative paths #109

Description

@od0

Problem

path p import claude --project . fails with:

Error: No conversations found for project: .

The --project value is passed verbatim to sanitize_project_path, which turns "." into "-" and looks for ~/.claude/projects/-/. The actual directory is ~/.claude/projects/-Users-bryan-code-empathic-toolpath/.

Expected behavior

--project . (and any relative path) should be canonicalized to an absolute path before sanitization. std::fs::canonicalize(".") or std::path::absolute(".") would do it.

Where

crates/path-cli/src/cmd_import.rs, the derive_claude entry point — canonicalize the project string before passing it into derive_claude_with_manager. Same treatment should apply anywhere else --project is accepted for Claude (e.g. path p list claude --project ., path show claude --project .).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions