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

Persistent "Screen Reader Mode" on Windows due to "Access is denied" on nudge file

Open WantedChef opened this issue 11 months ago • 3 comments

What happened?

Upon starting the gemini CLI, it defaults to "Screen Reader-friendly view" and cannot be permanently disabled on Windows 11. The CLI reverts back to Screen Reader mode on every startup, even after complete uninstall/reinstall, due to a permission error.

Error Details:

  • Windows error dialog: "Error Applying Attributes: Access is denied"
  • File path: C:\Users\Joep\.gemini\tmp\seen_screen_reader_nudge.json
  • The error prevents the file from being written, causing the accessibility nudge logic to trigger on every boot

Steps to Reproduce:

  1. Install Gemini CLI on Windows 11
  2. Ensure the .gemini/tmp/seen_screen_reader_nudge.json file has permission restrictions
  3. Run gemini
  4. Disable Screen Reader mode via /settings or config
  5. Restart gemini
  6. Observe it forces itself back ON

Root Cause: The CLI attempts to track accessibility nudge state using the nudge file. When this file has permission restrictions or is locked, the "Access is denied" error occurs. Since the nudge state fails to persist and no explicit user preference exists in settings.json, the OS accessibility auto-detection wins during the settings merge process.

Code Reference (settings.ts): The merge order is: System Defaults → User Settings → Workspace Settings → System Settings (last wins). If OS auto-detection sets screenReader: true and User Settings doesn't explicitly contain screenReader: false, auto-detection wins.

What did you expect to happen?

The CLI should:

  1. Remember the user's choice to disable Screen Reader mode
  2. Fail gracefully if the nudge file cannot be written
  3. Not override explicit user preferences with OS auto-detection
  4. Provide a clear error message when permission issues occur

Current Workaround:` taskkill /F /IM node.exe /T 2>$null

Remove-Item -Path "C:\Users[USER].gemini\seen_screen_reader_nudge.json" -Force -ErrorAction SilentlyContinue

$jsonContent = '{ "screenReader": false, "telemetryEnabled": false }' Set-Content -Path "C:\Users[USER].gemini\settings.json" -Value $jsonContent -Force

Client information

  • CLI Version: 0.19.4
  • Git Commit: 935114875
  • Session ID: 783ad12c-7465-49c3-b1d5-faeb483e78b8
  • Operating System: win32 v24.8.0
  • Sandbox Environment: no sandbox
  • Model Version: auto
  • Memory Usage: 212.0 MB

Login information

Google Account

Anything else we need to know?

Image

WantedChef avatar Dec 09 '25 11:12 WantedChef

thanks bro it confuses me for a long time

HibernalGlow avatar Dec 14 '25 03:12 HibernalGlow

Hi, so sorry to hear about this issue. What happens when you do --screenReader=false on startup; does that fix it?

chrstnb avatar Dec 15 '25 16:12 chrstnb

Sorry you are experiencing this! It would be great to really get to the bottom of what is going wrong here. Some clarifications: Gemini CLI does not attempt to auto-detect whether you have a screen reader enabled. I suspect there is something about your settings.json that is triggering this issue. If you can attach your exact settings.json when you see the issue that would be very helpful. How are you installing and running Gemini CLI on windows? Which terminal are you using? I've tried to reproduce on windows 11 setting seen_screen_reader_nudge.json to be read only and the settings.json file you included in the bug but cannot reproduce. A video showing what you see would be very helpful. I suspect there is some strange but with how we are resolving this setting but without repro steps it is hard for us to fix.

jacob314 avatar Dec 15 '25 18:12 jacob314

Opening as would like confirmation first that my fix actually fixed the issue as I was able to reproduce odd behavior but not exactly what was reported in the bug.

jacob314 avatar Dec 16 '25 15:12 jacob314

Experiencing the same in the latest build; once you enable it stays even if you disable.

chintanckg avatar Dec 20 '25 19:12 chintanckg

/assign

Champbreed avatar Mar 06 '26 06:03 Champbreed

@Champbreed Thanks for taking interest but this issue is already assigned. We'd still love to have you contribute. Check out our Help Wanted list for issues where we need some extra attention.

gemini-cli[bot] avatar Mar 06 '26 06:03 gemini-cli[bot]