codex - 💡(How to fix) Fix Zellij scrollback does not capture Codex transcript over SSH, even with `--no-alt-screen` and raw output mode

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
RAW_BUFFERClick to expand / collapse

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?

  1. SSH into a remote machine.

  2. Start Zellij:

    zellij
  3. In a Zellij pane, verify normal scrollback works:

    seq 1 300

  4. Enter Zellij scroll mode:

    Ctrl+s PageUp / k

    This works correctly for normal command output.

  5. In the same Zellij pane, start Codex:

    codex --no-alt-screen

  6. Generate enough Codex output to exceed the pane height.

  7. Try to inspect previous Codex output using Zellij scroll mode:

    Ctrl+s PageUp / k

  8. The full Codex transcript is not available in Zellij scrollback.

  9. Enable raw output mode inside Codex:

    /raw-output

  10. 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

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

codex - 💡(How to fix) Fix Zellij scrollback does not capture Codex transcript over SSH, even with `--no-alt-screen` and raw output mode