OpenCode v1.14.40: Remote Config & Browser Client Fixes

OpenCode v1.14.40 adds remote config support and fixes CORS for browser clients, Mistral model variants, and 17 other bugs across core, TUI, and desktop.

OpenCode v1.14.40: Remote Config & Browser Client Fixes

TL;DR

  • Support for `.well-known/opencode` remote config files
  • Fixed CORS headers for browser clients on legacy endpoints
  • Restored Mistral Medium 3.5 variants and web terminal CSP allowances
  • 12 bug fixes across core, TUI, and desktop components

New

  • .well-known/opencode remote configs — Point to separate remote config files for cleaner infrastructure setup

Fixed

  • CORS headers for browser clients — Apply CORS before auth so legacy server endpoints are reachable from browsers
  • Assistant text in signed reasoning blocks — Preserve message content when replaying reasoning chains
  • Session not-found errors — Return consistent error responses for missing sessions
  • Network option runtime errors — Fix `serve`, `web`, and ACP options triggering re-entry errors
  • Warp flow workspace display — Only show connected workspaces and carry new directory into session after warping
  • Web terminal CSP allowances — Restore Content Security Policy rules for terminal functionality
  • Surrogate character handling — Sanitize invalid characters before provider transforms
  • Cloudflare AI Gateway provider options — Fix routing for OpenAI-compatible models
  • /new command workspace context — Use current workspace including local-project warps
  • Editor selection stability — Keep context stable until sent to prevent race conditions
  • server_is_overloaded errors — Automatically retry API errors instead of failing immediately
  • Mistral Medium 3.5 variants — Restore model selection for correct variant availability
  • Model selection refresh — Keep selected model when model data refreshes in TUI
  • Agent creation path — Fix `/agent create` to use correct `/agents` endpoint
  • Desktop clipboard writes — Allow trusted app windows to write without permission failures
  • Desktop console logging — Ignore broken pipe errors in production
  • Auto-update on quit — Stop installing updates when closing the app
  • Sentry noise reduction — Silence browser API reports in production
  • Sync bootstrap stability — Prevent startup failures from sync queries

Update with: npm install opencode@1.14.40 or check the release page for platform-specific instructions.

Source: OpenCode