Repository navigation
Add OpenCode native lifecycle plugin - #16
Merged
Merged
Conversation
2 of 8 tasks
This was referenced Oct 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
agents install/status/uninstall opencodeand automatic menu discovery. The managed local JavaScript plugin forwards only session identity and status to the shared host using silent, shell-free, bounded child processes. It supports working/retry, permission/question waiting, replies, errors and idle/deletion, with per-session pending request tracking and serialized delivery. Idle is deliberately not inferred as Done because cancellation uses the same signal; errors survive a subsequent idle until activity resumes or the session is deleted.Installation respects OPENCODE_CONFIG_DIR/XDG_CONFIG_HOME, supports explicit project plugin paths and dry-run JSON, refuses unowned or modified files, and reuses hash-based install/removal ownership. Existing JSON provider installations are preserved.
Validation at eacfc42: all 114 .NET tests and generated plugin-to-host smoke checks pass on Windows, Linux and macOS in native CI. All three platform builds and packaging jobs pass. CodeQL C#/Python/Actions, combined alert result, dependency review and documentation checks all pass. Six documentation-tooling tests also pass locally. Generated JavaScript execution additionally checks quoted/unicode executable paths, concurrent ordering, payload minimization and missing-executable tolerance. Local host execution is blocked by workspace socket permissions; native CI supplies that evidence.
Official OpenCode plugin reference and v1.2.27 event schemas were checked. Actual installed OpenCode acceptance remains required, especially plugin loading, restart and permission/question/error/cancel transitions. No agent permissions or trust policies are changed. Documentation describes installation/removal and conservative idle semantics.
Related: #9.