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

@ -541,6 +541,10 @@ pi --session /path/to/file.jsonl # Use specific session file
pi --session a8ec1c2a # Resume by session ID (partial UUID)
```
In the `/resume` picker:
- `Ctrl+P` toggles display of the session `.jsonl` file path
- `Ctrl+D` deletes the selected session (inline confirmation; uses `trash` if available and cannot delete the active session)
**Resuming by session ID:** The `--session` flag accepts a session UUID (or prefix). Session IDs are visible in filenames under `~/.pi/agent/sessions/<project>/` (e.g., `2025-12-13T17-47-46-817Z_a8ec1c2a-5a5f-4699-88cb-03e7d3cb9292.jsonl`). The UUID is the part after the underscore. You can also search by session ID in the `pi -r` picker.
### Context Compaction