codex - 💡(How to fix) Fix Unified exec should suppress editor and progress output by default

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Error Message

  • cargo test -p codex-core unified_exec_env started compiling but failed locally because the machine ran out of disk space while writing Rust build artifacts (os error 112).

Root Cause

  • cargo fmt --check completed successfully, though stable rustfmt prints warnings that the repo's imports_granularity=Item option is nightly-only.
  • cargo test -p codex-core unified_exec_env started compiling but failed locally because the machine ran out of disk space while writing Rust build artifacts (os error 112).
RAW_BUFFERClick to expand / collapse

What issue are you seeing?

When Codex runs shell commands through unified exec in repositories or build workflows, some common tools can still enter interactive or ANSI/progress output modes despite the existing TERM=dumb, NO_COLOR=1, and pager defaults. This can leak raw control sequences into the Codex transcript or leave commands waiting on an editor.

This is related to the previously closed report #6850 and the merged partial fix #7286. The current unified exec defaults already set PAGER=cat, GIT_PAGER=cat, and GH_PAGER=cat, but they do not currently cover editor-driven Git flows (git merge, git rebase, commit/edit prompts) or other common progress/color environment conventions.

I prepared a small branch from current main that extends the default unified exec environment and updates the existing unit test:

https://github.com/dfredriksen/codex/tree/fix/unified-exec-plain-git-env

Given the contribution policy for external PRs, I am opening this issue first rather than marking an unsolicited PR ready for review.

What steps can reproduce the bug?

Examples that can produce noisy transcript output or editor waits from a Codex shell command:

  1. In a git repository, run a command path that invokes an editor, such as a merge/rebase/commit flow that needs an edit message.
  2. Run tools that use forced color/progress output unless explicitly disabled, such as Docker BuildKit progress output.
  3. Observe raw cursor-control/progress escape sequences in command output or a process waiting for an interactive editor.

What is the expected behavior?

Codex tool-command transcripts should be line-oriented and reviewable by default. Non-interactive Codex command execution should avoid launching editors and should prefer plain progress/color output unless the user explicitly asks for an interactive TTY-like workflow.

Additional information

A proposed focused change is to add these defaults to UNIFIED_EXEC_ENV:

  • CLICOLOR=0
  • CLICOLOR_FORCE=0
  • EDITOR=true
  • VISUAL=true
  • GIT_EDITOR=true
  • GIT_SEQUENCE_EDITOR=true
  • GIT_MERGE_AUTOEDIT=no
  • DOCKER_BUILDKIT_PROGRESS=plain

Local branch commit: 15ae078b50.

Local verification attempted:

  • cargo fmt --check completed successfully, though stable rustfmt prints warnings that the repo's imports_granularity=Item option is nightly-only.
  • cargo test -p codex-core unified_exec_env started compiling but failed locally because the machine ran out of disk space while writing Rust build artifacts (os error 112).

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

codex - 💡(How to fix) Fix Unified exec should suppress editor and progress output by default