Conversation
…installs Plan files were hardcoded to <worktree>/.opencode/plans for git projects, and every discovered .opencode config directory got an automatic @opencode-ai/plugin dependency install plus generated package manifest, lockfile and .gitignore files. This pollutes every project plan mode is used in, with no way to opt out. - add plans_directory config key to relocate plan files (supports ~) - add OPENCODE_DISABLE_PLUGIN_DEPS=1 to skip the per-directory dependency install and generated files - extend the plan agent built-in edit/external_directory permissions to cover the configured plans directory Refs anomalyco#46189
|
For anyone landing here from the issue: ways to keep this clean today, before and after this PR. On released versions (no PR needed):
With this PR: Options 1-4 become unnecessary. Set |
Per-directory dependency installs used to write package manifest, lockfile and node_modules directly into config directories (~/.config/opencode and every project .opencode), violating the XDG base directory spec (anomalyco#27786) and polluting project trees. Installs now target a per-directory store under ~/.local/share/opencode/deps/<hash>/, and config dirs only get a node_modules symlink pointing there so bare imports from local plugins keep resolving through parent-directory traversal. Installs fall back to the config dir when symlinks are unavailable (e.g. unprivileged Windows) or when a real node_modules directory already exists there. Also documents plans_directory, OPENCODE_DISABLE_PLUGIN_DEPS and the new install location in the website docs. Refs anomalyco#46189, closes anomalyco#27786
|
This PR doesn't fully meet our contributing guidelines and PR template. What needs to be fixed:
Please edit this PR description to address the above within 2 hours, or it will be automatically closed. If you believe this was flagged incorrectly, please let a maintainer know. |
|
Friendly ping for review - this is open since Aug 29 with green CI and still merges cleanly against current dev (no drift on the touched files). Since the last update, this PR now also closes #27786: per-directory dependency installs land in a store under Happy to split the relocation into its own PR if that helps review. |
|
This pull request has been automatically closed because it was not updated to meet our contributing guidelines within the 2-hour window. Feel free to open a new pull request that follows our guidelines. |
Auto-closed by the compliance bot after a body edit broke the template section header (renamed
### Issue for this PRto### Issues for this PR). Reopening was refused by the API (422).Superseded by #49502 (same branch
fix/opencode-pollution, same commits).