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
Content Truncation When Running Codex TUI Inside Multiplexer(zellij) #5643
When running codex TUI inside the Zellij terminal multiplexer, content is truncated and scrollback history is lost. Previous terminal output (cargo builds, shell prompts, user commands) gets cleared and is unrecoverable. The same session works correctly in regular terminals (iTerm2, Zed, etc.).
What steps can reproduce the bug?
Open Zellij terminal multiplexer
Run some commands to generate output (e.g., cargo build, ls)
Run codex to start the TUI
Observe that previous terminal content disappears
Scroll up in Zellij - previous content is gone (not just hidden)
What is the expected behavior?
No response
Additional information
The insert_history_lines() function in codex-rs/tui/src/insert_history.rs uses ANSI scroll region commands (DECSTBM) to inject history above the active viewport.
I am going to close this bug, after some investigation, I think this behavior is not a codex issue. Clear operations within a DECSTBM scroll region can affect content outside the region boundaries, this is why the context got truncated
Activity
Kangaxx-0 commentedon Oct 24, 2025
I am going to close this bug, after some investigation, I think this behavior is not a codex issue. Clear operations within a DECSTBM scroll region can affect content outside the region boundaries, this is why the context got truncated