pstack skills disappear in other repos/worktrees until reinstall (cache sha churn + per-window prune race)
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
- 45/100
- Type d'issue
- Bug
- Clarté
- Plutôt claire
- Activité
- Active
- Stack technique
- git, typescript
- Domaine
- developer-experience, tooling
Piste de recherche
Start by tracing loadFromMarketplaceSource, pruneOldVersions, and _hydrateInstalledPluginIdsFromStorage in the relevant plugin loading and storage code; the issue gives no file paths or test names. Check how concurrent windows install and prune shared cache entries, then reproduce the missing skills or load errors. Done means unrelated monorepo commits do not trigger needless cache churn, concurrent windows retain usable plugin files, and failed loads retry or surface an actionable error.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Symptom
pstack skills (/poteto-mode, /how, /bro, …) often don't show up in Cursor windows opened on other repos or git worktrees. Uninstalling and reinstalling pstack brings them back, until the next time. Other plugins from this monorepo (cursor-team-kit, gmail, google-calendar, google-drive, x) share the same cache key, so they are probably affected too. pstack is the one I notice because I use its slash commands all day.
Environment
- Cursor 3.27.12 (also seen on 3.26.x), macOS, Apple silicon, Glass layout
- pstack 0.15.30 from the
cursor-publicmarketplace - Usually 2 or 3 windows open at once, each on a different repo or worktree
What the logs and local state show
- The cache key changes almost daily. Plugins from this repo are cached at
~/.cursor/plugins/cache/cursor-public/<plugin>/<monorepo commit sha>/. Over the last 6 days my windows picked up six different shas (d457567,ddf824a,111cf6a,190d287,d1453c1,9b93e81), because any commit to the monorepo moves the pin, even one that only touches a third-party plugin. - Every window installs at the same moment. When a new sha arrives, each open window logs
loadFromMarketplaceSource: Plugin missing from cache, installing: pstackwithin the same second and clones into the same directory. On 2026-10-22 16:02:11 and 2026-10-23 18:42:08/12 this happened in 2 to 3 windows at once. - Each load deletes the other versions. In
cursor-agent-exec, after a plugin loads,pruneOldVersions({…, keepVersions:[e.version]})removes every other sha directory. A window that loaded the previous sha keeps paths into a directory another window just deleted. - A failed load leaves a plugin with no skills. On a load error,
loadFromMarketplaceSourcerecords the plugin withloadErrorandskills: []. It still counts as installed but shows no skills until the window reloads. I saw concurrent-install collisions on other marketplace plugins, logged asCursor plugin load error:gmail@4bf3e08…: EEXIST: file already exists, mkdir …/.cursor-plugin,gmail@4bf3e08…: ENOENT … open …/.cache-complete, andagentmail@aebd765…: ENOENT … unlink …/.mcp.jsonin two windows in the same millisecond. - The installed-plugin cache is stored per workspace.
globalStorage/state.vscdbhas onecursor.plugins.installedIds.<teamId>|<workspace uri>key per folder (54 for me), and every git worktree counts as a new workspace. The lists differ a lot: my main checkout has 17 plugin ids, while worktrees and repos I opened before installing have 4 to 8. The renderer hydrates this on window open (_hydrateInstalledPluginIdsFromStorage). - Backend misses.
marketplace listEnabledPlugins failed … treating source as unavailableappears 114 times in my logs over about 2 weeks. A window that opens during one loads no marketplace plugins at all until it reloads.
Likely cause
A per-window cache of a shared on-disk directory, a pin that moves daily, and prune-on-load, with no lock between windows. Whichever window installs or prunes first can leave the other windows with a deleted path or a half-written directory. Items 5 and 6 explain why it shows up in "some other repo" and not everywhere at once. I haven't caught the slash menu missing pstack in the same window as a logged error, so the exact trigger is inferred from logs and code, not observed.
Workaround
Developer: Reload Window (or a full quit) in the affected window usually brings the skills back without reinstalling.
Asks
- Pin the cache per plugin (version or tree hash of
pstack/) instead of the monorepo commit, so an unrelated commit doesn't force a reinstall. - Lock or atomically rename (
tmp dir→ final path) when installing into the cache, and don't prune a version another window still has loaded. - When a plugin load fails, retry or surface the error instead of silently keeping the plugin with
skills: [].
Related: #136 (install, enable and cache lifecycle docs), #527 (disable-model-invocation and the / palette), and the forum thread on skills not showing until restart or a new repo.
- Langage dominant
- TypeScript
- Étoiles
- 13.9k
- Forks
- 1.4k
- Merge moyen
- 5 h 57 min
- PR mergées (30 j)
- 135
Préparer son environnement
Ce projet ne fournit ni conteneur de développement, ni Dockerfile, ni guide de contribution : l'installation est à votre charge. Commencez par son README, et consultez notre guide de la première contribution pour les étapes générales.
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 cursor/plugins
-
Difficulté 2/5 1-3 heures Accessibilité débutants 65/100
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 66/100
cursor/plugins#762 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 65/100
cursor/plugins#726 · 2 commentaires ·
Les mainteneurs répondent en général sous 1 jour
-
Poteto Mode Claude CodeOuverte
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
cursor/plugins#701 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
create-plugin README documents a /create-plugin command that does not existPeut-être pris @deanrie l’a pris il y a 4 jours. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
cursor/plugins#475 · 2 commentaires ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de cursor/plugins
Issues similaires
-
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
grafana/profiles-drilldown#1212 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
grafana/traces-drilldown#980 ·
Les mainteneurs répondent en général sous 1 jour
-
Manager flashes an empty "errorOccurred" dialog while redirecting a logged-out user to loginOuverte
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
openremote/openremote#3487 · 1 commentaire ·
-
triage:needs-human
Difficulté 2/5 1-3 heures Accessibilité débutants 67/100
garrytan/gbrain#7635 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
coollabsio/jean#867 ·
Les mainteneurs répondent en général sous 1 jour