Skip to content

docs: correct plugin cache path to packages dir#32434

Open
0xDevNinja wants to merge 1 commit into
anomalyco:devfrom
0xDevNinja:fix-plugin-cache-path-docs
Open

docs: correct plugin cache path to packages dir#32434
0xDevNinja wants to merge 1 commit into
anomalyco:devfrom
0xDevNinja:fix-plugin-cache-path-docs

Conversation

@0xDevNinja

Copy link
Copy Markdown

Issue for this PR

Closes #32421

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

The plugins doc says npm plugins are cached in ~/.cache/opencode/node_modules/, but the installer actually writes them to ~/.cache/opencode/packages/ (path.join(global.cache, "packages", sanitize(pkg)) in packages/core/src/npm.ts). The node_modules/ directory doesn't exist on current installs, so people can't find where their plugins landed. This updates the documented path to match the code.

Only the English source (plugins.mdx) is changed; the locale copies are regenerated by the i18n sync, so editing translations by hand would be churn.

How did you verify your code works?

Traced the install target in packages/core/src/npm.ts and confirmed plugins install under ~/.cache/opencode/packages/<pkg>, and that no node_modules/ dir is created there. Docs-only change, no runtime code touched.

Screenshots / recordings

N/A — docs only.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

The plugin install location moved to `~/.cache/opencode/packages/` but the
docs still referenced the old `~/.cache/opencode/node_modules/` path, which
does not exist on current installs (see npm.ts install target).

Fixes anomalyco#32421
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Plugin cache directory naming/path inconsistency: docs say ~/.cache/opencode/node_modules/, actual is ~/.cache/opencode/packages/

1 participant