Skip to content

docs: correct plugin cache path to packages dir - #32434

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

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
@github-actions

Copy link
Copy Markdown
Contributor

Automated PR Cleanup

Thank you for contributing to opencode.

Due to the high volume of PRs from users and AI agents, we periodically close older PRs using automated criteria so maintainers can focus review time on the most active and community-supported contributions.

This PR was closed because it matched the following cleanup criteria:

  • The PR was created more than 1 month ago
  • The PR had fewer than 2 positive reactions
  • Positive reactions are counted as thumbs-up, heart, celebration, or rocket reactions on the PR

PRs created within the last month are not affected by this cleanup.

If you believe this PR was closed incorrectly, or if you are still actively working on it, please leave a comment explaining why it should be reopened. A maintainer can review and reopen it if appropriate.

Thanks again for taking the time to contribute.

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

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