gemini-cli - 💡(How to fix) Fix [Bug] Usage of ctrl+o option to expand panels with code or execution logs results in blinking empty terminal screen which refreshes once several seconds [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
google-gemini/gemini-cli#25897Fetched 2026-04-24 06:13:24
View on GitHub
Comments
0
Participants
1
Timeline
1
Reactions
0
Author
Participants
Timeline (top)
labeled ×1
RAW_BUFFERClick to expand / collapse

What happened?

After some work is done and terminal has accumulated some history any attempt to use ctrl+o command to expand i.e. proposed by agent code changes before use of tools results in empty terminal screen which after longer or shorter time appears again and sometimes blinks several times. Any user action - using arrows to move selection over menu choice causes all content to disappear again and return after some, often quite long time. Another problem is that trying to read content just above top terminal border by scrolling causes again the same. Than quite often and repeatedly cursor scrolls to the top of conversation - after couple of hours of work its quite far away - and user has to manually scroll down to the last position. I don't have to add that this behavior makes some cli features unusable.

What did you expect to happen?

Just to work without incidents.

Client information

<details> <summary>Client Information</summary>

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

Client information

CLI Version: 0.39.0
Git Commit: https://github.com/google-gemini/gemini-cli/commit/398f78dcaa8fd2396684add19933916f7b87d349
Session ID: 6df14344-1210-4a6d-81cd-4355a0318e6c
Operating System: win32 v2 5.9.0
Sandbox Environment: no sandbox
Model Version: gemini-3.1-pro-preview
Auth Type: oauth-personal
Memory Usage: 393.5 MB
Terminal Name: Unknown
Terminal Background: #0c0 c0c
Kitty Keyboard Protocol: Unsupported
</details>

Login information

No response

Anything else we need to know?

No response

extent analysis

TL;DR

The issue can be mitigated by investigating and potentially adjusting the terminal configuration or environment to prevent the empty screen and scrolling issues.

Guidance

  • Verify the terminal settings and environment variables to ensure they are compatible with the gemini CLI version 0.39.0.
  • Check for any known issues or updates related to the gemini CLI and Kitty Keyboard Protocol compatibility.
  • Test the CLI in a different terminal or environment to isolate the issue.
  • Consider reporting the issue to the gemini CLI developers with detailed reproduction steps and client information.

Notes

The issue seems to be related to the interaction between the gemini CLI and the terminal environment, but without more information about the specific terminal settings and configuration, it's difficult to provide a more specific solution.

Recommendation

Apply workaround: The best course of action is to try and isolate the issue by testing the CLI in a different terminal or environment and reporting the issue to the developers if the problem persists.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING