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

Title: Load Dialog feature fails, while Save Dialog works correctly. Description: The "Save Dialog" feature in the Gemini CLI appears to work as expected, creating a JSON file of the conversation history. However, when attempting to load that same file in

Open SpyZ3R opened this issue 1 year ago • 1 comments

What happened?

Title: Load Dialog feature fails, while Save Dialog works correctly.

Description:

The "Save Dialog" feature in the Gemini CLI appears to work as expected, creating a JSON file of the conversation history.

However, when attempting to load that same file in a new session using the "Load Dialog" feature, the process fails with an error. This prevents restoring context from previous sessions as intended.

Steps to Reproduce:

  1. Have a conversation with the Gemini agent.
  2. Use the "/chat save [name]" to save the chat history to a file.
  3. Start a new session.
  4. Use the "/chat resume [name]" to select the previously saved file.

Actual Result: The "Load Dialog" feature produces an error and fails to load the history.

Workaround: A manual workaround exists: I can place the saved JSON file into the agent's workspace directory (gemini_project in my case) and then ask the agent to use the read_file tool on that file. This successfully provides the context to the agent, but it's a cumbersome, multi-step process.

Environment: OS: Linux

What did you expect to happen?

Expected Result: The chat history from the saved file is loaded into the current session, restoring the full context.

Client information

  • CLI Version: 0.1.20
  • Git Commit: 214800cf
  • Operating System: linux v22.18.0
  • Sandbox Environment: no sandbox
  • Model Version: gemini-2.5-pro
  • Memory Usage: 243.4 MB

Login information

No response

Anything else we need to know?

No response

SpyZ3R avatar Aug 13 '25 19:08 SpyZ3R

Oh, the problem was solved in v0.1.20

SpyZ3R avatar Aug 14 '25 10:08 SpyZ3R