Codex CLI in an Eclipse IDE Terminal window doesn't allow backward scrolling (also with --no-alt-screen option)

Open 💬 4 comments Opened May 31, 2026 by stefano-1973
💡 Likely answer: A maintainer (github-actions[bot], contributor) responded on this thread — see the highlighted reply below.

What version of Codex CLI is running?

codex-cli 0.135.0

What subscription do you have?

Managed from my enterprise

Which model were you using?

gpt-5.5

What platform is your computer?

Windows Server 2019

What terminal emulator and version are you using (if applicable)?

Terminal of Eclipse IDE

What issue are you seeing?

Codex CLI in an Eclipse IDE terminal window doesn't allow backward scrolling. Also, running Codex with the --no-alt-screen option doesn't change anything.
I know the Eclipse terminal is scrollable and Codex CLI running in Windows cmd or powershell is scrollable.
So there must be some problem between Codex CLI and Eclipse terminal.

Tested under this environment:

  • Windows Server 2019
  • Eclipse IDE/Platform version Version: 2026-03 (4.39.0) Build id: 20260305-0817
  • Codex Cli version 0.135.0

What steps can reproduce the bug?

  • Open a terminal in eclipse IDE
  • Start Codex CLI with or without --no-alt-screen (even setting "set TERM=dumb" before calling codex doesn't help)
  • Give Codex the following prompt : write 50 rows (a enter b enter c etc...)
  • Try scrolling backward and see if it appears

What is the expected behavior?

the ability to scroll-back in the Eclipse IDE terminal windows running Codex CLI

Additional information

Because the cause is Codex Cli only when used with Eclipse terminal (and vice-versa), I open also this: https://github.com/eclipse-platform/eclipse.platform/issues/2680

Workaround

  1. Use the internal Codex transcript directrly in the Eclipse terminal running Codex TUI, activable with Ctrl+T
  2. Fake codex to think it's running inside Zwellij:

For linux:

ZELLIJ=1 codex --no-alt-screen -c tui.raw_output_mode=true

For windows:

set ZELLIJ=1
codex --no-alt-screen -c tui.raw_output_mode=true

View original on GitHub ↗

4 Comments

github-actions[bot] contributor · 2 months ago

Potential duplicates detected. Please review them and close your issue if it is a duplicate.

  • #24849

Powered by Codex Action

stefano-1973 · 2 months ago
Potential duplicates detected. Please review them and close your issue if it is a duplicate. * Agent output getting truncated in the middle of the terminal scrollback #24849 _Powered by Codex Action_

It doesn't seem to me the same thing. My issue is a specific problem of interaction between Eclipse IDE terminal and Codex CLI.

stefano-1973 · 2 months ago

The problem is present also if I start linux elipse in WSL2 ubuntu. Eclipse installed in wsl2 with "sudo snap install eclipse --classic"

stefano-1973 · 2 months ago

Codex analisys

Even with --no-alt-screen, Codex is still a raw-mode TUI application and does not emit output as simple line-by-line stdout. It uses terminal control sequences to redraw and insert history into the normal screen buffer. Eclipse Terminal may not be recording those screen-buffer updates into scrollback the same way other terminals do.

So this could potentially be addressed either by:

  • Codex adding a fallback/raw output mode for Eclipse Terminal, similar to the Zellij raw path; or
  • Eclipse Terminal improving scrollback handling for raw-mode/fullscreen-style terminal applications that do not use the alternate screen buffer.