Files
codex/codex-rs/core-plugins
Charlie Marsh af6e8d42eb Cache marketplace name mismatches during automatic upgrades (#58957)
## Why

Automatic Git marketplace upgrades can repeatedly check out the same revision only to reject it because its manifest name differs from the configured marketplace name.

## What changed

Cache name mismatch rejections and reuse the error when the configured name, source hash, ref, sparse paths, and remote revision are unchanged. Store the cache outside the checkout without persisting the source URL.

Manual upgrades bypass the cache. Only cache rejections when the checked-out revision matches the queried remote revision and the manifest paths contain no symlinks, since symlink targets can change without a new commit.

## Testing

Add a regression test covering skipped repeat checkouts, manual retries, ref changes at the same revision, and successful recovery after a new revision restores the configured name.

GitOrigin-RevId: 586e6247a18a79563be168ff9da5b30573ecc497
2026-11-02 19:39:23 +00:00
..