You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
A marketplace renamed upstream fails every auto-upgrade and leaks a full clone each time #51609
What version of the Codex App are you using (From “About Codex” dialog)?
26.930.61225 (13232)
What subscription do you have?
ChatGPT Pro 200
What platform is your computer?
Darwin 27.0.0 arm64 arm
What issue are you seeing?
My disk lost about 20 GB in one night to ~/.codex/.tmp/marketplaces/.staging.
The cause is one git marketplace whose upstream repo renamed its marketplace. microsoft/Webwright changed the name in .claude-plugin/marketplace.json from webwright to cuawright on 2026-10-05 (commit 69922bc). My config.toml still had [marketplaces.webwright]. Since then every auto-upgrade clones the repo into a new marketplace-upgrade-* folder, reads the new name, and fails:
WARN codex_core_plugins::manager: failed to auto-upgrade configured marketplace marketplace="webwright" error=upgraded marketplace name `cuawright` does not match configured marketplace `webwright`
The 151 MB clone is never removed, and the upgrade runs again at the next session start or refresh. With a few Codex sessions open that came to about 130 clones overnight. The name will never match again, so the loop doesn't stop until someone notices the disk.
What steps can reproduce the bug?
Configure a git marketplace whose repo later renames its marketplace, e.g. [marketplaces.webwright] with source = "https://github.com/microsoft/Webwright.git" (now named cuawright).
Keep Codex running and open a few sessions over a few hours.
ls ~/.codex/.tmp/marketplaces/.staging | wc -l grows by one full clone per upgrade attempt, and the log shows the name-mismatch warning each time.
What is the expected behavior?
A failed upgrade removes its staging clone.
A name mismatch is treated as permanent: Codex stops retrying it and tells me the marketplace was renamed upstream (ideally offering to switch to the new name), instead of trying again on every start.
Additional information
The staging leak in general is already tracked in #21005 and #39421. This is a way to hit it that never stops by itself, since the error can't clear.
Separately, this marketplace's plugin uses a github source, which Codex skips (skipping marketplace plugin with unsupported source), so the entry never installed anything in Codex either.
Same issue here, on Linux, with a different marketplace and a much higher trigger rate.
Setup
codex-cli 0.160.0 (installed via mise), Omarchy (Arch Linux)
config.toml had a git marketplace registered as caveman-repo (source https://github.com/JuliusBrussee/caveman.git, last_updated = "2026-05-21").
~/.codex reached 162 GB across 8.2 million files, almost all of it in .tmp/marketplaces/.staging/: 4,483 marketplace-upgrade-* clones (~35–47 MB each) accumulated since mid-August.
Plus ~4,000 leftover ~/.codex/.tmp/git-* directories.
None of this came from actual Codex usage. I hadn't opened a Codex session since June, yet the directory kept growing every 15 minutes.
Trigger
Omarchy's Agents bar widget runs codex -s read-only -a on-request app-server every 900 s to read rate limits (omacom/omarchy#13051). Each app-server start ran the marketplace auto-upgrade, which cloned, failed the name check, and left the clone behind: ~96 clones/day, indefinitely. Any tool that polls app-server multiplies this bug.
Suggestions
Remove the staging directory on any upgrade failure.
Treat a marketplace name mismatch as a permanent error: stop retrying (or back off) and surface a clear message telling the user to re-register the marketplace.
Consider skipping marketplace auto-upgrade on app-server starts that only serve read-only RPCs.
Activity
eugeniojimenes commentedon Oct 18, 2026
Same issue here, on Linux, with a different marketplace and a much higher trigger rate.
Setup
config.tomlhad a git marketplace registered ascaveman-repo(sourcehttps://github.com/JuliusBrussee/caveman.git,last_updated = "2026-05-21")."name": "caveman"in.claude-plugin/marketplace.json, the same rename pattern aswebwright→cuawrightabove. The mismatch is also described in Conflicting marketplace names break Codex marketplace upgrades JuliusBrussee/caveman#731.Impact
~/.codexreached 162 GB across 8.2 million files, almost all of it in.tmp/marketplaces/.staging/: 4,483marketplace-upgrade-*clones (~35–47 MB each) accumulated since mid-August.~/.codex/.tmp/git-*directories.Trigger
Omarchy's Agents bar widget runs
codex -s read-only -a on-request app-serverevery 900 s to read rate limits (omacom/omarchy#13051). Each app-server start ran the marketplace auto-upgrade, which cloned, failed the name check, and left the clone behind: ~96 clones/day, indefinitely. Any tool that polls app-server multiplies this bug.Suggestions
app-serverstarts that only serve read-only RPCs.