fix(cli): plugin update skips Cursor silently and leaves renamed hook scripts behind
Les mainteneurs répondent en général sous 1 jour
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 53/100
- Type d'issue
- Bug
- Clarté
- Clairement spécifiée
- Activité
- Active
- Stack technique
- typescript
Piste de recherche
Start with plugin-update-use-case.ts, plugin-add-use-case.ts, and install-ai-tool-use-case.ts; trace how updates select installed tools and how replace handles previously tracked files. Add tests for a renamed hook through plugin update, replacement, and Cursor setup, checking that edited files are preserved. Done means updates report or reach Cursor, obsolete unchanged files are removed on replacement, and the tests pass.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Description
After the plugin renames a hook script (here hooks/aidd-context/update_memory.js → memory.cjs), updating does not reach every installed tool, and nothing says so.
- Cursor is skipped by
aidd plugin update. Cursor plugins are recorded with scopeuser;PluginUpdateUseCase.updatePluginsForToolfilters them out when no plugin name is given. The command prints "Updated" for the other tools only. The project's.cursor/hooks.jsonkeeps calling the old script untilaidd setupruns again. Naming the plugin fails:Tool 'cursor' does not support scope 'project'. - opencode and Kilo keep orphan files on a reinstall.
aidd setup/ a reinstall goes throughreplace: true(install-ai-tool-use-case.ts:128);dropExistingPlugin(plugin-add-use-case.ts) drops the manifest record but never deletes the previously tracked files the new version no longer ships. They are inert (the bridge spawns only current hooks) but stay on disk, untracked, socleanmisses them.plugin updateitself removes them throughdeleteOldFiles. - No test covers a renamed hook script through
plugin update, throughreplace, or through Cursorsetupagain.
Affected file(s)
cli/src/contexts/framework/application/plugin/plugin-update-use-case.ts, cli/src/contexts/framework/application/plugin/plugin-add-use-case.ts, cli/src/contexts/framework/application/install/install-ai-tool-use-case.ts
Expected behaviour
- An update reaches every installed tool, or names the tool it skipped and the command that updates it.
- A replaced install removes the files the new version no longer ships, hash-checked like
removeObsoleteScripts, so a user-edited file is kept.
Observed behaviour
Measured with the CLI built from a scratch copy: install from origin/next, bump aidd-context, marketplace refresh then plugin update, and separately setup again.
- Cursor: stays on the old version;
.cursor/hooks.jsonstill runsupdate_memory.json everysessionStart. - opencode / Kilo after
setupagain:.opencode/hooks/aidd-context/update_memory.jsand the.kilocopy remain besidememory.cjs. - No case of two memory writers running at once was found.
AI tool
Cursor, OpenCode, Kilo
Additional context
Smallest fixes:
- Cursor: warn after
plugin updatethat Cursor needsplugin update --scope userthenaidd setup, or drive that sequence from the default update. - opencode / Kilo: capture the previous record's
plugin.filesinprepareForInstall(next toprevHooksMap) and delete those absent from the new set onreplace, with the same hash check asremoveObsoleteScripts. - Tests: a rename (
update_memory.js→memory.cjs) throughplugin update, throughreplace, and through Cursorsetupagain.
Unverified: Codex and Copilot host loading (host registration failed in the sandbox); Cursor projects installed before hook provenance records.
- Langage dominant
- TypeScript
- Étoiles
- 481
- Forks
- 45
- Merge moyen
- 1 j 13 h
- PR mergées (30 j)
- 91
Préparer son environnement
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de ai-driven-dev/framework
-
Difficulté 2/5 1-3 heures Accessibilité débutants 86/100
ai-driven-dev/framework#1311 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 79/100
ai-driven-dev/framework#1244 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
ai-driven-dev/framework#1197 ·
Les mainteneurs répondent en général sous 1 jour
-
refactor(aidd-context): apply the new skill template to learnPeut-être pris @blafourcade l’a pris il y a 3 jours. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
ai-driven-dev/framework#1186 · 1 personne assignée ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 83/100
ai-driven-dev/framework#1163 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de ai-driven-dev/framework
Issues similaires
-
Difficulté 1/5 1-3 heures Accessibilité débutants 87/100
Les mainteneurs répondent en général sous 1 jour
-
🛠️ dette technique
Difficulté 2/5 1-3 heures Accessibilité débutants 61/100
betagouv/mon-entreprise#4752 · 1 commentaire ·
Les mainteneurs répondent en général sous 5 jours
-
type: bug
Difficulté 2/5 1-3 heures Accessibilité débutants 67/100
franciscoBSalgueiro/en-croissant#1111 ·
Les mainteneurs répondent en général sous 2 jours
-
area/providers type/feature version/v2
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
anomalyco/opencode#64845 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
enhancement
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
Les mainteneurs répondent en général sous 1 jour