mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-15 22:03:45 +00:00
feat(coding-agent): Add --session-dir flag for custom session directory
- Add --session-dir CLI flag to specify custom session directory - SessionManager API: second param of create(), continueRecent(), list(), open() changed from agentDir to sessionDir (direct directory, no cwd encoding) - When omitted, uses default (~/.pi/agent/sessions/<encoded-cwd>/) - --session now derives sessionDir from file's parent if --session-dir not provided - list() validates session header before processing files - Closes #313 Co-authored-by: scutifer <scutifer@users.noreply.github.com>
This commit is contained in:
parent
4edfff41a7
commit
911963e777
8 changed files with 106 additions and 48 deletions
|
|
@ -768,6 +768,7 @@ pi [options] [@files...] [messages...]
|
|||
| `--print`, `-p` | Non-interactive: process prompt and exit |
|
||||
| `--no-session` | Don't save session |
|
||||
| `--session <path>` | Use specific session file |
|
||||
| `--session-dir <dir>` | Directory for session storage and lookup |
|
||||
| `--continue`, `-c` | Continue most recent session |
|
||||
| `--resume`, `-r` | Select session to resume |
|
||||
| `--models <patterns>` | Comma-separated patterns for Ctrl+P cycling (e.g., `sonnet:high,haiku:low`) |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue