Skip to content

Codex cli is messing around with my ENV #4236

Closed as duplicate
Closed as duplicate

Description

@CGQAQ

What version of Codex is running?

codex-cli 0.41.0

Which model were you using?

gpt-5-codex high

What platform is your computer?

Darwin 25.0.0 arm64 arm

What steps can reproduce the bug?

launch codex cli

• Ran which -a gperf

> Both /usr/bin/gperf and /opt/homebrew/bin/gperf are on the path.

▌ run which  gperf

• Ran which  gperf

> which  gperf returns /usr/bin/gperf.

exit codex cli

% which -a gperf
/opt/homebrew/bin/gperf
/usr/bin/gperf

% which gperf
/opt/homebrew/bin/gperf

What is the expected behavior?

The env inside codex cli should be exactly the same as it's outer shell

What do you see instead?

codex cli prepends some PATHs to the $PATH, causing wrong selection of gperf to old version, causing codex cli can not run my test

Additional information

No response

Activity

  1. jessfraz commented on Sep 25, 2025

    @jessfraz

    this is the same bug as #4210

  2. CGQAQ commented on Sep 25, 2025

    @CGQAQ
    Author

    Close as duplicated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions