diff --git a/packages/coding-agent/CHANGELOG.md b/packages/coding-agent/CHANGELOG.md index c49128e3..88c189c7 100644 --- a/packages/coding-agent/CHANGELOG.md +++ b/packages/coding-agent/CHANGELOG.md @@ -2,6 +2,10 @@ ## [Unreleased] +### Added + +- Session picker (`pi -r`) and `--session` flag now support searching/resuming by session ID (UUID prefix) ([#495](https://github.com/badlogic/pi-mono/issues/495) by [@arunsathiya](https://github.com/arunsathiya)) + ### Fixed - Queued steering/follow-up messages no longer wipe unsent editor input ([#503](https://github.com/badlogic/pi-mono/pull/503) by [@tmustier](https://github.com/tmustier)) diff --git a/packages/coding-agent/README.md b/packages/coding-agent/README.md index c975fbf0..9f654749 100644 --- a/packages/coding-agent/README.md +++ b/packages/coding-agent/README.md @@ -459,8 +459,11 @@ pi -r # Short form pi --no-session # Ephemeral mode (don't save) pi --session /path/to/file.jsonl # Use specific session file +pi --session a8ec1c2a # Resume by session ID (partial UUID) ``` +**Resuming by session ID:** The `--session` flag accepts a session UUID (or prefix). Session IDs are visible in filenames under `~/.pi/agent/sessions//` (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 Long sessions can exhaust context windows. Compaction summarizes older messages while keeping recent ones.