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

Gemini Terminal starts to flickering and duplicating output

Open PierrunoYT opened this issue 1 year ago • 23 comments

Gemini Terminal starts to flickering and duplicating output

https://github.com/user-attachments/assets/1b0111ec-9e8a-40a8-9870-8fcbeb5ae91e

PierrunoYT avatar Jul 01 '25 16:07 PierrunoYT

This error is only happening in vscode.

Jvr2022 avatar Jul 01 '25 18:07 Jvr2022

Hello! I also see some flickering in the terminal (Wezterm on Mac). So I don't think it's VSCode specific (although my flickering is less obvious than the opening post).

On Tue, 1 Jul 2025, 19:08 Jvr, @.***> wrote:

Jvr2022 left a comment (google-gemini/gemini-cli#2859) https://github.com/google-gemini/gemini-cli/issues/2859#issuecomment-3025040945

This error is only happening in vscode.

— Reply to this email directly, view it on GitHub https://github.com/google-gemini/gemini-cli/issues/2859#issuecomment-3025040945, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABPFVWAX2OP2U2ZORHMBPL3GLFB7AVCNFSM6AAAAACARSRFWWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTAMRVGA2DAOJUGU . You are receiving this because you are subscribed to this thread.Message ID: @.***>

jackfranklin avatar Jul 01 '25 19:07 jackfranklin

I experienced this in iTerm2 on Mac so yeah not vs code specific as on vs code never had the issue so far

devpool007 avatar Jul 01 '25 22:07 devpool007

Same for me with alacritty/tmux/zsh

janthmueller avatar Jul 02 '25 15:07 janthmueller

Same in ConEmu terminal on Windows.

Gemini info:

CLI Version 0.1.9 Git Commit 34935d6

To reproduce, it is enough to start ConEmu, run gemini, type /help Enter to fill the screen with some text and make the input field to be at the bottom of the screen, then type /, then any character, e.g. m. You can try to type /m, then remove m, then type m again, etc.

The screen is flickering very much after each typing (basically makes gemini almost unusable). I assume it is because the list of hints under the input field changes its size (/ matches 16 commands, while /m matches only 2), so the input field changes its position on the screen up and down. And for some reason this causes re-rendering of the new state and old state several times after each key press.

It is reproducible in the standard Windows terminal too, but is much less noticeable with it.

xak2000 avatar Jul 02 '25 18:07 xak2000

It happens in all the terminals I tested bash/cmd/zsh/powershell

Anurup-R-Krishnan avatar Jul 11 '25 11:07 Anurup-R-Krishnan

I also see this happen in windows 11 cmd.exe/command prompt window very easy to re-produce:

  1. Re-Size Terminal Window

and/or

  1. Hold control key and use wheel mouse to zoom in and out...

I also reported this in another github issue, basically a duplicate, though yours is slightly different you report flickering, I have seen that too, and in my report I kinda also mention misalignment of ascii/ansi boxes:

https://github.com/google-gemini/gemini-cli/issues/4335

Duplicate of #4335

SkybuckFlying avatar Jul 16 '25 22:07 SkybuckFlying

Found possible duplicate issues:

  • #2623: (0.9084656238555908)
  • #2428: (0.9082563519477844)
  • #3653: (0.9052801998043124)

gsquared94 avatar Jul 30 '25 06:07 gsquared94

As soon as I somehow got used to the god of infinite scrolling, which is not fixed from version to version. In version 0.1.16 everything became even worse. Now in addition to everything, messages are constantly duplicated, merged, the cli freezes when pasting text from the buffer. In principle, working in this application has become completely impossible. In any terminal! Thank you!

The video only shows the part with window duplication. When working, the windows still merge + endless scrolling is still there. After some time, if the application does not freeze. You simply do not see where to enter text.

https://github.com/user-attachments/assets/048963e3-e0cb-4841-be03-54622e88dc02

open6amer avatar Aug 04 '25 18:08 open6amer

Yes, it's unusable for me in VSCode on Linux

https://github.com/user-attachments/assets/dcb0e572-7b1e-48e6-9c98-edb0799dc232

Happens when Gemini "thinks" and scrolls and also when I try to select through options (like Allow once, Allow always on tool use)

mderazon avatar Aug 20 '25 19:08 mderazon

Found possible duplicate issues:

  • #2623
  • #2428
  • #6019
  • #2732
  • #3334
  • #6410
  • #7012
  • #3431
  • #3224

If you believe this is not a duplicate, please remove the status/possible-duplicate label.

gemini-cli[bot] avatar Aug 29 '25 17:08 gemini-cli[bot]

Happens in Ghostty for me too.

chartpath avatar Sep 17 '25 14:09 chartpath

+1

qalqi avatar Oct 16 '25 19:10 qalqi

Hey!, is that bug resolved for you? @PierrunoYT

Saeed-786-Pro avatar Oct 19 '25 04:10 Saeed-786-Pro

https://github.com/user-attachments/assets/a7ab9041-6d03-4591-8236-dabcd7461054

happens on webshells too , google cloud shell console even, lmao. gcloud cloud-shell gemini less so, but what you see here is infact the npm install -g @google/gemini-cli agent interface, inode, over chrome canary , with canary webview—which if you can believe it or not, is the best qualitative, least glitchy, between chrome , dev chrome and canary chrome

(Connected via Device Board: sdm845 Bootloader: G965U1UES9FVD1 Codename: REL Device Name: Samsung SM-G965U1 Hardware: qcom ID: QP1A.190711.020 Manufacture: samsung Model: SM-G965U1 Product: star2qlteue

System API Level: 29 Android: 10 Kernel: 4.9.186-22990479 Preview SDK: 0 Security Patch Level: 2022-03-01 VM Version: ART 2.1.0

CPU ABI: arm64-v8a CPU Freq: 4 x 2803MHz - 825MHz 4 x 1766MHz - 300MHz CPU cores: 8

Memory Low Ram device: false Ram: 5580 MB

Display Ratio: 37:18 (18.5:9) Resolution: 1080 x 2220 xdpi / ydpi: 398 / 397 dpi

Features Bluetooth: true GPS: true NFC: true )

spiralgang avatar Nov 10 '25 13:11 spiralgang

+1

dias-bakhtiyarov avatar Nov 28 '25 06:11 dias-bakhtiyarov

same in Cursor terminal

yunixon avatar Nov 29 '25 07:11 yunixon

+1 in ZED on macos

jk-lamb avatar Dec 02 '25 15:12 jk-lamb

same issue in windows terminal

alexyunxiang avatar Dec 19 '25 07:12 alexyunxiang

Same Tabby

allancph avatar Dec 22 '25 20:12 allancph