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=cat
  • NO_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?

  1. Configure git with delta (or another pager): core.pager=delta.
  2. Confirm outside Codex that git diff uses delta/colors.
  3. Run git diff via Codex tool execution.
  4. Observe plain output and check env in the session: GIT_PAGER=cat, NO_COLOR=1.

What is the expected behavior?

Either:

  1. Respect user git/pager/color settings by default, or
  2. 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.

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗