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

Throw error if no tag is set for /chat command

Open jjjy125 opened this issue 1 year ago • 5 comments

What happened?

chat command doesn't work

What did you expect to happen?

Manage conversation history. Usage: /chat <list|save|resume> [tag]

Client information

About Gemini CLI │ │ │ │ CLI Version 0.1.4 │ │ Git Commit 1078a54 │ │ Model gemini-2.5-flash │ │ Sandbox no sandbox │ │ OS win32

Login information

No response

Anything else we need to know?

No response

jjjy125 avatar Jun 27 '25 02:06 jjjy125

Hi! Could you please clarify how the /chat command "doesn't work" for you? Providing more details about the issue will help us find a solution more easily

Below is the general usage for the /chat command:

  1. /chat save testtagname (Replace testtagname with any tag name you prefer)
  2. /chat list (You should see your chosen tag name listed here)
  3. Either start a new Gemini session or use /quit
  4. /chat resume testtagname (You should be able to resume your previous chat)

Please let us know which step caused the problem for you:)

flowernotfound avatar Jun 27 '25 04:06 flowernotfound

Not OP but I thought /chat save didn't need a tag so I did this until now:


> /chat save


ℹ Conversation checkpoint saved.


> /chat list


ℹ list of saved conversations:


                                                                                                                        accepting edits (shift + tab to toggle)
╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ >   Type your message or @path/to/file                                                                                                                      │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

I guess this was how I thought it worked or read but now I know. The above should definitely error out or give warning atleast.

deadcoder0904 avatar Jun 27 '25 09:06 deadcoder0904

@deadcoder0904 I made the same mistake when I first tried the /chat command too haha It definitely should throw an error if no tag is specified.

flowernotfound avatar Jun 27 '25 10:06 flowernotfound

Fixed in https://github.com/google-gemini/gemini-cli/pull/2019

chrstnb avatar Jun 27 '25 16:06 chrstnb

Hi! Could you please clarify how the /chat command "doesn't work" for you? Providing more details about the issue will help us find a solution more easily

Below is the general usage for the /chat command:

  1. /chat save testtagname (Replace testtagname with any tag name you prefer)
  2. /chat list (You should see your chosen tag name listed here)
  3. Either start a new Gemini session or use /quit
  4. /chat resume testtagname (You should be able to resume your previous chat)

Please let us know which step caused the problem for you:)

btw whats the point of saving a conversation without tag? I find it confusing that this is possible.

My expected behaviour, after saving WITH a tag, then resuming from that tag is that from now on, when using "/chat save" without providing a tag, it should override the resumed tag. It doesn't throw an error or warning but instead says "ℹ Conversation checkpoint saved." (this is a slightly different message than when saved with tag) which is very misleading because I would assume that something is saved. But since it is without a tag, there is no way to retrieve this?

realestninja avatar Jul 08 '25 14:07 realestninja