You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Codex client output truncated when scrolling in Zellij #2558
When running the Codex client inside a Zellij session, the output history does not display correctly. Attempting to scroll within the Zellij pane shows truncated content instead of the full history. This makes it difficult to review previously generated output.
Steps to reproduce it:
cargo install zellij
zellij
codex
Then try scrolling back using Zellij’s scroll mode.
What is the expected behavior?
Scrolling in Zellij should display the full history of Codex output without truncation.
What do you see instead?
Scrolling only shows partial output — earlier content is cut off.
Additional information
No response
Reacted by Bruno Peartree, Glib Glugovskiy, yogurt80, Daniel Lee, Lucca Huguet, fredheir, Kirill Pavlenko, Art, predmore, Bas Nijholt and 104 more
Reacted by Fayaz Ahmed, pakelley, Rick Torres Jr., slopinator9000, Nexi, Christian Mårtensson, Camille Louédoc-Eyriès, Diego, solzard, Maxim Grankin and 11 more
i've got some feedback from zellij's author that might be helpful
with the strong disclaimer that I have not tried to reproduce this myself and this is just an educated guess - this happens because the application is relying on the scrollbuffer in "Alternate Screen" (eg. with control code 1049), which the specification mentions should not exist (source: https://invisible-island.net/xterm/ctlseqs/ctlseqs.html under "Alternate Screen Buffer").
I have tried in the past to be lenient with this behavior, because this is a common issue with some apps (can't blame them, not everyone spends time reading xterm specs), but allowing scrollbuffer in these cases causes a lot of other problems in apps that do follow the spec. Feel free to quote me on this.
i've got some feedback from zellij's author that might be helpful
with the strong disclaimer that I have not tried to reproduce this myself and this is just an educated guess - this happens because the application is relying on the scrollbuffer in "Alternate Screen" (eg. with control code 1049), which the specification mentions should not exist (source: invisible-island.net/xterm/ctlseqs/ctlseqs.html under "Alternate Screen Buffer").
I have tried in the past to be lenient with this behavior, because this is a common issue with some apps (can't blame them, not everyone spends time reading xterm specs), but allowing scrollbuffer in these cases causes a lot of other problems in apps that do follow the spec. Feel free to quote me on this.
Do you have a link to that message? I'm curious what mode he recommends to use instead.
Activity
alexff8505 commentedon Aug 21, 2025
I get the same issue in multiple Mac based Terminals, inc the default. "Unlimited Scrollback" options can solve the issue if your software has it.
brunopeartree commentedon Aug 22, 2025
Hi, I am experiencing the same issue. Currently this prevents me from switching from claude code.
Artawower commentedon Aug 23, 2025
Same here, this behavior only started showing up very recently
warrenchortle commentedon Aug 25, 2025
Also seeing this on linux
luccahuguet commentedon Aug 27, 2025
have this as well, does not seem to be a problem with zellij. since claude code has no such issue
luccahuguet commentedon Aug 27, 2025
i've got some feedback from zellij's author that might be helpful
yogurt80 commentedon Aug 28, 2025
I have the same issue.
luccahuguet commentedon Aug 28, 2025
guys. in the new version you can just use
ctrl tto view the history. easy peasy way to circumvent this issue while it's not fixedwkrettek commentedon Aug 31, 2025
Do you have a link to that message? I'm curious what mode he recommends to use instead.
luccahuguet commentedon Aug 31, 2025
The message was is zellij's discord
We'd be happy to have you there @wkrettek
you can find it here
https://zellij.dev/
you can ping me there, and then i just show you the message or you can ask the author yourself too
albertojanza commentedon Sep 11, 2025
Same issue with tmux and zellij in Ubuntu 24.04 (omakub)
WeZZard commentedon Sep 25, 2025
Same issue with Zellij on macOS.
tomas-b commentedon Sep 28, 2025
same on zellij + ghostty + macOS
yoogoc commentedon Sep 30, 2025
same on zellij + alaritty + macOS
91 remaining items
fix(tui): handle zellij redraw and composer rendering (openai#16578)
fix(tui): handle zellij redraw and composer rendering (openai#16578)