fix(cli): a `--global` rebuild for a newer release keeps the files that release removed
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- typescript
- 領域
- build-system, cli
調査の方向性
Start in cli/src/contexts/framework/application/shared/ensure-built-marketplace-use-case.ts: compare the stale-sentinel path that reaches runBuild with buildViaTemp, which already clears the built directory first. Check open PR #1145, which proposes the same deleteDirectory fix, before starting. Done when a --global upgrade from v5.13.0 to v5.14.0 leaves the built folder with the same file count as a clean v5.14.0 install (540 files).
索引モデルが issue の本文から書いたものです。
説明
Description
The built framework lives at ~/.config/aidd/cache/built/<cli version>/ (the path carries the CLI version, not the framework release). When the same CLI moves a --global install to a newer release, the build is written over the previous one, and the files the new release removed stay. Claude Code still lists the skills and agents among them.
Cause: in ensure-built-marketplace-use-case.ts, when the sentinel is stale (l.126-129), build reaches runBuild (l.176-188), which writes into builtDir without clearing it. buildViaTemp clears it first (l.168).
Open PR #1145 already adds deleteDirectory(builtDir) before the build ("a new build must not inherit deleted files"). This issue gives it a reproduction and a measured scope.
Affected file(s)
cli/src/contexts/framework/application/shared/ensure-built-marketplace-use-case.ts
Expected behaviour
After moving to v5.14.0, the built folder holds exactly the files of a clean v5.14.0 build.
Observed behaviour
In an empty HOME (XDG_CONFIG_HOME=$HOME/.config, AIDD_USER_CONFIG_DIR=$HOME/.config/aidd, CLAUDE_CONFIG_DIR=$HOME/.claude, AIDD_SKIP_UPDATE_CHECK=1), with aidd 5.7.0:
aidd setup --global --source remote --release v5.13.0 --ide claude \
--plugins aidd-context,aidd-dev,aidd-orchestrator,aidd-pm,aidd-refine,aidd-vcs --yes
aidd setup --global --source remote --release v5.14.0 --ide claude \
--plugins aidd-context,aidd-dev,aidd-orchestrator,aidd-pm,aidd-refine,aidd-vcs --yes
Compared with a clean v5.14.0 install in another empty HOME:
- 603 files against 540: 63 files survive, in 4 plugins (aidd-context 40, aidd-dev 13, aidd-refine 8, aidd-ui 2).
claude plugin details aidd-dev@aidd-framework:Agents (2) checker, executor, againstAgents (0)on the clean install.claude plugin details aidd-refine@aidd-framework: 6 skills, with05-improvebeside05-review-conversation(renamed by #1068), against 5 on the clean install.- Whole removed skills that survive:
aidd-refine/05-improve,aidd-ui/01-hello. Alsoaidd-context/hooks/update_memory.js. aidd sync --global --forcerebuilds without removing them.aidd doctor --global: "User-scope installation is healthy".
AI tool
Claude Code
aidd-cli version
5.7.0
OS
Linux
Additional context
Claude Code 2.1.325. The v5.14.0 tag holds no 05-improve, and there is no symlink under ~/.config/aidd/cache/built.
Code of Conduct
- I agree to follow this project's Code of Conduct.
- 主要言語
- TypeScript
- スター
- 481
- フォーク
- 45
- 平均マージ
- 1日 13時間
- マージ済み PR(30日)
- 91
環境構築
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
ai-driven-dev/framework のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
ai-driven-dev/framework#1311 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 79/100
ai-driven-dev/framework#1244 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
ai-driven-dev/framework#1197 ·
メンテナーはふだん 1 日以内に返信
-
refactor(aidd-context): apply the new skill template to learn対応中かも @blafourcade が 3 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
ai-driven-dev/framework#1186 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
ai-driven-dev/framework#1163 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
ai-driven-dev/framework の issue をすべて見る
似ている issue
-
db-d1-sqlite: upsert is aliased to updateOne, so payload.kv.set never inserts new keys対応中かも @pcbeingused333 が今日担当しました。 オープンBug db: d1-sqlite Payload OSS
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
payloadcms/payload#19766 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
device-management-toolkit/sample-web-ui#3711 ·
メンテナーはふだん 1 日以内に返信
-
bug impact:low Team: SecuritySolution Team:Defend Workflows v9.6.0
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
elastic/kibana#306401 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
agentes-chat/agentes-chat#927 ·
メンテナーはふだん 1 日以内に返信
-
Closing a pinned tab jumps to the Tabs section instead of the next open pinned tab対応中かも @seenimohamed が今日担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
ardia-browser/ardia#2769 ·
メンテナーはふだん 1 日以内に返信