gemini-cli - 💡(How to fix) Fix bug(cli): Regression in latest update causes complete session loss and folder wipes on system reboot

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
RAW_BUFFERClick to expand / collapse

What happened?

Bug Description

After updating to the latest version of Gemini CLI, all session files and manual checkpoints completely vanish after restarting a Linux machine. Furthermore, files inside the targeted conversation directory disappear or are overwritten unexpectedly. This behavior was not present in older versions.

Steps to Reproduce

  1. Update to the latest version (npm install -g @google/gemini-cli@latest).
  2. Open a session and save it manually using /resume save test-session.
  3. Verify the session exists using gemini --list-sessions (it shows up fine).
  4. Reboot the Linux system.
  5. Re-open the terminal, navigate to the exact same directory, and run gemini --list-sessions.
  6. Observe that the session list is completely empty, and some local files in the active folder are wiped/overwritten.

Environment & Versions

  • OS: Linux [alma linux 10.1]
  • Gemini CLI Version: [latest]
  • Regression Check: This issue only started occurring immediately after the latest CLI update.

What did you expect to happen?

Expected Behavior

Sessions and workspace project files should persist across machine reboots, exactly as they did in previous versions of the CLI.

Client information

Actual Behavior

Every single machine reboot completely purges the new session logs, and workspace directory files are being corrupted or deleted.

Login information

No response

Anything else we need to know?

No response

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

gemini-cli - 💡(How to fix) Fix bug(cli): Regression in latest update causes complete session loss and folder wipes on system reboot