You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: Latest chat session permanently lost from /chat list after using gemini --resume #27368
Using gemini --resume causes the most recent chat session to permanently disappear from the /chat list on the subsequent normal launch. The data appears to be lost or the session index corrupted by the --resume flow.
Steps to Reproduce
Open Gemini normally.
Run /chat and confirm all existing sessions are visible.
Close Gemini.
Run gemini --resume in the terminal. The CLI auto-loads into the most recent chat session.
Run /chat inside the resumed session and verify all sessions are still visible at this point.
Close Gemini.
Open Gemini normally (without any flags).
Run /chat again.
Command.Prompt.2026-05-22.10-16-37.mp4
Actual Behavior
The most recent chat session is permanently gone from the /chat list. The session does not reappear on subsequent launches.
Expected Behavior
All chat sessions should persist regardless of how the CLI was previously closed. Using gemini --resume must not affect the integrity of the session list. The most recent chat session should remain visible and accessible in /chat after any combination of normal and --resume launches.
Client Environment
CLI Version:0.43.0
Git Commit:c0775c38b
Model:gemini-3.1-pro-preview
Sandbox:no sandbox
OS:win32 (Windows)
Tier: Gemini Code Assist in Google One AI Pro
Authentication & Login
Method: Signed in with Google Account via standard OAuth flow.
Additional Information
The bug is consistently reproducible following the exact steps above.
Sessions created and closed without utilizing the --resume flag do not exhibit this behavior.
The issue appears isolated to the interaction between the --resume flag and session index management, specifically affecting the serialization or state persistence of the active session during the --resume execution path.
Description
Using
gemini --resumecauses the most recent chat session to permanently disappear from the/chatlist on the subsequent normal launch. The data appears to be lost or the session index corrupted by the--resumeflow.Steps to Reproduce
/chatand confirm all existing sessions are visible.gemini --resumein the terminal. The CLI auto-loads into the most recent chat session./chatinside the resumed session and verify all sessions are still visible at this point./chatagain.Command.Prompt.2026-05-22.10-16-37.mp4
Actual Behavior
The most recent chat session is permanently gone from the
/chatlist. The session does not reappear on subsequent launches.Expected Behavior
All chat sessions should persist regardless of how the CLI was previously closed. Using
gemini --resumemust not affect the integrity of the session list. The most recent chat session should remain visible and accessible in/chatafter any combination of normal and--resumelaunches.Client Environment
0.43.0c0775c38bgemini-3.1-pro-previewno sandboxwin32 (Windows)Authentication & Login
Additional Information
--resumeflag do not exhibit this behavior.--resumeflag and session index management, specifically affecting the serialization or state persistence of the active session during the--resumeexecution path.