Bug Fixes
-
OpenCode plugins were incompatible with OpenCode 1.2.x. Users saw OpenCode crash on startup with:
Root cause: we shipped plugins as
export default { id, server: async (...) => hooks }— an object. OpenCode 1.2.x’s plugin loader (packages/opencode/src/plugin/index.ts) does this:It iterates every module export (includingdefault) and calls each one as a function. Our object export was never unwrapped — the runtime has no special case for aserver:property, so{ id, server }(input)threwfn is not a function. Fixed across all 3 plugins (inject-subagent-context.js,inject-workflow-state.js,session-start.js) by switching to the current factory-function shape:This matches the documentedPlugintype in@opencode-ai/plugin:(input: PluginInput) => Promise<Hooks>. Impact: any Trellis version (including 0.4.x stable) configured for OpenCode was affected as soon as OpenCode updated to 1.2.x. Upgrade to@mindfoldhq/trellis@betato restore startup.
Upgrade
update.skip is respected. The 3 plugin files auto-update if you haven’t modified them; standard Modified by you confirm prompt with diff if you did.
Install: npm install -g @mindfoldhq/trellis@beta