Skip to content

Adding CLI Option to hide tool activity #21252

Closed

Description

@timonwendland

What variant of Codex are you using?

CLI

What feature would you like to see?

Problem

The TUI transcript can become dominated by tool-call cells during long sessions. This makes the conversation hard to scan when the user mainly wants reasoning summaries and final answers.

Proposal

Add an opt-in TUI setting:

[tui]
hide_tool_activity = true

When enabled, Codex hides agent tool activity from the TUI transcript while preserving reasoning summaries, final assistant answers, approvals, and user shell commands.

Also add a live slash command:

  • /tool-activity toggles the setting for the current session.
  • /tool-activity hide
  • /tool-activity show
  • /tool-activity toggle
  • /tool-activity status

How it works

The setting only changes what the TUI adds to the visible transcript. Tool calls still run normally, approvals still appear when needed, and user shell commands remain visible. When hiding is enabled, Codex skips inserting agent tool-history cells for exec, MCP, web search, image, patch, and collaboration tool events, while continuing to render reasoning summaries and final assistant messages.

Prototype

I tested a local prototype on Windows against rust-v0.128.0.

Covered behavior:

  • config TOML deserializes the new setting
  • hidden tool activity does not insert transcript cells
  • reasoning summaries and final answers remain visible
  • slash command toggles the behavior without sending a core op
  • slash-command parsing and recall behavior follow existing patterns

Tests

Focused tests used in the prototype:

cargo test -p codex-core config_toml_deserializes_tui_hide_tool_activity
cargo test -p codex-tui hide_tool_activity_keeps_reasoning_and_answer_visible
cargo test -p codex-tui slash_tool_activity
cargo test -p codex-tui slash_command

Additional information

I realised this implementation locally with codex itself and it showed significant visual clarity improvements.

Image

Activity

  1. added
    enhancement
    on May 5, 2026
  2. added
    CLI
    TUI
    config
    windows-os
    on May 5, 2026
  3. removed
    windows-os
    CLI
    config
    on May 5, 2026
  4. maddada commented on May 7, 2026

    @maddada

    Agreed, the transcript gets huge and can't scroll through it easily.
    My fix is to have hotkeys to toggle between states, I added it in my own fork before and it worked well.
    Btw, do you use transcript mode (ctrl + t) or just scroll in the main scroll back?

  5. NN1985 commented on May 12, 2026

    @NN1985

    Will this be merged?

  6. abhirvjatar commented on Jun 25, 2026

    @abhirvjatar

    It's astounding this still hasn't been implemented yet, as such an important feature.

  7. StarkBotha commented on Jul 14, 2026

    @StarkBotha

    +1 please

  8. ninoz commented on Jul 31, 2026

    @ninoz

    +1 please :)

  9. Skandesh commented on Aug 5, 2026

    @Skandesh

    +1 please @Timandilu raised a PR for this??

  10. nisimdottech commented on Aug 6, 2026

    @nisimdottech

    Can't see the forest for the trees.
    This simply must be added.

  11. 9 remaining items

  12. atrofimov-sc commented on Oct 16, 2026

    @atrofimov-sc

    This is really hurting codex when compared to other harnesses because they have a conversation mode, but codex cli doesn't. This makes very hard to adopt as the default because for any non-trivial work it's impossible to follow the conversation.

  13. Masterxilo commented on Oct 28, 2026

    @Masterxilo

    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:
    Image
    expanded:
    Image
    even more expanded:
    Image

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

    btw. I think these two request almost the same: #18396 #21252

  14. andrewcamerongraham commented on Oct 29, 2026

    @andrewcamerongraham

    It's subjective, and thats true about the details of how it might be implemented, but the need to be able to see prose above execution not getting lost is why Claude's TUI is better as an orchestrator, something I'd happily see disrupted.

    Even though I prefer Sol models which I use as much as possible, the only thing that keeps claude as my orchestrator is because important messages are not lost in a stream of execution as aggressively.

  15. oren-hecht commented on Nov 2, 2026

    @oren-hecht

    +1 to this! it is a huge annoyance and should be really simple to fix! there is clearly a lot of interest here..

  16. Masterxilo commented on Nov 6, 2026

    @Masterxilo

    GitHub Copilot CLI has the same issue: github/copilot-cli#4995

  17. dnesh-g commented on Nov 18, 2026

    @dnesh-g

    +1 its a lot of clutter in some cases. Having this fixed would be great given the repeated ask and interest on this enh.

  18. hktonylee commented on Nov 18, 2026

    @hktonylee

    +1 to this feature. Now we run multiple agents and each agent can work continuously for tens of hours. And tool use can be complicated (like hundreds lines of scripts). It is no longer reasonable for human to verify them.

    Alternative, it may be better to show some short summary. Like the histogram of tool use. List some outlier tool uses. The summary should be a O(1) information no matter how long the turn / session would be

  19. ysjn commented on Nov 19, 2026

    @ysjn

    It looks like Codex CLI v0.169.0 introduced a feature that addresses much of this request: Collapse turn details.

    https://github.com/openai/codex/releases/tag/rust-v0.169.0

    You can enable it in ~/.codex/config.toml:

    [tui]
    fullscreen_transcript = true
    collapse_turn_details = true

    Note that this feature requires Full-screen transcript mode, which is enabled by default in recent versions. You can also select Fullscreen via /tui.

    This collapses completed activity while keeping final answers visible and tool output searchable.

    It's not an exact match for the proposed hide_tool_activity setting, but it seems to address the main concern of reducing tool-call clutter in the TUI.

    Hope this helps!

    Expanded Collapsed
  20. hktonylee commented on Nov 19, 2026

    @hktonylee

    Thanks @ysjn I am able to hide those tool use records in codex

  21. Masterxilo commented on Nov 20, 2026

    @Masterxilo

    This is exactly what I needed, thanks! Setting collapse_turn_details = true under [tui] in ~/.codex/config.toml (Codex 0.169.0+, needs fullscreen_transcript = true, the default) folds each finished turn's tool activity into one line; F4 then Enter unfolds it again. I consider this issue solved.

    collapse-off-vs-on
  22. etraut-openai commented on Nov 21, 2026

    @etraut-openai
    Contributor

    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 /config and 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 /config again.

    You can also enable it in ~/.codex/config.toml by adding these settings under [tui] and restarting Codex.

    [tui]
    fullscreen_transcript = true
    collapse_turn_details = true

    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.

  23. Masterxilo commented on Nov 21, 2026

    @Masterxilo

    The new collapse_turn_details setting 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: two Started, one Interacted with, and two Completed. 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    TUIenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions