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

[Doc/UI Mismatch] "Session Retention" setting is missing from `/settings` UI but present in documentation

Open wanglc02 opened this issue 11 months ago • 1 comments

What happened?

I ran the /settings command to view the configuration options. In the General section of the UI, the option labeled Session Retention (mapped to general.sessionRetention in the docs) is not displayed.

While the sub-setting "Enable Session Cleanup" (general.sessionRetention.enabled) is visible in the UI, the parent setting "Session Retention" listed in the "Settings reference" documentation is entirely missing from the list.

What did you expect to happen?

I expected the /settings UI to include the "Session Retention" row as described in the documentation. Alternatively, if general.sessionRetention is not intended to be a configurable UI element itself, the documentation should be updated to remove it from the reference table to avoid confusion.

Client information

Client Information

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

> /about
CLI Version  0.19.4
Git Commit   93511487
Model        auto
Sandbox      no sandbox
OS           darwin
Auth Method  gemini-api-key

Login information

API key

Anything else we need to know?

  • Current UI shows: Enable Session Cleanup only.
  • Documentation lists: Both Session Retention and Enable Session Cleanup.

wanglc02 avatar Dec 06 '25 05:12 wanglc02

Thanks for catching this! After digging into the code, turns out sessionRetention is just a container/namespace that groups related settings together - it's not meant to be configured directly. The schema has showInDialog: false on it intentionally.

The actual setting you can toggle is sessionRetention.enabled which does show up in the UI. The docs just had an extra row that shouldn't have been there. PR incoming to fix it.

afarber avatar Dec 06 '25 10:12 afarber

/assign

Rawdyrathaur avatar Feb 24 '26 04:02 Rawdyrathaur

👋 @Rawdyrathaur, you've been assigned to this issue! Thank you for taking the time to contribute. Make sure to check out our contributing guidelines.

gemini-cli[bot] avatar Feb 24 '26 04:02 gemini-cli[bot]

Hi @jacob314, I noticed PR #14640 (which fixed this) was closed without merging due to a force-push issue. I'd like to re-implement the fix docs/cli/settings.md. Can I work on this?

Rawdyrathaur avatar Feb 24 '26 05:02 Rawdyrathaur

@Rawdyrathaur If this is still an issue, please feel free to re-implement the fix. Thank you!

g-samroberts avatar Mar 04 '26 20:03 g-samroberts

Hi @Rawdyrathaur, this issue is being unassigned due to 2 weeks of inactivity (either no linked PR was opened or no updates were provided). To keep the 'Help Wanted' list manageable, we are freeing this up for other contributors. Feel free to comment if you are still working on this and would like to be re-assigned!

cocosheng-g avatar Apr 09 '26 20:04 cocosheng-g

/assign

Famous077 avatar Apr 10 '26 10:04 Famous077

👋 @Famous077! You currently have 3 issues assigned to you. We have a 3 max issues assigned at once policy. Once you close out an existing issue it will open up space to take another. You can also unassign yourself from an existing issue but please work on a hand-off if someone is expecting work on that issue.

gemini-cli[bot] avatar Apr 10 '26 10:04 gemini-cli[bot]

/assign

ifitisit avatar Apr 25 '26 18:04 ifitisit

👋 @ifitisit, you've been assigned to this issue! Thank you for taking the time to contribute. Make sure to check out our contributing guidelines.

gemini-cli[bot] avatar Apr 25 '26 18:04 gemini-cli[bot]