Skip to content

fix(extensions): respect PI_CODING_AGENT_DIR in session breakdown#24

Open
tshu-w wants to merge 1 commit intomitsuhiko:mainfrom
tshu-w:fix/session-breakdown-agent-dir
Open

fix(extensions): respect PI_CODING_AGENT_DIR in session breakdown#24
tshu-w wants to merge 1 commit intomitsuhiko:mainfrom
tshu-w:fix/session-breakdown-agent-dir

Conversation

@tshu-w
Copy link
Copy Markdown

@tshu-w tshu-w commented Mar 26, 2026

session-breakdown currently reads sessions from a hard-coded ~/.pi/agent/sessions path.

This breaks setups that override the agent dir via PI_CODING_AGENT_DIR, where sessions live under <agentDir>/sessions instead.

This change switches the extension to getAgentDir() so it follows pi's configured agent directory.

Copilot AI review requested due to automatic review settings March 26, 2026 03:31
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the session-breakdown extension to locate session JSONL files under pi’s configured agent directory (via PI_CODING_AGENT_DIR) instead of assuming the default ~/.pi/agent layout.

Changes:

  • Use getAgentDir() to build the sessions root path as <agentDir>/sessions.
  • Update help text/documentation strings to remove the hard-coded ~/.pi reference.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants