You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] OpenCode plugin defines tool args as plain objects instead of Zod schemas #1947
The OpenCode plugin has a high-severity bug in its lifecycle component where tool arguments are defined as plain objects instead of Zod schemas, causing crashes when prompts are submitted. Specifically, the claude_mem_search tool incorrectly specifies its args as {query: {type: "string"}}, which is incompatible with OpenCode's Zod-based validation (schema._zod.def). Attempts to install the plugin via npx claude-mem install --ide opencode reproduce the issue. Verified against v12.1.1, this improper definition in src/integrations/opencode-plugin/index.ts persists and disrupts functionality. The bug was consolidated from prior issues (#1851 and #1845) during a backlog cleanup in April 2026.
Closed during the April 2026 backlog cleanup — mass backlog consolidation. If this is still an actionable bug you're seeing on v12.1.1 or later, please open a fresh ticket with a clean repro.
Activity
github-actions commentedon Apr 15, 2026
The OpenCode plugin has a high-severity bug in its lifecycle component where tool arguments are defined as plain objects instead of Zod schemas, causing crashes when prompts are submitted. Specifically, the
claude_mem_searchtool incorrectly specifies itsargsas{query: {type: "string"}}, which is incompatible with OpenCode's Zod-based validation (schema._zod.def). Attempts to install the plugin vianpx claude-mem install --ide opencodereproduce the issue. Verified against v12.1.1, this improper definition insrc/integrations/opencode-plugin/index.tspersists and disrupts functionality. The bug was consolidated from prior issues (#1851 and #1845) during a backlog cleanup in April 2026.thedotmack commentedon Apr 15, 2026
Closed during the April 2026 backlog cleanup — mass backlog consolidation. If this is still an actionable bug you're seeing on v12.1.1 or later, please open a fresh ticket with a clean repro.
thedotmack commentedon Apr 15, 2026
Reopened — was accidentally closed during backlog cleanup script bug. This is a valid consolidated issue, not a duplicate.
fix(plugin-lifecycle): OpenCode Zod schemas, OpenClaw isolation, sess…
fix(opencode-plugin): use Zod schemas for tool args (thedotmack#1947)