anthropics / anthropics/claude-code

autoUpdate: true in known marketplaces does not pull new commits on startup

Ouverte
#89,243 2 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
area:plugins bug
Langage dominant
Python
Étoiles
145k
Forks
23.1k
Métriques de merge des PR
Métriques de PR en attente

Description

## Description

When a marketplace is registered with `"autoUpdate": true` in `known_marketplaces.json`, Claude Code does not pull new commits from the remote on startup. Installed plugins remain pinned to the commit SHA from when the marketplace was first cloned.

## Reproduction

1. Install a plugin from a git-backed marketplace
2. Note the `gitCommitSha` in `~/.claude/plugins/installed_plugins.json`
3. New commits are merged to the marketplace repo's default branch
4. Restart Claude Code
5. **Expected:** plugin cache updates to the new HEAD commit
6. **Actual:** `gitCommitSha` and `installPath` remain unchanged; new skills are not available

## Environment

- `~/.claude/plugins/known_marketplaces.json` has `"autoUpdate": true`
- `lastUpdated` in that file does not advance on restarts
- The marketplace git clone under `~/.claude/plugins/marketplaces/` is also not pulled

## Workaround

We wrote a `SessionStart` hook that manually runs `git pull` on marketplace clones and patches `installed_plugins.json` directly. This works but mutates a file owned by Claude Code with no API contract.

## Impact

Users on managed deployments (e.g. JAMF) never receive plugin updates after initial install without manual cache-busting (`rm -rf ~/.claude/plugins/cache//`).

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Piste de recherche

Start by tracing startup handling for autoUpdate in known_marketplaces.json, then inspect how marketplace clones and installed_plugins.json are updated. Verify the behavior with a git-backed marketplace: on restart, the clone should pull the default branch and the plugin cache, gitCommitSha, installPath, and lastUpdated should reflect the new commit.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
git, python
Domaine
cli, tooling
Type d'issue
Bug
Difficulté
3/5
Temps estimé
1-2 jours
Activité
Active
Clarté
Plutôt claire
Accessibilité débutants
68/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.