Persistent "Screen Reader Mode" on Windows due to "Access is denied" on nudge file
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:
- Install Gemini CLI on Windows 11
- Ensure the
.gemini/tmp/seen_screen_reader_nudge.jsonfile has permission restrictions - Run
gemini - Disable Screen Reader mode via
/settingsor config - Restart
gemini - 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:
- Remember the user's choice to disable Screen Reader mode
- Fail gracefully if the nudge file cannot be written
- Not override explicit user preferences with OS auto-detection
- 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?
thanks bro it confuses me for a long time
Hi, so sorry to hear about this issue. What happens when you do --screenReader=false on startup; does that fix it?
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.
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.
Experiencing the same in the latest build; once you enable it stays even if you disable.
/assign
@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.