gemini-cli - 💡(How to fix) Fix Configuration Persistence Failure (Restart Regression) [1 comments, 2 participants]

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…
GitHub stats
google-gemini/gemini-cli#25428Fetched 2026-04-15 06:44:38
View on GitHub
Comments
1
Participants
2
Timeline
5
Reactions
0
Timeline (top)
labeled ×3commented ×1cross-referenced ×1

Code Example

> /about
# paste output here

╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│                                                                                                                                                                                                                 │
About Gemini CLI│                                                                                                                                                                                                                 │
CLI Version                                                             0.38.0Git Commit                                                              3f0873a83                                                                                                                               │
Model                                                                   Auto (Gemini 3)Sandbox                                                                 no sandbox                                                                                                                              │
OS                                                                      linux                                                                                                                                   │
Auth Method                                                             Signed in with Google (kurokirasama@gmail.com)Tier                                                                    Gemini Code Assist in Google One AI Pro│                                                                                                                                                                                                                 │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
RAW_BUFFERClick to expand / collapse

What happened?

I modified 15 settings in a Gemini CLI instance. After performing a restart (via the R key and by closing/relaunching the application), 11 of those settings reverted to their previous or default values. Only 4 settings successfully persisted.

Settings that FAILED to persist:

  • Hide Sandbox Status
  • Use Alternate Screen Buffer
  • Terminal Buffer
  • Screen Reader Mode
  • IDE Mode
  • Compression Threshold
  • Enable Git Worktrees
  • Memory Manager Agent
  • Generalist Profile for Context
  • Enable Context Management
  • Topic & Update Narration

Settings that SUCCESSFULLY persisted:

  • Enable Session Cleanup
  • Compact Tool Output
  • Render Process
  • Incremental Rendering

What did you expect to happen?

All settings changed via the interactive UI or command-line interface should be permanently stored and automatically loaded upon every subsequent start of the application.

Client information

<details> <summary>Client Information</summary>

Run gemini to enter the interactive CLI, then run the /about command.

> /about
# paste output here

╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│                                                                                                                                                                                                                 │
│ About Gemini CLI                                                                                                                                                                                                │
│                                                                                                                                                                                                                 │
│ CLI Version                                                             0.38.0                                                                                                                                  │
│ Git Commit                                                              3f0873a83                                                                                                                               │
│ Model                                                                   Auto (Gemini 3)                                                                                                                         │
│ Sandbox                                                                 no sandbox                                                                                                                              │
│ OS                                                                      linux                                                                                                                                   │
│ Auth Method                                                             Signed in with Google ([email protected])                                                                                          │
│ Tier                                                                    Gemini Code Assist in Google One AI Pro                                                                                                 │
│                                                                                                                                                                                                                 │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
</details>

Login information

google account

Anything else we need to know?

The failure seems to cut across different categories (UI, Security, Experimental, Agents), suggesting a systemic issue with how the configuration manager handles certain keys during the save/load cycle.

extent analysis

TL;DR

The configuration manager may be failing to persist certain settings due to a systemic issue with handling specific keys during the save/load cycle.

Guidance

  • Review the configuration manager's code to identify potential issues with handling settings from different categories (UI, Security, Experimental, Agents).
  • Investigate the differences between the settings that failed to persist and those that succeeded, looking for common patterns or characteristics.
  • Check the Gemini CLI's documentation and source code for any known issues or limitations related to configuration persistence.
  • Consider testing the persistence of individual settings to isolate the problem and identify any specific settings that are causing the issue.

Example

No code snippet is provided as the issue does not include specific code references.

Notes

The issue may be related to the configuration manager's handling of specific settings or categories, and further investigation is needed to determine the root cause.

Recommendation

Apply workaround: Test individual settings to isolate the problem and identify any specific settings that are causing the issue, as this may help to determine the root cause and potential solutions.

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