Add an option to hide tool call traces in raw output mode
What variant of Codex are you using?
CLI
What feature would you like to see?
Description
When using Codex in raw output mode, the output currently includes the full tool call chain / tool invocation traces along with the codex actual response.
This is useful for debugging, but it makes raw mode inconvenient for one of its main practical uses: copying the codex output final answer cleanly.
For example, I often use raw mode for sessions with many short translation requests. Later, when I want to copy one specific earlier translation, the transcript is cluttered with tool calls and command output between assistant messages. This makes it much harder to scroll back, find the exact answer, and copy it cleanly.
Request
Please add an option to control whether tool call traces are included in raw mode output.
Possible designs:
- Add a config option:
``toml``
[output]
raw_show_tools = false
Expected behavior
When tool traces are disabled, raw mode should print only the assistant-visible response content, without command invocations, tool results, or internal execution traces.
This would make raw mode much easier to use for copying clean answers, while still preserving the current verbose behavior for users who rely on it for debugging or auditing.
Additional information
_No response_