Skip to content

fix(plugin): show config unchanged message when install is a no-op#22485

Open
bensantora wants to merge 2 commits intoanomalyco:devfrom
bensantora:fix/plugin-install-message
Open

fix(plugin): show config unchanged message when install is a no-op#22485
bensantora wants to merge 2 commits intoanomalyco:devfrom
bensantora:fix/plugin-install-message

Conversation

@bensantora
Copy link
Copy Markdown

@bensantora bensantora commented Apr 14, 2026

Issue for this PR

Closes #22452

Type of change

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

What does this PR do?

If I understood the issue correctly - if / when a plugin is already configured and you run plugin install without the flag ' --force' , the install process runs but nothing in the config actually changes. The code before fixing would always print "Installed" regardless. This fix will perform a check to see whether a config item was actually modified (i.e. mode is not no-op) and prints "Config unchanged (use --force to replace)" if nothing was changed.

How did you verify your code works?

I reviewed the code and applied the fix as described in the issue - works for me.

Screenshots / recordings

If this is a UI change, please include a screenshot or recording.

Checklist

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

If you do not follow this template your PR will be automatically rejected.

@github-actions github-actions bot added needs:compliance This means the issue will auto-close after 2 hours. and removed needs:compliance This means the issue will auto-close after 2 hours. labels Apr 14, 2026
@github-actions
Copy link
Copy Markdown
Contributor

Thanks for updating your PR! It now meets our contributing guidelines. 👍

@jumski
Copy link
Copy Markdown

jumski commented Apr 15, 2026

Seems like a good-enough solution!

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.

What is the reason opencode plugin <new-version> requires --force?

2 participants