Skip to content

Add OpenCode native lifecycle plugin - #16

Merged
Anheledir merged 3 commits into
mainfrom
feature/opencode
Oct 24, 2026
Merged

Anheledir merged 3 commits into
mainfrom
feature/opencode

Conversation

@Anheledir

@Anheledir Anheledir commented Oct 24, 2026 •

Copy link
Copy Markdown
Owner

Adds agents install/status/uninstall opencode and 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.

@Anheledir
Anheledir merged commit 2446be2 into main Oct 24, 2026
11 checks passed
@Anheledir
Anheledir deleted the feature/opencode branch October 24, 2026 13:48
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.

1 participant