anthropics / anthropics/claude-code

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

未关闭
#89,243 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
area:plugins bug
主要语言
Python
星标
145k
派生
23.1k
PR 合并指标
PR 指标待抓取

描述

## 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//`).

贡献指南

这个仓库没有索引到贡献指南

调研方向

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.

由索引模型根据 Issue 内容生成。

评估

技术栈
git, python
领域
cli, tooling
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
活跃
描述清晰度
基本清楚
新手友好度
68/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。