Repository navigation
Closed
Labels
TUIIssues related to the terminal user interface: text input, menus and dialogs, and terminal displayenhancementNew feature or request
Description
What variant of Codex are you using?
codex-cli 0.121.0
What feature would you like to see?
This is how my terminal look after every other command.
• The handover file is written and the skill now documents the “reply ok or provide replacement filename” workflow. I’ll run the handover listing helper once to confirm the file
appears newest-first.
• Explored
└ Read git-review-sidebar-scroll-handover-skill.md
• Ran /usr/bin/python3 /Users/ma/.codex/skills/handover/scripts/list-handovers.py
└ git-review-sidebar-scroll-handover-skill.md
• Ran rg -n "reply with `ok`|replacement filename|path separators" /Users/ma/.codex/skills/handover/SKILL.md
└ zsh:1: command not found: ok
35:3. Ask the user to reply with `ok` to accept the proposed filename or send a replacement filename.
36:4. If the user sends a replacement filename, normalize and validate it before writing:
40: - Do not allow path separators; handovers must stay inside `./.codex/handover`.
• Called
└ ram.node.create({"body":"Decision: created project handover at .codex/handover/git-review-sidebar-scroll-handover-skill.md and updated /Users/ma/.codex/skills/handover/
SKILL.md to use the explicit filename workflow: propose filename, user replies ok or replacement, normalize/validate, then write.","branchId":"B-
00016","conversationId":"C-00006","provenance":"assistant","stability":"stable","state":"completed","type":"decision"})
{"record": {"body": "Decision: created project handover at .codex/handover/git-review-sidebar-scroll-handover-skill.md and updated /Users/ma/.codex/skills/handover/SKILL.md to
use the explicit filename workflow: propose filename, user replies ok or replacement, normalize/validate, then write.", "conversationID": "C-00006", "createdAt": "2026-04-
17T20:27:55Z", "homeBranchID": "B-00016", "id": "D-00356", "kind": "decision", "provenance": {"kind": "assistant"}, "stability": "stable", "state": "completed",
"updatedAt": "2026-04-17T20:27:55Z"}, "recordType": "node"}
Trying to parse the content from the tools output is a pain. Any way we can collapse those lines by default?
Additional information
No response
Reacted by tomerbarkan, Himanshu, Juan Toledo, Andrew Creekmore, Tianyi Huang, Stephen Carboni, Ev Dolzhenko, momo, Thomas Vuillemin, Raj Siva-Rajah and 53 more
Reacted by Ben Palmer
Reacted by Ben Palmer
Reacted by Ben Palmer
Metadata
Metadata
Assignees
Labels
TUIIssues related to the terminal user interface: text input, menus and dialogs, and terminal displayenhancementNew feature or request
Activity
[-]I don’t see a supported way to hide tool calls/output by default in Codex right now.[/-][+]Add way to hide tool calls/output in TUI[/+]szybnev commentedon Jun 14, 2026
+1
sabmark commentedon Jul 13, 2026
+1
AmelioMansour commentedon Jul 14, 2026
A useful refinement would be a latest-turn-only display mode rather than hiding all tool activity.
Desired behavior:
For example:
This would keep the current work inspectable without letting command output dominate scrollback during longer conversations.
/clearis not an adequate workaround because it resets the task context instead of only cleaning up the presentation.Environment: Codex CLI 0.144.1, Windows/PowerShell.
awaismirza92 commentedon Jul 16, 2026
Please add a focus mode, similar to Claude Code’s
/focus, that shows only user prompts and final responses while hiding tool calls and command output. Full details should remain accessible viaCtrl+T.rautita commentedon Aug 11, 2026
Another vote for this. In long interactive CLI sessions, repeated
Ran ..., shell commands,find/gitoutput, and similar tool activity quickly dominate the transcript and make the actual conversation hard to scan.A configurable TUI mode such as
tool_calls = "hidden"/"collapsed"would be very useful, while keeping approvals, errors, and safety-critical prompts visible. The complete tool transcript could remain accessible throughCtrl+Tor an explicit transcript view.The key requirement is to keep the interactive CLI workflow, not switch to
codex execjust to get a cleaner display.jeanmonet commentedon Aug 12, 2026
Another concrete use case is an MCP tool with a large generated code or query argument. Codex currently renders the full serialized invocation, for example:
For this case, fully hiding tool activity is not necessarily required. A compact, meaningful one-line description would be much more useful than displaying the complete payload.
A possible design (names only illustrative):
Per-MCP-server overrides would also help because tools have very different payload shapes:
For
compactmode, Codex could prefer an optional one-sentence invocation summary supplied with the call, for examplesummary: "Inspect worker completion state", or equivalent standardized MCP metadata. If no summary is supplied, it could fall back toserver.tool(...)with bounded arguments.The complete arguments and result should remain preserved in the transcript and available through an explicit expand/detail action. Approvals, errors, and safety-relevant messages should remain visible regardless of display mode.
Separate argument and result limits matter: code-execution and search tools can have a very large input but a small, useful result. This would preserve auditability while preventing generated source code or queries from dominating terminal scrollback.
etraut-openai commentedon Aug 14, 2026
This commit reduces the tool call output significantly and brings the TUI in line with the desktop app in terms of what is displayed for tool calls. You can still use
Ctrl+Tto show full tool outputs. This change will be in the 0.148.0 release. Let's see how that feels. I'm hoping that we can avoid adding another toggle or config option since we already haveCtrl+T.zzelner commentedon Aug 24, 2026
Still reproducible on
codex-cli 0.149.1on macOS arm64, after the0.148.0display reduction referenced above.In the normal TUI, successful app-backed tool calls still render as multi-line entries such as:
Calls such as
codex_apps.github.fetch_filealso display serialized arguments and status across multiple wrapped rows. A short read-only investigation can fill the viewport with these entries and separate the useful conversation from the final result. This is not raw-output mode.The remaining gap appears especially noticeable for app/MCP calls. Ideally, completed successful calls would render as one compact line—or as a turn-level “N tool calls” group—with full arguments and results available through
Ctrl+Tor an explicit expand action. Active calls, failures, approvals, and security-relevant events should remain visible.jeanmonet commentedon Aug 26, 2026
One implementation detail explains why this persists for ordinary MCP tools. In the current renderer:
Therefore an ordinary MCP call such as
context-mode.ctx_execute_fileis classified asStandard,compactremains false, and normal TUI history usesformat_mcp_invocation, which prints the full generated program and arguments.Source: https://github.com/openai/codex/blob/main/codex-rs/tui/src/history_cell/mcp.rs#L123-L165
The desired change is presentation-only:
• Called context-mode.ctx_execute_file(or a bounded summary);Ctrl+Ttranscript: complete invocation and result;A global or per-server
compact/name-onlydisplay option would provide this without changing MCP behavior or model context.jeanmonet commentedon Aug 28, 2026
@zzelner could someone please look into this? It would be very much appreciated. The cli output is polluted and unusable because of this limitation, and frankly becoming more annoying by the day.
2 remaining items
WladmirJunior commentedon Sep 10, 2026
@etraut-openai, I built a retroactive, opt-in
/focusprototype with sanitized before/after captures; GitHub denied PR creation, so would you consider an exception to the external-PR policy or use this as a reference?mbastawisy commentedon Sep 11, 2026
Still reproducible with
codex-cli 0.154.0on macOS.The difference is especially noticeable when continuing the same conversation between Codex CLI and Codex Desktop. Desktop keeps intermediate activity behind a single expandable Worked for … row, while the CLI transcript displays each
Explored,Ran, and tool-call entry inline.For example, a documentation lookup using Context7 can produce several
npx ctx7@latestcommand rows before a relatively short final answer, making the conversation difficult to scan.It would be useful to have an opt-in TUI preference such as:
For
collapsedmode:Ctrl+Tor another explicit expand action.The existing detailed CLI presentation can remain the default. This would simply let users choose a conversation-first view while retaining full auditability on demand.
jeanmonet commentedon Sep 19, 2026
codex 155.1, still an issue:
jeanmonet commentedon Sep 23, 2026
codex 156.1, still an issue.
codefoster commentedon Sep 25, 2026
Another user case from Windows Terminal: during a short documentation lookup, Codex printed a separate activity row for each web search, page open, and text search. Those rows filled the screen while the assistant's actual explanation was only a few lines, making the conversation hard to follow.
Please add an opt-in, per-turn collapsed activity view in the CLI: show one compact row such as “12 searches and 2 commands” for completed work, with a key or click to expand the full actions and outputs. Keep the user's messages and the assistant's updates and final answers visible. This should apply to web activity as well as shell commands, without removing anything from the saved transcript or model context.
jeanmonet commentedon Oct 17, 2026
0.163.0 still an issue
13steinj commentedon Oct 24, 2026
My terminal isn't as bad per tool call (just one or two lines), but I am getting a crapload of tool calls in a row and scrolling back up in my buffer to see a row of 10+ tool calls.
The great benefit of Codex is that because it's open source I can slop together this feature for myself. But honestly should really be a built in feature.
rburkey2005 commentedon Oct 26, 2026
I use Claude Code to manage my Codex sessions via a mailbox in order to avoid seeing this clutter. The consequence is that I use Claude Code a lot more than I use Codex. I wonder if OpenAI would consider that a useful consequence of the inability to disable the clutter?
xioacd99 commentedon Oct 28, 2026
I’d like to add a concrete UX reference from Antigravity CLI: a web search appears as one compact action row with “Ctrl+O to expand,” alongside a short status such as “Searching web...”.
I find this presentation elegant. During long coding sessions, it is easy to get lost in verbose streaming output; a concise view makes the current activity easier to follow, with details available when needed.
Could Codex offer an opt-in compact activity mode that:
I saw the earlier output-reduction work discussed here. This is a request for a user-selectable presentation, not a claim that Codex has no compact rendering today. The existing detailed view should remain available; I would not want this forced on everyone.
Masterxilo commentedon Oct 28, 2026
any progress on this? what we basically want is just that intermediate work and messages can be collapsed like the desktop app already does thanks!
collapsed:



expanded:
even more expanded:
the GPT-6 model agrees the CLI needs more collapsing, it should get a vote ;) :

btw. I think these two request almost the same: #18396 #21252
hosokawaakiyoshi commentedon Nov 9, 2026
Another request for an opt-in conversation-focused display mode, from Codex CLI
0.167.0-alpha.3.2on macOS/iTerm2.In long sessions, the inline
Ran,Explored,Called, andEditedentries, including commands, generated code, output, and patch diffs, make it difficult to find the user's questions and the assistant's answers. Increasing terminal scrollback retains more history but does not make that history easier to read.hide_agent_reasoningaddresses reasoning summaries, but does not solve this tool-activity clutter. The output reductions discussed above are helpful, but a user-selectable hidden or collapsed mode would still be valuable.Requested behavior:
Ctrl+Tor an explicit expand action.This would let users read the conversation comfortably while retaining the complete execution record on demand. Related request: #21252.
Masterxilo commentedon Nov 20, 2026
This can now be done since Codex 0.169.0: set
collapse_turn_details = trueunder[tui]in~/.codex/config.toml(withfullscreen_transcript = true, the default). Each finished turn's tool calls then fold into one line (F4, Enter to expand). See my comment in #21252.etraut-openai commentedon Nov 21, 2026
Collapse turn details shipped in Codex CLI v0.169.0 and is included in the latest stable release, v0.171.0. It’s currently off by default.
To try it, run
/configand turn on Collapse turn details under Sessions. The setting appears in full-screen mode. If you don’t see it, run/tui, select Fullscreen, restart Codex, and open/configagain.You can also enable it in
~/.codex/config.tomlby adding these settings under[tui]and restarting Codex.While Codex works, it groups consecutive tool calls into expandable summaries. When the turn finishes, it folds the intermediate activity under your prompt and keeps the final answer visible. You can expand the details or search the full tool output at any time.
We’re considering turning this on by default based on your feedback. If you try it, we’d love to hear whether it makes long conversations easier to follow and whether there’s anything you’d prefer to keep visible.
Masterxilo commentedon Nov 21, 2026
The new
collapse_turn_detailssetting makes ordinary tool output much easier to read. We should be able to fold subagent activity too. With that setting enabled in Codex CLI v0.171.0, a single request still left five rows in my transcript: twoStarted, oneInteracted with, and twoCompleted. Could these rows be grouped like ordinary tool calls, with the individual events and agent links available when expanded? I’ve described the behavior and included a collapsed/expanded example here: #62999