Skip to content

Conversation

@eXamadeus
Copy link
Contributor

@eXamadeus eXamadeus commented Feb 1, 2026

What does this PR do?

Fixes #7147
Related to #8380 (@aryasaatvik helped uncover the issue that led to a split)

This PR fixes a long standing issue with the plugin trigger types not being aligned. They are now FULLY correct and resilient to future divergence.

How did you verify your code works?

Typescript, baby!

Current State

Here's a great example of how this is currently broken, mess up a plugin hook type and see nothing happen:

opencode – pluginsrcindex ts 2026-01-31 at 11 54 45 PM

After This PR

Everything is happy with the correct plugin trigger types!

opencode – srcpermissionindex ts 2026-01-31 at 11 11 22 PM

And if we break them, incorrect types will propagate errors as the good Anders Hejlsberg intended!

opencode – srcpermissionindex ts 2026-01-31 at 11 11 05 PM

@github-actions
Copy link
Contributor

github-actions bot commented Feb 1, 2026

The following comment was made by an LLM, it may be inaccurate:

No duplicate PRs found

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes in here are technically all bug fixes. If they break downstream code, it's actually just catching bugs for them.

It's the unfortunate side effect of correcting misleading types.

eXamadeus added a commit to eXamadeus/opencode that referenced this pull request Feb 1, 2026
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 package not using latest SDK types

1 participant