Zellij scrollback does not capture Codex transcript over SSH, even with `--no-alt-screen` and raw output mode
What version of Codex CLI is running?
0.132.0
What subscription do you have?
API
Which model were you using?
gpt-5.5
What platform is your computer?
Linux 5.4.0-42-generic x86_64 x86_64
What terminal emulator and version are you using (if applicable)?
zellij vscode
Codex doctor report
What issue are you seeing?
When running Codex CLI inside Zellij over SSH, Codex output cannot be reviewed through Zellij scroll mode / pane scrollback.
Other commands in the same Zellij pane scroll correctly, so the issue appears specific to Codex TUI transcript rendering rather than Zellij scrollback itself.
Normal command output such as seq 1 300 can be scrolled correctly with Zellij scroll mode. However, Codex transcript output does not appear in Zellij scrollback correctly. The pane appears to contain only the current/redrawn TUI screen rather than the full Codex conversation history.
This still happens after trying:
codex --no-alt-screen
The issue reproduces in VS Code Remote SSH and also in a normal terminal SSH session.
What steps can reproduce the bug?
- SSH into a remote machine.
- Start Zellij:
```bash
zellij
- In a Zellij pane, verify normal scrollback works:
seq 1 300
- Enter Zellij scroll mode:
Ctrl+s
PageUp / k
This works correctly for normal command output.
- In the same Zellij pane, start Codex:
codex --no-alt-screen
- Generate enough Codex output to exceed the pane height.
- Try to inspect previous Codex output using Zellij scroll mode:
Ctrl+s
PageUp / k
- The full Codex transcript is not available in Zellij scrollback.
- Enable raw output mode inside Codex:
/raw-output
- Try Zellij scroll mode again. The issue still reproduces.
What is the expected behavior?
_No response_
Additional information
This may be related to Codex TUI transcript rendering/reflow still using screen rewriting even when alternate screen is disabled.
Zellij scrollback seems to capture the rewritten screen state rather than the full transcript text.
Related existing issues / PRs:
- #10331
- #14277
- #2558
- #9115
- #11192
This still reproduces on:
- codex-cli 0.132.0
- zellij 0.44.1
- SSH remote session
- VS Code Remote SSH and normal terminal SSH
9 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
This appears to be a regression: the same workflow displayed and scrolled correctly with
codex-cli 0.128.0.0.130.0 works correctly.
since 0.131.0, doesn't work.
Are there any workarounds available in the newer versions? Without proper scrollback support, Codex is very difficult to use inside Zellij.
One small triage detail that may help narrow the regression window: the reports in this thread point to
0.130.0still working and0.131.0+failing, while the original report is on0.132.0.Given the local TUI code now has both inline mode (
--no-alt-screen) and raw scrollback mode paths, I would test this as a regression specifically around how finalized history rows are inserted/reflowed into the normal terminal scrollback inside a multiplexer, rather than treating it as only an alternate-screen issue.Useful acceptance test shape:
--no-alt-screen;That would cover the failure mode users are reporting here and avoid a fix that only works in a plain terminal or tmux.
What is your
zellij --version? Are you on zellij 0.44.1+?I was facing this issue on
zellij 0.43.1withcodex-cli 0.134.0.After updating to
zellij 0.44.1, I no longer seem to have this issue in my setup.Yes, we had a code path to specifically address a shortcoming of zellij < 0.44.1. On version 0.44.1, they addressed the shortcoming so we no longer need to carry and maintain that zellij specific code path, and newer codex versions started to have this bad behavior with older versions.
Let me know if that's the case for others in this thread.
upgrading to zellij 0.44.1 fixed it - thanks!