core-agent-ide/codex-rs/exec/src
Michael Bolin 042d4d55d9
feat: codex exec writes only the final message to stdout (#4644)
This updates `codex exec` so that, by default, most of the agent's
activity is written to stderr so that only the final agent message is
written to stdout. This makes it easier to pipe `codex exec` into
another tool without extra filtering.

I introduced `#![deny(clippy::print_stdout)]` to help enforce this
change and renamed the `ts_println!()` macro to `ts_msg()` because (1)
it no longer calls `println!()` and (2), `ts_eprintln!()` seemed too
long of a name.

While here, this also adds `-o` as an alias for `--output-last-message`.

Fixes https://github.com/openai/codex/issues/1670
2025-10-03 16:22:12 +00:00
..
cli.rs feat: codex exec writes only the final message to stdout (#4644) 2025-10-03 16:22:12 +00:00
event_processor.rs Minor cleanup of codex exec output (#4585) 2025-10-02 14:17:42 -07:00
event_processor_with_human_output.rs feat: codex exec writes only the final message to stdout (#4644) 2025-10-03 16:22:12 +00:00
event_processor_with_jsonl_output.rs feat: codex exec writes only the final message to stdout (#4644) 2025-10-03 16:22:12 +00:00
exec_events.rs Rename assistant message to agent message and fix item type field naming (#4610) 2025-10-02 15:07:14 -07:00
lib.rs feat: codex exec writes only the final message to stdout (#4644) 2025-10-03 16:22:12 +00:00
main.rs fix: move arg0 handling out of codex-linux-sandbox and into its own crate (#1697) 2025-07-28 08:31:24 -07:00