Bug: /chat save fails silently when no tag is provided
What happened?
When using the /chat save command without providing a tag, the command does not return an error. It prints a confirmation message "Conversation checkpoint saved.", which suggests the operation was successful.
> /chat save
ℹ Conversation checkpoint saved.
> /chat list
ℹ list of saved conversations:
However, the chat is not saved with a usable tag, making it impossible to resume later. This silent failure leads to a poor user experience as the user is led to believe the session has been saved correctly.
What did you expect to happen?
When /chat save is run without a tag, the CLI should display an error message informing the user that a tag is required. For example: Error: A tag is required. Usage: /chat save <your-tag-name>.
Client information
$ gemini /about
CLI Version 0.1.5
Git Commit bf873a1
Model gemini-2.5-pro
Sandbox no sandbox
OS darwin
Login information
Google Account.
Anything else we need to know?
Instead of performing the save operation with an empty tag, the command should ideally:
- Validate the
tagargument: Check if a tag is provided and is not empty. - Prevent save operation: If no valid tag is given, the save operation should not proceed.
- Display an explicit error: Inform the user that a tag is required for /chat save.
Working on this.
The conversation is actually saved (you can resume it with /chat resume) but this is being improved in #2904