Skip to content

Session resume: Hardcoded Pi config path #205

@yurikhan

Description

@yurikhan

Pi accepts an environment variable, PI_CODING_AGENT_DIR, and looks for its configs, sessions, user-scoped skills, commands, prompt overrides, etc, down that directory.

Naturally, on my machine, that is set to ~/.config/pi/agent (so sessions are in ~/.config/pi/agent/sessions/*/*.jsonl).

However, pi-coding-agent--list-sessions hardcodes ~/.pi/agent/sessions/. As a consequence, it does not find any of my sessions.

I suggest one of the following:

  1. read the same environment variable (defaulting to ~/.config/pi/agent) and expand sessions/ against the value, OR
  2. have a Custom option that can be set by the user, OR
  3. take an existing session’s sessionFile (from the get_state or get_session_stats) and strip the file name off that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions