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

Cannot see all lines of the shell

Open DelphinityLabs opened this issue 1 year ago • 3 comments

What happened?

While experimenting with 4 AIs communicating with each other one AI was smart enough to develop a script to continuesly poll for new messages in an attempt to capture more message all at once I guess:

See text but also screenshot:

Image

╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ✦ It seems the conversation has paused again. I will wait for a response. I believe I have fulfilled the user's request to "continue" the conversation. I will wait for further instructions. The conversation has been continued. I am now awaiting further instructions or responses from the other AIs.

╭─────────────────────────────────────────────────────────────────────────────╮ │ > keep polling for new messages at least every 10 seconds, do not hang up │ ╰─────────────────────────────────────────────────────────────────────────────╯

✦ I will now start polling for new messages every 10 seconds. This process will continue until you interrupt it. ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ ✔ Shell while true; do AICommPostgreSQL receive 7 "Polling for messages" any; sleep 10; done (Continuously… │ │ │ │l or external command, │ │ │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ✦ The while loop failed because I am on a Windows system. I need to use a different approach for a continuous loop. I can use a PowerShell command.

I will try the following PowerShell command: while ($true) { AICommPostgreSQL receive 7 "Polling for messages" any; Start-Sleep -Seconds 10 }

I will explain the command and then run it. ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ ✔ Shell powershell -Command "while ($true) { AICommPostgreSQL receive 7 'Polling for messages' any; Start-… │ │ │ │ while (True) { AICommPostgreSQL receive 7 'Polling for messages' any; Start-Sleep -Seconds 10 │ │ │ │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ✦ It seems the command is not executing as expected. It's just echoing the command back to me. I need to find a way to execute a continuous loop on Windows.

I will try a different approach using the timeout command in a for loop. This is a bit of a hack, but it should work on Windows.

for /l %x in (1,0,1) do (AICommPostgreSQL receive 7 "Polling for messages" any & timeout /t 10 /nobreak)

This command will loop indefinitely (for /l %x in (1,0,1) creates an infinite loop) and execute the AICommPostgreSQL command, then wait for 10 seconds. I will explain the command and then run it.

ℹ Request cancelled.

╭──────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ ⊶ Shell for /l %x in (1,0,1) do (AICommPostgreSQL receive 7 "Polling for messages" any & timeout /t 10… │ │ │ │ ... first 17018 lines hidden ... │ │ │ │ K:\Delphi\AI Tests\Gemini Tests\AICommPostgreSQL\version 0.04 (FireDAC for Delphi 12.3 │ │ recreate project file)\TestEnvironment\Gemini AI7>(AICommPostgreSQL receive 7 "Polling for │ │ │for AI "7" (Context: "\Polling for messages") --- │ │ │ │ │ │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────╯

⠋ Commencing Polling Operation (esc to cancel, 1m 30s)

K:\Delphi\TestEnvironment\Gemini AI7 no sandbox (see /docs) gemini-2.5-pro (98% context left)

What did you expect to happen?

I expected control-s to expand the shell window so I could see what the shell was doing when it was running...

By the time I took the screenshot the script had ended... so it doesn't show it exactly as it was but the text kind does, it shows "... ... first 17018 lines hidden ... " in the shell section.

See red in screenshot were this was...

Client information

$ gemini /about
╭────────────────────────────────────────────────────────────────────╮
│                                                                    │
│ About Gemini CLI                                                   │
│                                                                    │
│ CLI Version            0.1.12                                      │
│ Git Commit             b29c02dd (local modifications)              │
│ Model                  gemini-2.5-pro                              │
│ Sandbox                no sandbox                                  │
│ OS                     win32                                       │
│ Auth Method            gemini-api-key                              │
│                                                                    │
╰────────────────────────────────────────────────────────────────────╯

Login information

Gemini API Key.

Anything else we need to know?

Recording AI to AI chatting experiment:

At around 6 hours and 20 minutes (maybe bit earlier) the chat experiment was repeatedly but this time with a slightly more advanced system using a postgresql database instead of a text file and a lock file.

https://www.youtube.com/live/TLoRxgE2y2Y?si=5tPiPwi-CgW4FMNk

DelphinityLabs avatar Jul 18 '25 14:07 DelphinityLabs

Better example, where shell cannot be examined fully:

Image

DelphinityLabs avatar Jul 18 '25 15:07 DelphinityLabs

Does Ctrl-S to show all lines solve?

westurner avatar Aug 28 '25 03:08 westurner

Hello! As part of our effort to keep our backlog manageable and focus on the most active issues, we are tidying up older reports.

It looks like this issue hasn't been active for a while, so we are closing it for now. However, if you are still experiencing this bug on the latest stable build, please feel free to comment on this issue or create a new one with updated details.

Thank you for your contribution!

gemini-cli[bot] avatar Dec 03 '25 21:12 gemini-cli[bot]