Skip to content

Opencode: Rename plugin directory from 'plugin' to 'plugins' in code and tests#702

Merged
svarlamov merged 2 commits intomainfrom
devin/1773606895-opencode-plugins-rename
Mar 15, 2026
Merged

Opencode: Rename plugin directory from 'plugin' to 'plugins' in code and tests#702
svarlamov merged 2 commits intomainfrom
devin/1773606895-opencode-plugins-rename

Conversation

@svarlamov
Copy link
Member

@svarlamov svarlamov commented Mar 15, 2026

Summary

Fixes the OpenCode plugin directory path from .config/opencode/plugin/ to .config/opencode/plugins/, matching the OpenCode documentation.

Cherry-picks the original rename commit from PR #694 (by @prydt) and adds a follow-up commit that:

  • Updates test helpers (setup_test_env and test_opencode_plugin_handles_empty_directory) to use plugins/ consistently with production plugin_path()
  • Updates manual installation comments in agent-support/opencode/git-ai.ts to reference the correct plugins/ directory

Review & Testing Checklist for Human

  • Grep the codebase for any remaining references to the old plugin (singular) path in opencode-related code — there could be other files or docs referencing the old directory name
  • Confirm the OpenCode docs at https://opencode.ai/docs/plugins/ specify plugins/ as the correct directory name
  • Run git-ai install-hooks with OpenCode present and verify the plugin is written to ~/.config/opencode/plugins/git-ai.ts

Notes

  • All 7 existing opencode tests pass locally
  • Lint and format checks pass
  • Commit 1 preserves original author credit (pry); commit 2 adds the test and TS comment fixes

Link to Devin session: https://app.devin.ai/sessions/3b38fcf765784d999e2c9ad63ed7c443
Requested by: @svarlamov


Open with Devin

@devin-ai-integration
Copy link
Contributor

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

devin-ai-integration[bot]

This comment was marked as resolved.

prydt and others added 2 commits March 15, 2026 20:39
- Fix setup_test_env() and test_opencode_plugin_handles_empty_directory
  to use 'plugins' matching the production plugin_path()
- Update manual installation comments in git-ai.ts to reference the
  correct 'plugins' directory

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@devin-ai-integration devin-ai-integration bot force-pushed the devin/1773606895-opencode-plugins-rename branch from 6cc0cf3 to 5d1fde6 Compare March 15, 2026 20:40
@svarlamov svarlamov merged commit c212beb into main Mar 15, 2026
24 of 25 checks passed
@svarlamov svarlamov deleted the devin/1773606895-opencode-plugins-rename branch March 15, 2026 21:40
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.

2 participants