gemini-cli icon indicating copy to clipboard operation
gemini-cli copied to clipboard

Bug: /chat save fails silently when no tag is provided

Open flowernotfound opened this issue 1 year ago • 2 comments

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:

  1. Validate the tag argument: Check if a tag is provided and is not empty.
  2. Prevent save operation: If no valid tag is given, the save operation should not proceed.
  3. Display an explicit error: Inform the user that a tag is required for /chat save.

flowernotfound avatar Jun 27 '25 11:06 flowernotfound

Working on this.

flowernotfound avatar Jun 30 '25 06:06 flowernotfound

The conversation is actually saved (you can resume it with /chat resume) but this is being improved in #2904

sethtroisi avatar Jul 01 '25 23:07 sethtroisi