Skip to content

fix: support Graphify commands in OpenCode v2 - #1

Merged
safishamsi merged 1 commit into
Graphify-Labs:mainfrom
raihankhan-rk:codex/opencode-v2-runtime
Oct 10, 2026
Merged

safishamsi merged 1 commit into
Graphify-Labs:mainfrom
raihankhan-rk:codex/opencode-v2-runtime

Conversation

@raihankhan-rk

Copy link
Copy Markdown
Contributor

The v1.1.0 Git tag loads in OpenCode v2, but /graphify is missing because MCP configuration transforms run after plugin setup. Its fallback command executor also throws instead of submitting a prompt.

Register the command independently of MCP reconciliation and submit through ctx.session.prompt, preserving literal arguments, attachments, and delivery. Disabled or unrelated connections refuse execution. Preserve existing commands and v1 behavior, use current v2 types, and prepare version 1.1.1.

Validation:

  • 17 unit tests pass, including deferred MCP reconciliation, existing settings, disabled connections, and prompt forwarding.
  • npm run check, npm pack --dry-run, and git diff --check pass.
  • Actual @opencode/cli@2.0.26 isolated runtime: plugin active; /graphify registered; Graphify MCP reaches needs_auth; command invocation admits the expanded prompt with literal arguments and queue delivery; context hook adds Graphify guidance. A test-only guard stops before the model request. Authenticated tool execution was not tested.

Release: merge this PR, then publish graphify-opencode@1.1.1 from the authorized npm account. npm currently serves 1.0.0; the existing Git tag is 1.1.0. The OpenCode v2 ecosystem submission must wait for the fixed release. Related: anomalyco/opencode#54304 and anomalyco/opencode#54303.

@safishamsi
safishamsi merged commit 19df286 into Graphify-Labs:main Oct 10, 2026
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