Allow opting out of forced GIT_PAGER=cat and NO_COLOR=1 in Codex tool commands
Resolved 💬 1 comment Opened Feb 26, 2026 by skoch13 Closed Apr 3, 2026
What version of Codex is running?
Codex Desktop (current as of 2026-02-26)
What subscription do you have?
Plus
Which model were you using?
gpt-5.3-codex
What platform is your computer?
macOS (Darwin arm64)
What issue are you seeing?
Codex tool command execution appears to force environment overrides such as:
GIT_PAGER=catNO_COLOR=1
This disables user git diff presentation settings (for example delta pager/theme), even when git config is set correctly (core.pager=delta).
There currently seems to be no user-facing toggle to disable these overrides.
What steps can reproduce the bug?
- Configure git with delta (or another pager):
core.pager=delta. - Confirm outside Codex that
git diffuses delta/colors. - Run git diff via Codex tool execution.
- Observe plain output and check env in the session:
GIT_PAGER=cat,NO_COLOR=1.
What is the expected behavior?
Either:
- Respect user git/pager/color settings by default, or
- Provide a documented config toggle to control these runtime overrides (for example:
respect_user_pager = true,force_no_color = false).
Additional information
I understand why defaults may prefer non-interactive/plain output, but this should be configurable for advanced users/workflows where readable diff formatting matters.
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗