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

gemini-cli Hangs After Starting Express Server During Code Execution Verification

Open dogukankse opened this issue 1 year ago • 2 comments

Describe the bug gemini-cli gets stuck while running a simple Express server.

Client information CLI Version 0.1.1
Model gemini-2.5-pro
Sandbox no sandbox
OS win32 (Windows 11)

Login information Logged in on first launch.

Additional context I have a simple index.ts file that contains a basic Express "Hello World" sample. When gemini-cli tries to ensure the code runs without issues, it executes npm start (ts-node src/index.ts). The server starts, and gemini-cli proceeds to the next step—but at this point, it gets stuck. I tried this three times to confirm the issue, and it happened every time.

Image

dogukankse avatar Jun 25 '25 21:06 dogukankse

In the first 10 hours after launch, we got a ridiculous amount of interest (far more than we dreamed) which resulted in us exceeding our internal capacity. If I had to guess, you're one of the unlucky devs who got a server timeout or slow response. We're doing a number of things to make it better including:

  1. adding more gemini TPU capacity
  2. intelligently routing requests to different models based on complexity
  3. providing better fallbacks when there's a slow response
  4. fixing that weird looping behavior

Sorry, but thanks for riding it out with us. 🙏

ryanjsalva avatar Jun 26 '25 00:06 ryanjsalva

version 0.1.4 has a fix for this issue when logging in with Google Account. could you please update to latest and confirm that you are on 0.1.4. That should help resolve this issue for you.

npm install -g @google/gemini-cli@latest gemini --version

srithreepo avatar Jun 26 '25 02:06 srithreepo