Change8

v1.1.1

OpenCode
11 features12 fixes24 improvementsclicoredesktopmcpproviderstui

Summary

This major release overhauls the permissions system, introducing granular control via object syntax and glob pattern matching for tools. It also updates SDK event structures for permission handling and deprecates several older configuration fields like `tools` and `maxSteps`. Several core improvements include sandbox support for git worktrees and new Kotlin LSP integration.

New Features

  • Introduced granular permission control using object syntax with glob pattern matching for tools like bash and edit.
  • Enabled setting blanket permissions using a simple string or setting all permissions at once via a single string value.
  • Added sandbox support for git worktrees to allow working in multiple directories per project.
  • Added Kotlin LSP integration for enhanced Kotlin development support.
  • Added reject message support to permission dialogs for clearer user feedback.
  • Added escape key handling to permission dialogs for improved keyboard navigation.
  • Added TUI session selection API endpoint for navigation.
  • Added variant support for minimal mode.
  • Added image preview support in the session viewer on Desktop.
  • Added /compact session command to compress conversation history on Desktop.
  • Added file context feature to the Desktop application.

Bug Fixes

  • Fixed dependency installation and git worktree branch creation issues.
  • Fixed an issue in the codebase (general fix).
  • Fixed Cloudflare AI Gateway SDK chat undefined error.
  • Fixed memory leaks in session management.
  • Fixed TUI permission tests for the new evaluate function signature.
  • Fixed system theme diff highlighting in the TUI.
  • Fixed Windows fallback for the "less" command in the session list.
  • Fixed import command regex to properly handle file paths.
  • Fixed stats command day calculation and time filtering.
  • Fixed scroll position restoration in the Desktop application.
  • Fixed editing projects in the desktop application.
  • Fixed handling of duplicate PR creation when an agent creates a PR.

Improvements

  • Deprecated the `tools` configuration, merging it into the `permission` field, with automatic backwards compatibility migration.
  • Updated SDK permission events (`PermissionNext` module) with a new structure, including renaming events and fields.
  • Added new endpoint `POST /permission/:requestID/reply` for responding to permission requests, deprecating the old endpoint.
  • Updated `GET /permission` to return `PermissionNext.Request[]` instead of `Permission.Info[]`.
  • Added CORS whitelist support via the `server.cors` configuration option.
  • Added Content-Type headers for proxied static assets on the server.
  • mDNS service name now includes the port for uniqueness.
  • Deprecated agent `maxSteps` field, instructing users to use `steps` instead.
  • Unknown agent properties are now collected into the `options` field.
  • Mode and plugin globs now only search top-level directories, simplifying configuration.
  • Improved plugin loading to handle builtin plugin failures gracefully.
  • Wrapped queued user messages with a reminder to stay on track.
  • Added managed git worktrees.
  • Upgraded OpenTUI to v0.1.68 using GPA.
  • Merged instructions arrays across config files instead of overriding them.
  • Made install dependencies non-blocking.
  • Used --no-cache flag when behind a proxy to prevent connection hangs.
  • Checked for context overflow mid-turn in finish-step.
  • Display error if an invalid agent is used in a command.
  • Made the LSP status icon muted when no LSPs are active in TUI.
  • Made the MCP status icon muted when no MCP servers are enabled in TUI.
  • Relaxed request timeouts on Desktop.
  • Improved application startup time on Desktop.
  • Improved desktop window resize handle.

Related Documentation

OpenCode Documentation

OpenCode v1.1.1 - What's New - Change8