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

UI lag and ctrl+c / esc not working in versions greater than 0.1.5

Open douglarek opened this issue 1 year ago • 15 comments

What happened?

The old version 0.1.5 has no issues, but the latest versions 0.1.6 and 0.1.7 both have UI lag problems. Specifically, when asking a question, pressing the ctrl+c and esc keys twice during the response has no effect. When gemini calls a tool, users cannot confirm whether it is allowed. Please fix this, as it is a severe issue.

What did you expect to happen?

works normal

Client information

$ gemini /about
# paste output here

Login information

No response

Anything else we need to know?

No response

douglarek avatar Jun 28 '25 00:06 douglarek

Hi douglares, I believe I encountered this issue as well — but on one of the very first versions (possibly the initial release of gemini-cli). So it might not be specific to the newer releases like 0.1.6 or 0.1.7. Just wanted to share in case it helps with troubleshooting!

chingchun94 avatar Jun 28 '25 02:06 chingchun94

Hi douglares, I believe I encountered this issue as well — but on one of the very first versions (possibly the initial release of gemini-cli). So it might not be specific to the newer releases like 0.1.6 or 0.1.7. Just wanted to share in case it helps with troubleshooting!

Thank you for sharing. I'm not sure what the issue is, but currently, any keyboard input has no effect for actions involving TUI interactions (such as switching with /auth). I'm using bun, and I'm not sure if it's a runtime problem, but version 0.1.5 works perfectly fine. I have to say, the frustration is overwhelming.

douglarek avatar Jun 28 '25 02:06 douglarek

I'm using bun,

I think the issue should be right here. I downloaded a Node.js runtime from the official Node.js website, and after installation, using node to execute Gemini worked fine. So the problem is that Gemini versions above 0.1.5 have become incompatible with the Bun runtime. Does the Gemini-cli team plan to add a Bun runtime matrix? Considering that Bun is now a very fast and excellent Node.js runtime. cc @jerop

douglarek avatar Jun 28 '25 02:06 douglarek

This reads like a bug in Bun and not in gemini.

Jarred-Sumner avatar Jun 28 '25 04:06 Jarred-Sumner

"bunx gemini" work

pomazanbohdan avatar Jul 06 '25 15:07 pomazanbohdan

"bunx gemini" work

no.

douglarek avatar Jul 06 '25 15:07 douglarek

no.

Image

pomazanbohdan avatar Jul 06 '25 15:07 pomazanbohdan

no.

Image

Running the program works as expected, bun 1.2.17 is fine. The issue occurs when using a slash command like /auth to switch; the keyboard becomes unresponsive, and the program freezes completely.

douglarek avatar Jul 06 '25 15:07 douglarek

Running the program works as expected, bun 1.2.17 is fine. The issue occurs when using a slash command like /auth to switch; the keyboard becomes unresponsive, and the program freezes completely.

with the update to 0.1.5, any buttons in any script except the input field and the enter in it stopped working, not only in /

pomazanbohdan avatar Jul 06 '25 15:07 pomazanbohdan

Running the program works as expected, bun 1.2.17 is fine. The issue occurs when using a slash command like /auth to switch; the keyboard becomes unresponsive, and the program freezes completely.

with the update to 0.1.5, any buttons in any script except the input field and the enter in it stopped working, not only in /

On the contrary, gemini-cli 0.1.5 is the last version of gemini that works on bun; the subsequent versions are completely problematic. I'm not sure what changes were made to gemini after 0.1.5.

douglarek avatar Jul 06 '25 15:07 douglarek

On the contrary, gemini-cli 0.1.5 is the last version of gemini that works on bun; the subsequent versions are completely problematic. I'm not sure what changes were made to gemini after 0.1.5.

I checked your case, everything works with bunx I have boon version 1.2.18 and the latest gemini cli

pomazanbohdan avatar Jul 06 '25 15:07 pomazanbohdan

@douglarek Pls test bun install -g @google/gemini-cli@nightly work without "bunx" for me now

Image

pomazanbohdan avatar Jul 07 '25 04:07 pomazanbohdan

@douglarek Pls test bun install -g @google/gemini-cli@nightly work without "bunx" for me now

Image

do you also have nodejs installed at the same time.

douglarek avatar Jul 07 '25 04:07 douglarek

do you also have nodejs installed at the same time.

Yes, I just installed it yesterday. Not a single case works without it.

pomazanbohdan avatar Jul 07 '25 04:07 pomazanbohdan

do you also have nodejs installed at the same time.

Yes, I just installed it yesterday. Not a single case works without it.

I haven't installed Node.js, and in a pure Bun environment, versions of Gemini after 0.1.5 don't work properly. If you have Node.js installed, the shebang might cause it to use Node.js runtime instead of Bun.

douglarek avatar Jul 07 '25 04:07 douglarek