fix(cli): plugin update skips Cursor silently and leaves renamed hook scripts behind
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 53/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- typescript
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- TypeScript
- Estrellas
- 481
- Forks
- 45
- Merge medio
- 1 d 13 h
- PR fusionados (30 d)
- 91
Preparar el entorno
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de ai-driven-dev/framework
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
ai-driven-dev/framework#1311 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 79/100
ai-driven-dev/framework#1244 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
ai-driven-dev/framework#1197 ·
Los mantenedores suelen responder en 1 día
-
refactor(aidd-context): apply the new skill template to learnPosiblemente ocupada @blafourcade la tomó hace 3 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
ai-driven-dev/framework#1186 · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 83/100
ai-driven-dev/framework#1163 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de ai-driven-dev/framework
Issues similares
-
db-d1-sqlite: upsert is aliased to updateOne, so payload.kv.set never inserts new keysPosiblemente ocupada @pcbeingused333 la tomó hoy. AbiertoBug db: d1-sqlite Payload OSS
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
payloadcms/payload#19766 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
device-management-toolkit/sample-web-ui#3711 ·
Los mantenedores suelen responder en 1 día
-
bug impact:low Team: SecuritySolution Team:Defend Workflows v9.6.0
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
elastic/kibana#306401 · 3 comentarios ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
agentes-chat/agentes-chat#927 ·
Los mantenedores suelen responder en 1 día
-
Closing a pinned tab jumps to the Tabs section instead of the next open pinned tabPosiblemente ocupada @seenimohamed la tomó hoy. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
ardia-browser/ardia#2769 ·
Los mantenedores suelen responder en 1 día