Add session rename command to CLI (#12236)
Signed-off-by: Lucas Alvares Gomes <lucasagomes@gmail.com> Co-authored-by: Lifei Zhou <lifei@squareup.com>
This commit is contained in:
committed by
GitHub
parent
fdfa2d43b2
commit
91e92ea25c
@@ -324,6 +324,24 @@ Session removal is permanent and cannot be undone. goose will show which session
|
||||
|
||||
---
|
||||
|
||||
#### session rename [options]
|
||||
Rename a saved session. If no session ID is provided, goose will prompt you to select a session interactively.
|
||||
|
||||
**Options:**
|
||||
- **`--session-id <session_id>`**: Rename a specific session by its session ID (e.g., `20251108_3`)
|
||||
- **`-n, --new-name <name>`**: The new name for the session (required)
|
||||
|
||||
**Usage:**
|
||||
```bash
|
||||
# Rename a specific session by ID
|
||||
goose session rename --session-id 20251108_3 --new-name my-project
|
||||
|
||||
# Interactive selection (prompts you to choose a session)
|
||||
goose session rename --new-name my-project
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
#### session export [options]
|
||||
Export sessions in different formats for backup, sharing, migration, or documentation purposes.
|
||||
|
||||
|
||||
@@ -107,6 +107,18 @@ In your first session, goose prompts you to [set up an LLM (Large Language Model
|
||||
goose session --name react-migration
|
||||
```
|
||||
|
||||
To rename an existing session, use the `session rename` subcommand:
|
||||
|
||||
```sh
|
||||
goose session rename --session-id 20260213_9 --new-name my-new-name
|
||||
```
|
||||
|
||||
If you omit the session ID, goose will prompt you to select a session interactively:
|
||||
|
||||
```sh
|
||||
goose session rename --new-name my-new-name
|
||||
```
|
||||
|
||||
If you want to confirm the session name, run:
|
||||
|
||||
```sh
|
||||
|
||||
Reference in New Issue
Block a user