Skip to content

Make exact-ref marketplace updates reliable for existing installs #35

Description

@CBEPX

Summary

The documented Update flow says to re-run marketplace add with a new pinned ref, but the current Codex CLI rejects the operation when cbepx already exists at an older ref.

Reproduction

Starting state:

Both of these fail while attempting to move to v1.7.3:

codex plugin marketplace add CBEPX/cc-plugin-codex --ref v1.7.3 --json
codex plugin marketplace add https://github.com/CBEPX/cc-plugin-codex.git --ref v1.7.3 --json

Observed error:

marketplace cbepx is already added from a different source; remove it before adding this source

Confirmed workaround

codex plugin remove cc@cbepx --json
codex plugin marketplace remove cbepx --json
codex plugin marketplace add CBEPX/cc-plugin-codex --ref v1.7.3 --json
codex plugin add cc@cbepx --json

The resulting config, marketplace checkout, installed cache, and setup check all resolve to v1.7.3.

Expected follow-up

Decide whether to:

  1. update README with the reliable replacement flow for pinned upgrades; or
  2. teach the installer/update path to replace an existing same-repository marketplace ref safely.

This is not a v1.7.3 release blocker because the remove/re-add workaround is bounded and verified.

Activity

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions