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

`ctrl+o` when encountering error causes screen to glitch out

Open eddie-santos opened this issue 1 year ago • 5 comments

Describe the bug Encountered an API error, and when pressing ctrl+o for details, the terminal glitches out:

See video

Additional context iTerm2 3.5.11 SSH into cloudtop gLinux 6.12.20-1rodete1-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.20-1rodete1 (2025-04-04) x86_64, gLinux Release: 20250519.04.00

Image

eddie-santos avatar Jun 01 '25 17:06 eddie-santos

@eddie-santos was the glitch in the middle of a request? I.e. was there a spinner?

NTaylorMullen avatar Jun 01 '25 18:06 NTaylorMullen

@NTaylorMullen do we pipe errors to a file where users can access this as the agent is working?

anj-s avatar Jun 03 '25 22:06 anj-s

Not currently. Ctrl + o is the only area. That being said, if an unexpected error occurs we do have logic to write that error + chat history to a file (see errorReporter)

NTaylorMullen avatar Jun 04 '25 06:06 NTaylorMullen

One option to mitigate the glitching is to change the output view to truncate log messages at one our two lines and set the error view to have a maximum height based on the viewport height. There is existing logic for that elsewhere in the project.

jacob314 avatar Jun 06 '25 19:06 jacob314

Closing this as deprecated since we overhauled the display system since then.

scidomino avatar Jun 27 '25 17:06 scidomino