OpenCode v1.2.9: MCP Attachments & Performance Fixes

OpenCode v1.2.9 adds missing MCP attachment fields, swaps to native structuredClone for performance gains, and fixes Desktop UI issues.

OpenCode v1.2.9: MCP Attachments & Performance Fixes

TL;DR

  • MCP tool attachments now include missing id, sessionID, and messageID fields
  • Replaced remeda clone with native structuredClone for better TUI performance
  • Fixed settings header mask in Desktop and removed unnecessary deep clones from core

New

  • MCP tool attachment fields — Added missing id, sessionID, and messageID to MCP tool attachments for proper context tracking

Fixed

  • TUI performance — Replaced remeda's clone with native structuredClone for better performance and native browser support
  • Session loop cloning — Removed unnecessary deep clones from session loop and LLM stream to reduce overhead
  • Desktop settings header — Restored settings header mask in Desktop UI
  • LLM test assertion — Removed User-Agent header assertion from LLM test to fix failing test

Update with: npm install opencode@1.2.9

Source: OpenCode