feat(coding-agent): add session path toggle and deletion to /resume

This commit is contained in:
warren 2026-01-17 20:29:16 -05:00 committed by Mario Zechner
parent d43930c818
commit 26fe048314
6 changed files with 520 additions and 51 deletions

View file

@ -10,6 +10,12 @@ Sessions are stored as JSONL (JSON Lines) files. Each line is a JSON object with
Where `<path>` is the working directory with `/` replaced by `-`.
## Deleting Sessions
Sessions can be removed by deleting their `.jsonl` files under `~/.pi/agent/sessions/`.
Pi also supports deleting sessions interactively from `/resume` (select a session and press `Ctrl+D`, then confirm). When available, pi uses the `trash` CLI to avoid permanent deletion.
## Session Version
Sessions have a version field in the header: