Throw error if no tag is set for /chat command
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
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:
- /chat save testtagname (Replace testtagname with any tag name you prefer)
- /chat list (You should see your chosen tag name listed here)
- Either start a new Gemini session or use /quit
- /chat resume testtagname (You should be able to resume your previous chat)
Please let us know which step caused the problem for you:)
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 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.
Fixed in https://github.com/google-gemini/gemini-cli/pull/2019
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:
- /chat save testtagname (Replace testtagname with any tag name you prefer)
- /chat list (You should see your chosen tag name listed here)
- Either start a new Gemini session or use /quit
- /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?