r/PiCodingAgent • • 16d 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?

4 Upvotes

7 comments sorted by

View all comments

3

u/omppulse 16d 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 13d 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