信標自己講「這一份是誰」——vendor 還是 plugin 快取 #55

Merged
claude-code merged 1 commits from fix/beacon-says-which-copy into main 2026-08-23 13:03:37 +00:00
Member

雲端驗收卡了一輪在這題。三向實測:cache 路徑→plugin/repo .claude 路徑→vendor/其他→來源不明。版本 0.3.8→0.3.9。inkstone/InkStoneCo#57

雲端驗收卡了一輪在這題。三向實測:cache 路徑→plugin/repo .claude 路徑→vendor/其他→來源不明。版本 0.3.8→0.3.9。inkstone/InkStoneCo#57
claude-code added 1 commit 2026-08-23 13:03:15 +00:00
leo 的雲端驗收整整卡了一輪在這個問題上:同一台機器可能有兩份 ISEP,
兩份都會印信標,版本號一樣時分不出誰在說話。而「閘從哪一份走」正是決定
「另一份能不能拆」的唯一判準。

總管上一版設計的判準(叫雲端跑 env | grep CLAUDE_PLUGIN_ROOT)也是錯的:
那個變數是 hook 呼叫當下才注入的,在 Bash 工具的 env 裡本來就看不到
⇒ 空輸出不代表沒載入,那個探針從一開始就答不了這題。

改法:讓路徑自己講。快取在 plugins/cache/ 底下,vendor 的在 repo 的 .claude/ 底下。

三向實測:
  /root/.claude/plugins/cache/inkstone/isep/0.3.9  → 來源:plugin(marketplace 裝的)
  /home/user/inkstoneco/.claude/isep               → 來源:vendor(repo 裡的複製本)
  其他路徑                                          → 來源不明(不假裝知道)

inkstone/InkStoneCo#57
claude-code merged commit d4547bfec3 into main 2026-08-23 13:03:37 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: inkstone/ISEP#55