Every time update the Code CLI, the old packages still remained.
Open
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.
What steps can reproduce the bug?
- Use install.sh to install an old version of Codex CLI.
- Run
codex updateto update the Codex CLI. - 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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