Skip to content

A marketplace renamed upstream fails every auto-upgrade and leaks a full clone each time #51609

Closed

Description

@yaanfpv

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?

  1. 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).
  2. Keep Codex running and open a few sessions over a few hours.
  3. 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.

Activity

  1. added
    app
    on Oct 7, 2026
  2. added
    bug
    skills
    on Oct 7, 2026
  3. eugeniojimenes commented on Oct 18, 2026

    @eugeniojimenes

    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").
    • Upstream now declares "name": "caveman" in .claude-plugin/marketplace.json, the same rename pattern as webwright → cuawright above. The mismatch is also described in Conflicting marketplace names break Codex marketplace upgrades JuliusBrussee/caveman#731.

    Impact

    • ~/.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.
    Image

    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

    1. Remove the staging directory on any upgrade failure.
    2. 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.
    3. Consider skipping marketplace auto-upgrade on app-server starts that only serve read-only RPCs.
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

    appbugskills

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions