Provide a way to view the content of the background terminal
Open 💬 8 comments Opened Mar 7, 2026 by p81sunshine
💡 Likely answer: A maintainer (github-actions[bot], contributor)
responded on this thread — see the highlighted reply below.
What variant of Codex are you using?
CLI
What feature would you like to see?
There doesn't seem to be a way to view the full output of a background terminal. How can I inspect its complete content?
Additional information
_No response_
8 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
+1
Is not helpful to understand what is happening
Implementation spec based on current
main:This looks fixable as a TUI-only change. The CLI already receives background-terminal output chunks; the main limitation today is that the TUI throws almost all of that away and
/psrenders a heavily truncated history cell.Current truncation points on
main:tui/src/chatwidget.rsUnifiedExecProcessSummaryonly keepsrecent_chunks: Vec<String>track_unified_exec_output_chunk(...)keeps only the last 3 non-empty lines (MAX_RECENT_CHUNKS = 3)tui/src/history_cell.rs/psonly shows the first line ofcommand_display[...]Suggested implementation:
background terminal running · /ps to view · /clean to closeis fine for the bottom pane./psfrom “insert truncated history cell into transcript” to “open a pager overlay”.tui/src/pager_overlay.rstui/src/chatwidget.rs, replacerecent_chunks: Vec<String>with a bounded per-process output buffer.VecDeque<String>line ring buffer is probably enough for an MVP/psoverlay/psoverlay content should render, for each running process:Why this seems low-risk:
ChatWidget; they are just summarized too aggressively todaySo the practical MVP is:
/psI've very recently switched from windsurf to codex and I'm missing this capability already. There is something strangely satisfying watching the actions stream by, whether you're in the loop or not. It's also a great way to catch and steer codex in a different direction if you're in a live troubleshooting session.
It's not a perfect solution, but a useful workaround for some may be to have logs be routed to a file (for instance, I just told codex to add a rotating file handler for my python app that I'm working on so tests give me an additional artifact for observation)
+1, I would love to see the behavior also, it would be especially helpful in scenarios where the background terminal gets stuck or has a strange error when running commands.
It seems to be resolved by using ctrl+t in the newest version of codex
This works but doesn't show the terminal output always. The panel opened from that command isn't smooth at all. Scrolling and display don't look good.
I prefer how Kiro IDE does it by showing you the terminal activities live in a normal IDE terminal panel. I can run my own commands in the terminal session, stop or kill that session easily. It's like owning full control of the terminal and the agent uses or creates new ones at will.