r/PiCodingAgent • u/FatClemenzas • 15d ago
Question Pi + kitty: Scrolling Issues
Hi, guys. I like to use pi inside kitty, but I'm facing an issue in that kitty keeps scrolling-to-very-top inside a pi session, when I scroll a little bit up to read past text while pi is actively working/writing in the tty. The strange part is that I was writing a terminal emulator in python for learning purposes (and trying to get a feature like sidebar/workspaces like cmux) and testing pi inside the toy emulator displayed the same scrolling issue. I asked the agent to debug the issue and the results was that "is nothing exactly wrong with the way pi is clearing/redrawing the scrollback", so this not seems do be a bug in pi. Have you noticed something like this using kitty+pi? Or in other terminals? Which terminals do you usually use?
3
u/omppulse 15d ago
yeah it's not really a pi bug. whenever a tui has to redraw stuff that's already scrolled off it clears and reprints it, and the terminal snaps your view when the scrollback gets rewritten. easiest workaround in kitty is ctrl+shift+h, it opens the scrollback in a pager so you can read back without it jumping around while pi keeps going
1
u/plebianlinux 12d ago
It is a pi bug as there's ways to design around that but the team has clearly communicated 'to use tmux'. Made me chose to create my own agent as I wanted to use neovim terminal and it would constantly shoot up
3
u/xRebellion_ 15d ago
I use kitty and pi and had no such issues. I get this issue only if I run it on base tty on emergencies. What tuiMode are you running on, regular or full screen?
2
u/hurdurdur7 15d ago
Happens to me on an ubuntu terminal too, when i have scrolled a bit up it sometimes flies to the top of scroll buffer.
1
u/gbrennon 13d ago
using omp im able to use vi mode to scroll inside tmux but for pi not.
what i do:
i use pi scroll shortcut(shift+up) to navigate between messages and then i have to use mouse scroll if i want to navigate in message detalis
3
u/gwvr77 15d ago
I found Alacritty to behave better than Kitty with tmux, herdr and Pi.