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

Chats Are Not Saving, despite Saving them?

Open gregbythebeach opened this issue 1 year ago • 15 comments

I am using the command: "/chat Save" and it says it saves the checkpoint. but what I noticed is, its only saving the chats if I create a new save file name. I can not add to the prior chat.

For example, see where my last saved checkpoint is, thats when I saved the chat by naming it " /chat save @test".

But If I resume that chat, "test", then use the save function, it will not save anything further to it. I have to make a new file name. What am i doing wrong?

Image

When I close the chat and resume it, its back to the last save point (missing my question about the todays date):

Image

gregbythebeach avatar Jul 20 '25 21:07 gregbythebeach

my /chat save is not storing from session to session

jwlehane avatar Jul 22 '25 21:07 jwlehane

my /chat save is not storing from session to session

Ah! okay good to know, so it must be a bug! Unless its intended like that, idk

gregbythebeach avatar Jul 22 '25 22:07 gregbythebeach

Fyi @sethtroisi any thoughts on this?

jacob314 avatar Jul 29 '25 20:07 jacob314

Hi @bl-ue, Im not very technical here. And when I tried to reply with a comment, it forces be to close the issue as solved, even though I dont know if it is. so I had to use a spare account just to type this.... Not sure why I cant leave a comment without closing it.

Anyways, That link you gave, does that mean this has been fixed or replaced?

Automatically record chat history in interactive and non-interactive mode; add interactive and non-interactive conversation resuming and a session browser #4401

I attempted those new resume commands on the page you linked, but had no luck and still cant get existing chats to save, after resuming them.

Image

gregbythebeach2 avatar Jul 29 '25 22:07 gregbythebeach2

Hi Greg, haha, I understand. Good job getting this far if you're new to this. The PR that I linked hasn't been merged yet, so the /resume isn't available in Gemini CLI, and that's why it's saying "Unknown command" for /resume. I linked it because the bug you're describing will be fixed when it's merged. You can give #4401 a thumbs up if you feel like it. It might help it get merged.

@jacob314 Please see #4401–this bug, as well as a number of others, are effectively solved by it.

bl-ue avatar Jul 29 '25 23:07 bl-ue

Found possible duplicate issues:

  • #2888: (#0.9045242014243723)

gsquared94 avatar Jul 30 '25 00:07 gsquared94

Hi Greg, haha, I understand. Good job getting this far if you're new to this. The PR that I linked hasn't been merged yet, so the /resume isn't available in Gemini CLI, and that's why it's saying "Unknown command" for /resume. I linked it because the bug you're describing will be fixed when it's merged. You can give #4401 a thumbs up if you feel like it. It might help it get merged.

@jacob314 Please see #4401–this bug, as well as a number of others, are effectively solved by it.

Okay, I will thumbs it up. So do I have to update Gemini to get that patch if its eventually merged (updated)? Or does it auto update to it?

Thanks

gregbythebeach2 avatar Jul 30 '25 00:07 gregbythebeach2

Thank you! Actually, it seems that coincidentally, a PR adding auto-updating was merged yesterday (#4686). So when the next version of Gemini CLI is released, you'll have to manually update to it, but then after that it should auto-update. And since #4401 probably won't make it to the next release, you'll likely be auto-updated to the release it ships in!

bl-ue avatar Jul 30 '25 00:07 bl-ue

Closing, as this should have been fixed by recent changes. @gregbythebeach please re-open if you are still hitting this.

owenofbrien avatar Aug 22 '25 18:08 owenofbrien

Closing, as this should have been fixed by recent changes. @gregbythebeach please re-open if you are still hitting this.

Hi, okay I will test it. does that mean I need to download the newest version and install it? Or does it Auto update?

And if I have to install a new version will it erase my currently saved chats?

Thanks

gregbythebeach avatar Aug 23 '25 01:08 gregbythebeach

@gregbythebeach It should auto-update, but if it doesn't, just reinstall it the same way you originally installed, probably npm install -g @google/gemini-cli.

bl-ue avatar Aug 23 '25 01:08 bl-ue

@gregbythebeach It should auto-update, but if it doesn't, just reinstall it the same way you originally installed, probably npm install -g @google/gemini-cli. this is the version I have, just checked.

Image

gregbythebeach avatar Aug 25 '25 02:08 gregbythebeach

@gregbythebeach 0.1.9 is actually a pretty old version—the latest is 0.1.21. Try reinstalling it completely using npm install -g @google/gemini-cli and then check the version again.

bl-ue avatar Aug 25 '25 03:08 bl-ue

@gregbythebeach 0.1.9 is actually a pretty old version—the latest is 0.1.21. Try reinstalling it completely using npm install -g @google/gemini-cli and then check the version again.

Okay sorry I'm not very technical, so to confirm;

  1. I open CMD> Gemini> paste "npm install -g @google/gemini-cli" (all together in one line) hit enter.

  2. will I lose existing saved chats?

Thanks!

gregbythebeach avatar Aug 26 '25 01:08 gregbythebeach

installing won't lose the saved chats are they are saved to your ~/.gemini/ which is not impacted by any commands to install gemini CLI

jacob314 avatar Aug 26 '25 03:08 jacob314