openai / openai/codex

Every time update the Code CLI, the old packages still remained.

Open
#39,871 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug CLI
Dominant language
Rust
Stars
125k
Forks
19.4k
PR merge metrics
PR metrics pending

Description

What version of Codex CLI is running?

0.149.0

What subscription do you have?

Enterprise

Which model were you using?

No response

What platform is your computer?

MacOS

What terminal emulator and version are you using (if applicable)?

No response

Codex doctor report

What issue are you seeing?

Every time update the Codex CLI, the old packages still remained in my computer.
Every version uses nearly 300MB space of my disk.

Image
What steps can reproduce the bug?
  1. Use install.sh to install an old version of Codex CLI.
  2. Run codex update to update the Codex CLI.
  3. see the install path ~/.codex/packages/standalone/releases, the older package and latest package both in the path.
What is the expected behavior?

Remove the older packages after new version installed.

Additional information

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with install.sh and the codex update flow, then inspect how packages are stored under ~/.codex/packages/standalone/releases. Reproduce the upgrade from an older version and verify that the older package is removed while the latest package remains.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust, shell
Domain
cli, release
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
60/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.