Repository navigation
v1.0.0 — Pure OpenCode V2 Plugin (OpenCode v2.3.0+)
1.0.0 — 2026-11-17
Breaking: Dropped OpenCode V1 support and @opencode-ai/plugin; Smart Questions is now a pure OpenCode V2 plugin targeting @opencode/plugin ^2.3.0 (opencode v2.3.0+).
- Pure OpenCode V2 Server Plugin (
src/index.ts): ExportPlugin.define({ id: 'opencode-smart-questions', setup }), registersession.hook('context')andsession.hook('prompt'), and subscribe tocontext.event.subscribe(session.synthetic,session.inbox.enqueued,form.replied,form.cancelled,session.deleted) with reverse-order disposal. - Pure OpenCode V2 TUI Plugin (
src/ui.tsx,scripts/emit-tui.mjs): ExportPlugin.define({ id: 'opencode-smart-questions.tui', setup }), rewrite@opencode/plugin/tuitoopentui:runtime-module:%40opencode%2Fplugin%2Ftui, fixcontext.data.session.message.list/synclookup, replace non-existentmessage.createdwith typed V2 events, extractSessionInfo.agentinresolveAgentName, enforce draft lockfile /canUseDraftCoordinationchecks infire(), and add in-flight async race guards. - Handoff & Protocol Fixes (
src/handoff.ts): Prevent Smart Questions' own synthetic remediation messages (metadata['opencode-smart-questions'] === true) from resetting active Guardian handoffs inextractCurrentTurnGuardianHandoff, and supportSessionInboxItempayloads. - Verification: 131/131 unit & regression tests, 7/7 sandbox scenarios, and 8/8 live OpenCode
v2.3.0host acceptance scenarios pass (npm run test:all).