fix(source-control): worktree cleanup's plugin-record reap dirties the tree, so plain removal always fails
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 78/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- git, markdown, shell
调研方向
从 plugins/source-control/skills/worktree/context/cleanup.md 开始,定位在 git worktree remove 之前运行的 project-scope plugin-record reap(claude plugin uninstall -s project)。确认它会改写被跟踪的 .claude/settings.json(去掉 enabledPlugins、重排键)并让 tree 处于 dirty。完成条件:先前干净的 worktree 仍可在不使用 --force 的情况下 remove(恢复被跟踪的 settings 文件,或对非跟踪的 scope 执行 uninstall),或者该流程文档说明了 reap 之后为何必须使用 --force。
由索引模型根据 Issue 内容生成。
描述
Problem
plugins/source-control/skills/worktree/context/cleanup.md reaps project-scope plugin records before removing a worktree. The reap runs claude plugin uninstall -s project from inside the tree, which rewrites the tracked .claude/settings.json: it drops the enabledPlugins entries and reorders the keys. The tree is then dirty, so the plain git worktree remove the procedure expects fails, and every removal needs --force.
Observed on all nine #6225 sweep worktrees, eight of which were clean before the reap.
Expected
After the reap, restore the tracked settings file (or run the uninstall against a non-tracked scope) so a clean tree still removes without --force. Alternatively, have the procedure say that --force is expected after a reap and why.
Related
#6225
- 主要语言
- Shell
- 星标
- 22
- 派生
- 2
- 平均合并
- 5 小时 4 分钟
- 30 天内合并 PR
- 825
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
melodic-software/claude-code-plugins 的其他 Issue
-
good first issue needs-triage priority: medium
难度 2/5 1-3 小时 新手友好度 78/100
melodic-software/claude-code-plugins#6499 · 1 条评论 ·
维护者通常 1 天内回复
-
needs-human needs-triage
难度 2/5 1-3 小时 新手友好度 80/100
melodic-software/claude-code-plugins#6496 · 1 条评论 ·
维护者通常 1 天内回复
-
good first issue needs-triage priority: low
难度 2/5 1-3 小时 新手友好度 72/100
melodic-software/claude-code-plugins#6390 · 1 条评论 ·
维护者通常 1 天内回复
-
good first issue needs-triage priority: low
难度 1/5 1 小时以内 新手友好度 88/100
melodic-software/claude-code-plugins#6386 · 1 条评论 ·
维护者通常 1 天内回复
-
good first issue needs-triage priority: medium
难度 2/5 1-3 小时 新手友好度 78/100
melodic-software/claude-code-plugins#6333 · 1 条评论 ·
维护者通常 1 天内回复
查看 melodic-software/claude-code-plugins 的全部 Issue
相似的 Issue
-
bug
难度 1/5 1 小时以内 新手友好度 82/100
stephrobert/pavois#390 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
-
enhancement
难度 1/5 1 小时以内 新手友好度 92/100
-
Update to 8.1.3未关闭
难度 1/5 1 小时以内 新手友好度 84/100
-
feat(plugin): /context-guru:status --stats writes the JSON to a temp file and shows only the path未关闭enhancement
难度 2/5 1-3 小时 新手友好度 86/100
rossoctl/context-guru#411 ·
维护者通常 1 天内回复