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
iTerm2 cannot scroll up in interactive Codex session, including with --no-alt-screen #18528
macOS (Darwin), terminal: iTerm2, architecture appears to be Apple Silicon (arm64)
What issue are you seeing?
In iTerm2, an interactive codex session cannot scroll back upward using the mouse wheel / trackpad scroll gesture.
This still happens when launching Codex with:
codex --no-alt-screen
That suggests the problem is not only alternate-screen handling. It looks like the Codex TUI is still capturing scroll input, or redraw behavior is preventing normal scrollback access.
In the same terminal environment, claude scrolls normally, so this does not appear to be a general iTerm2 configuration issue.
What steps can reproduce the bug?
Open iTerm2 on macOS.
Run codex.
Generate enough output to require scrolling.
Try to scroll upward with the mouse wheel or trackpad gesture.
Observe that the terminal does not scroll back.
Repeat with codex --no-alt-screen.
Observe the same behavior.
What is the expected behavior?
Interactive Codex sessions should allow normal upward scrollback in iTerm2, especially when --no-alt-screen is used.
That issue is still open, and the only apparent workaround there is user-reported: updating Windows Terminal fixed scrolling for some Windows users. I did not see a maintainer confirmation that the underlying Codex issue is resolved.
My case still appears distinct:
reproducible on macOS + iTerm2
codex --no-alt-screen still does not restore normal upward scrollback
I'm not able to repro the problem. This must be something specific to your system or configuration. I'm using the default terminal settings for iTerm2. Perhaps you've modified your settings in some way?
Activity
github-actions commentedon Apr 19, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
hunterlarcuad commentedon Apr 19, 2026
I reviewed #15726 more closely.
That issue is still open, and the only apparent workaround there is user-reported: updating Windows Terminal fixed scrolling for some Windows users. I did not see a maintainer confirmation that the underlying Codex issue is resolved.
My case still appears distinct:
codex --no-alt-screenstill does not restore normal upward scrollbackSo I do not think #15726 fully covers this macOS/iTerm2 case, even if the symptoms are related.
etraut-openai commentedon Apr 19, 2026
I'm not able to repro the problem. This must be something specific to your system or configuration. I'm using the default terminal settings for iTerm2. Perhaps you've modified your settings in some way?
andres99x commentedon Apr 23, 2026
@hunterlarcuad check this out: #2485
etraut-openai commentedon Apr 28, 2026
See #19645 for details and a workaround.