Skip to content

v0.15.0 — Pure OpenCode v2.3.0 Architecture (End of V1 Support)

Choose a tag to compare

@huseyincig huseyincig released this 16 Nov 22:49

Breaking Changes

  • End of OpenCode V1 Support: Removed OpenCode V1 (1.x / @opencode-ai/plugin / ./server / sidebar_content / V1 idle fallback) support. Users on OpenCode 1.x should pin opencode-guardian@0.14.0.
  • Pure OpenCode V2 (>=2.3.0) & OpenTUI (>=0.8.4) Alignment: Updated peerDependencies floors to @opencode/plugin >=2.3.0, @opentui/core >=0.8.4, @opentui/solid >=0.8.4, and solid-js >=1.9.0 with zero runtime dependencies.

What's New

  • Typed ./rpc Export (dist/intervention-rpc.js): Exposes guardian.interventions.get and guardian.interventions.clear via Rpc.define (@opencode/plugin/rpc) with sessionID maxLength: 256 validation and project-directory-scoped {} clearing.
  • shell.hook("create.before") Preflight Boundary: Enforces preflight checks at shell creation alongside tool.hook("execute.before") with LIFO hook rollback on setup failure.
  • session.fork & Background Subagent Isolation: Treats session.fork / session.forked as independent root sessions, honors top-level location.directory, and isolates background === true subagents in execute.after so sibling background subagents are never starved.
  • Security & Sanitizer Hardening: Preserves Uint8Array / ArrayBuffer views and non-plain object prototypes (Message class) in sanitizeObject / sanitizeMessages; inspects multi-stage commands via splitShellStages; fixes task/completion-gate "in progress" false-verified guard; preserves both editIntegrity and fingerprint in VerificationSnapshotStore; re-verifies verifiedStateDirs via lstatSync.
  • TUI Bun 1.4.4 Adaptive Fallback & RPC Race Fixes: Fixed dist/tui.js fallback to ./tui-standalone.js in Bun 1.4.4 without ResolveMessage crashes, fixed GuardianSidebar reactive props.sessionID updates, subscribed to session.moved, and added per-session generation gating for 500ms RPC polls.

Verification

  • Unit & Regression Suite: 765 / 765 PASS (npm test)
  • Sandbox Scenarios: 18 / 18 PASS (node sandbox/comprehensive-test.mjs)
  • Security Benchmark: 17 / 17 PASS (tests/security-benchmark.test.mjs)
  • Live OpenCode v2.3.0 + Bun 1.4.4 + Packed .tgz Acceptance: 10 / 10 PASS (node sandbox/v2-live-acceptance.mjs)