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

v0.5.3 only accepts every second keystroke when sandboxed on MacOS

Open pptz opened this issue 1 year ago • 11 comments

What happened?

After upgrading to v0.5.3 (homebrew) the gemini command line accepts every 2nd keyboard keystroke on my MacBook Air M1 (permissive sandboxing set with GEMINI_SANDBOX=true). To type in "bla" I would need to type "bbllaa".

Disabling sandboxing solves the problem.

What did you expect to happen?

Every keystroke adds the corresponding character to the command line, in sandboxed mode as well.

Client information

Client Information

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

> /about
About Gemini CLI                                                                              │
│                                                                                               │
│ CLI Version                      0.5.3                                                        │
│ Git Commit                       cb341041                                                     │
│ Model                            gemini-2.5-pro                                               │
│ Sandbox                          sandbox-exec (permissive-open)                               │
│ OS                               darwin                                                       │
│ Auth Method                      OAuth        

Login information

Google Account

Anything else we need to know?

No response

pptz avatar Sep 18 '25 08:09 pptz

This is a high-priority bug affecting the usability of the CLI on macOS when sandboxing is enabled. The issue is specific to the platform and sandbox environment.

gemini-cli[bot] avatar Sep 18 '25 10:09 gemini-cli[bot]

I thought it was just me, and I even started debugging my wireless keyboard…

szymczag avatar Sep 18 '25 10:09 szymczag

Thanks for sharing, we will investigate this shortly.

agmsb avatar Sep 18 '25 17:09 agmsb

Can confirm the issue in sandbox mode(on linux). We will investigate.

agmsb avatar Sep 18 '25 18:09 agmsb

After the last update, typing is extremely slow on Windows WSL, and pasting does not paste the full text.

guluarte avatar Sep 18 '25 18:09 guluarte

Also occurs on 0.5.4

agsimeonov avatar Sep 18 '25 21:09 agsimeonov

Can confirm on macOS Sonoma 14.7.8 with macOS Sandbox activated, started when upgrading from 0.4.x to 0.5.3.

diogoterremoto avatar Sep 19 '25 13:09 diogoterremoto

Note that I had also updated to macOS 26 and found the same problem with v0.5.4. Had to downgrade to 0.4.1 to work in sandbox mode (macOS Seatbelt (permissive-open)).

sirjagman avatar Sep 19 '25 19:09 sirjagman

Fixed in v0.5.5 (macOS 15.7 (24G222) @ M4), thanks!

szymczag avatar Sep 20 '25 09:09 szymczag

Problem solved by updating to 0.5.5, thanks!

diogoterremoto avatar Sep 20 '25 11:09 diogoterremoto

Hi folks, as reported we have fixed this in v0.5.5. Thank you for your patience, will close this out now!

agmsb avatar Sep 20 '25 18:09 agmsb