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

`/chat save` fails silently without a name

Open kwentine opened this issue 1 year ago • 7 comments

What happened?

  • Actual Behavior: Running /chat save without providing a session name exits without any output or error message. Subsequently, /chat list does not show a saved session.
  • Steps to Reproduce: 1. Run /chat save 2. Run /chat list and observe the list is empty.

What did you expect to happen?

  • Expected Behavior: The command should return an error message indicating that a required argument (the session name) is missing. For example: Error: Missing required argument 'name'. Usage: /chat save

Client information

  • CLI Version: 0.1.9
  • Git Commit: 34935d6
  • Operating System: linux v22.17.0
  • Sandbox Environment: no sandbox
  • Model Version: gemini-2.5-pro
  • Memory Usage: 176.1 MB

Login information

No response

Anything else we need to know?

No response

kwentine avatar Jul 06 '25 12:07 kwentine

Works fine for me

Image

│ CLI Version 0.1.9 │ │ Git Commit 39e85094 (local modifications) │ │ Model gemini-2.5-pro │ │ Sandbox sandbox-exec (permissive-open) │ │ OS darwin │ │ Auth Method gemini-api-key │

devpool007 avatar Jul 06 '25 13:07 devpool007

It has never (since about a week) worked for me. 1.9 version and earlier. Steps to reproduce, quoting from memory:

  1. Select chat save
  2. See chat saved
  3. Use chat list
  4. See nothing.

Three API accounts, 2 versions of CLI, 3 boxes (OSes), hundreds of sessions by now.

I resorted to manual memory saving via MCP or just into some .md file, as session breaks every hour or so still.

Manamama avatar Jul 06 '25 16:07 Manamama

I ran in into this in an older version. It should still be saved just without a name. Try and restore it without a name or try a space.

You can also look on the filesystem where it stores the chats.

zackoch avatar Jul 06 '25 18:07 zackoch

Ah, @zackoch : you are right. Silly me: I was used to longer, automatically generated names of chat checkpoints in Open Interpreter, etc. It works and probably always has been working. Instead of doing: /chat save (and hope for the chat # to be incremented and auto named, at least by timestamp), one has to use /chat save [tag]. Only then the list is usable:

╭────────────────╮
│  > /chat list  │
╰────────────────╯


ℹ list of saved conversations: 1, 2

Ta.

Manamama avatar Jul 06 '25 19:07 Manamama

Found possible duplicate issues:

  • #2819: (#0.9120098896032522)
  • #4837: (#0.9094719832820899)
  • #4903: (#0.9033209085464478)

gsquared94 avatar Jul 30 '25 04:07 gsquared94

Hi @kwentine, i believe this issue has been fixed. I'm going to close this for now, but please feel free to reopen it if you still run into this problem on the latest version.

galdawave avatar Aug 22 '25 19:08 galdawave

@galz10 thanks a lot for your work on this!

kwentine avatar Aug 25 '25 13:08 kwentine