---
title: "OpenCode v2.3.1 | Havoptic"
description: "OpenCode 2.3.1 is here, and the biggest change is that long-running shell commands no longer get killed when they time out; they move to the background and report back when finished. Compaction summar..."
image: "https://dev.havoptic.com/og-image.jpg"
---

# OpenCode v2.3.1

OpenCode v2.3.1 was released on November 18, 2026.

## Summary

OpenCode 2.3.1 is here, and the biggest change is that long-running shell commands no longer get killed when they time out; they move to the background and report back when finished. Compaction summaries are also now written in the background, so your next prompt won't stall w...

## Release Context

- This was the 213th OpenCode release of 2026 tracked by Havoptic.
- It shipped 1 day after [OpenCode v1.19.6](https://dev.havoptic.com/r/opencode-1.19.6) (November 17, 2026).

### Shipped around the same time

Within 3 days of this release, other AI coding tools also shipped:

- [Factory Droid v1.17.1](https://dev.havoptic.com/r/factory-droid-1.17.1) (November 21, 2026)
- [Factory Droid v1.17.0](https://dev.havoptic.com/r/factory-droid-1.17.0) (November 21, 2026)
- [Amp 2026.11.21](https://dev.havoptic.com/r/amp-puck-in-the-car) (November 21, 2026)
- [Grok Build v1.0.93](https://dev.havoptic.com/r/grok-build-1.0.93) (November 20, 2026)
- [Claude Code v2.1.330](https://dev.havoptic.com/r/claude-code-2.1.330) (November 20, 2026)

### Compare OpenCode

- [OpenCode vs Claude Code](https://dev.havoptic.com/compare/claude-code-vs-opencode)
- [OpenCode vs OpenAI Codex CLI](https://dev.havoptic.com/compare/openai-codex-vs-opencode)
- [OpenCode vs Cursor](https://dev.havoptic.com/compare/cursor-vs-opencode)
- [OpenCode vs Gemini CLI](https://dev.havoptic.com/compare/gemini-cli-vs-opencode)
- [OpenCode vs Kiro CLI](https://dev.havoptic.com/compare/kiro-vs-opencode)
- [OpenCode vs GitHub Copilot CLI](https://dev.havoptic.com/compare/github-copilot-vs-opencode)
- [OpenCode vs Devin Desktop](https://dev.havoptic.com/compare/opencode-vs-windsurf)
- [OpenCode vs Antigravity CLI](https://dev.havoptic.com/compare/antigravity-cli-vs-opencode)
- [OpenCode vs Grok Build](https://dev.havoptic.com/compare/grok-build-vs-opencode)
- [OpenCode vs Cline](https://dev.havoptic.com/compare/cline-vs-opencode)
- [OpenCode vs Zed](https://dev.havoptic.com/compare/opencode-vs-zed)
- [OpenCode vs Factory Droid](https://dev.havoptic.com/compare/factory-droid-vs-opencode)
- [OpenCode vs Devin](https://dev.havoptic.com/compare/devin-vs-opencode)
- [OpenCode vs Lovable](https://dev.havoptic.com/compare/lovable-vs-opencode)
- [OpenCode vs Amp](https://dev.havoptic.com/compare/amp-vs-opencode)
- [OpenCode vs GitHub Copilot in VS Code](https://dev.havoptic.com/compare/copilot-vscode-vs-opencode)
- [OpenCode vs Replit Agent](https://dev.havoptic.com/compare/opencode-vs-replit-agent)
- [OpenCode vs Bolt](https://dev.havoptic.com/compare/bolt-vs-opencode)
- [OpenCode vs v0](https://dev.havoptic.com/compare/opencode-vs-v0)

## Release Notes

Highlights - Timed-Out Shell Commands Keep Running: A shell command still running when its timeout expires now moves to the background instead of being killed, so long builds and test runs finish and report back. A foreground timeout: 0 now means the default 120 seconds. (63699) - Compaction Without the Wait: As a session nears automatic compaction, the summary is now written in the background, so your next prompt doesn't pause for it. Set compaction.background: false to turn it off; a background summary that ends up unused still costs tokens. (64290) - GPT 6.2 with ChatGPT Sign-In: GPT 6.2 Sol and GPT 6.2 Astra, plus their fast variants, now show up in the model picker when you sign in with ChatGPT. (64508) - Update Plugins from Settings: Open Settings › Extensions, click Check for updates, then Update on any plugin with a new version. (64511) - Comment on Selected Code: Selecting code in diff and file viewers now just selects it, so you can copy it, and an Add comment toolbar appears beside the selection. (64410) Core Improvements - Shell commands still running when their timeout expires now move to the background instead of being killed, in every build. The shelltimeoutbackground flag is gone; configs that still set it keep loading. A foreground timeout: 0 now uses the default 120 second timeout instead of waiting until the command exits. (63699) - Background compaction is now on by default: as a session nears automatic compaction, the summary is written in the background so the next prompt doesn't wait for it. Turn it off with compaction.background: false; a background summary that is never used still costs tokens. The experimental.backgroundcompaction setting is removed. (64290) - OpenCode again reads CLAUDE.md in any directory that has no AGENTS.md, and falls back to ~/.claude/CLAUDE.md when the global AGENTS.md is missing. This also applies to instructions found when the agent reads nested files. Set OPENCODEDISABLECLAUDECODE or OPENCODEDISABLECLAUDECODEPROMPT to skip every CLAUDE.md. (64474, 64533) - Added GPT 6.2 Sol and GPT 6.2 Astra, plus their fast variants, to the ChatGPT model list. (64508) - websearch now returns a flat list of results, each with its url, title, content and published date. (64471) - Code Mode and plugins get a simpler structured result from read: text (with offset, lineCount and next), directory (entry names) or media (a URI instead of base64). What the model sees is unchanged. (64361) - Code Mode programs can use Node's Buffer for encoding and decoding bytes. (64365) - In Code Mode, search("issues") now works as shorthand for search({ query: "issues" }). (64347) - Code Mode tool summaries in the catalog can now be up to 500 characters instead of 120, so the model sees more of each tool's description. (64341) - The glob and grep tools now report a malformed filename glob (for example ) as an error that names the parameter to fix, instead of returning no results. ([63960) - Server requests that crash now return a 500 with a readable JSON UnknownError body instead of an empty one. Storage problems name the cause (for example "Storage is full" or "Storage is read-only"); other crashes include a ref you can find in the server log. (64022) - The shell tool description now tells the model that its session ID is in the OPENCODESESSIONID environment variable. (63718) - Experimental schedules are now automations, behind the automations flag (the old schedules flag still works). An automation runs on a time, an interval, a cron or a pushed MCP event, and either sends a prompt (to the creating session, another session or a new subagent) or runs a Code Mode program that decides whether to send one. Use /automation or the automation tools. Active or paused plain prompt schedules carry over; schedules with a condition or run limit, and finished ones, are dropped. (64160) Bug fixes - Fixed finished shell commands leaving zombie processes under opencode-pty. The process daemon now cleans each command up when it exits. Background processes started by a successful command (cmd &) keep running, and a failed command's leftovers are stopped. (64266, 64251) - Fixed ChatGPT and OpenAI subscription logins losing their sharing-limit safeguards and context caps when a token refresh failed. (64470) - Fixed Claude Agent models falling back to a 200K context window when Claude Code adds or renames a model. Thanks @Tarquinen. (64107) - Fixed requests being rejected after switching models mid-session on OpenAI-compatible providers. Models that declare a different reasoning field (such as reasoningcontent) no longer receive reasoning...

[View original release](https://github.com/anomalyco/opencode/releases/tag/v2.3.1)

## Other Recent OpenCode Releases

- [v2.4.2](https://dev.havoptic.com/r/opencode-2.4.2) (November 26, 2026)
- [v2.4.1](https://dev.havoptic.com/r/opencode-2.4.1) (November 23, 2026)
- [v2.4.0](https://dev.havoptic.com/r/opencode-2.4.0) (November 23, 2026)
- [v2.3.0](https://dev.havoptic.com/r/opencode-2.3.0) (November 13, 2026)
- [v2.2.7](https://dev.havoptic.com/r/opencode-2.2.7) (November 10, 2026)

Upgrading from v2.3.1? [See all 4 releases since](https://dev.havoptic.com/r/opencode/diff?from=2.3.1&to=latest).

[All OpenCode releases](https://dev.havoptic.com/tools/opencode) · [All AI coding tool releases on Havoptic](https://dev.havoptic.com/)

```json
{
  "@context": "https://schema.org",
  "@type": "WebSite",
  "name": "Havoptic",
  "alternateName": "Havoptic AI Tool Releases",
  "url": "https://www.havoptic.com/",
  "description": "Havoptic tracks every release of 20 AI coding tools, from Claude Code and Codex CLI to Cursor and Copilot CLI, and explains each one in plain English within hours of shipping.",
  "publisher": {
    "@type": "Organization",
    "name": "Havoptic",
    "url": "https://www.havoptic.com/"
  },
  "potentialAction": {
    "@type": "SearchAction",
    "target": "https://www.havoptic.com/?q={search_term_string}",
    "query-input": "required name=search_term_string"
  }
}
```

```json
{
  "@context": "https://schema.org",
  "@type": "SoftwareApplication",
  "name": "Havoptic",
  "applicationCategory": "DeveloperApplication",
  "operatingSystem": "Web",
  "offers": {
    "@type": "Offer",
    "price": "0",
    "priceCurrency": "USD"
  },
  "description": "Havoptic tracks every release of 20 AI coding tools, from Claude Code and Codex CLI to Cursor and Copilot CLI, and explains each one in plain English within hours of shipping."
}
```

```json
{
  "@context": "https://schema.org",
  "@type": "Organization",
  "@id": "https://www.havoptic.com/#organization",
  "name": "Havoptic",
  "url": "https://www.havoptic.com/",
  "logo": {
    "@type": "ImageObject",
    "url": "https://www.havoptic.com/og-image.jpg",
    "width": 1200,
    "height": 630
  },
  "description": "Release tracking, plain-English release notes and side-by-side comparisons for AI coding tools, updated hourly.",
  "foundingDate": "2025",
  "sameAs": [
    "https://github.com/scotthavird/havoptic.com",
    "https://x.com/havoptic"
  ],
  "founder": {
    "@id": "https://www.havoptic.com/authors/scott-havird#person"
  }
}
```

```json
{
  "@context": "https://schema.org",
  "@type": "DataCatalog",
  "@id": "https://www.havoptic.com/#data-catalog",
  "name": "Havoptic AI Coding Tool Release Data",
  "description": "Every release of 20 AI coding tools, dated and explained in plain English within hours of shipping, plus feature comparison matrices, free to query through an API, an MCP server, feeds and a CLI. Covers Claude Code, OpenAI Codex CLI, Cursor, Gemini CLI, Kiro, GitHub Copilot CLI, Devin Desktop, Antigravity CLI, Grok Build, Cline, OpenCode, Zed, Factory Droid, Devin (cloud agent), Lovable, Amp, GitHub Copilot in VS Code, Replit Agent, Bolt, and v0.",
  "url": "https://www.havoptic.com/api-docs",
  "publisher": {
    "@type": "Organization",
    "name": "Havoptic",
    "url": "https://www.havoptic.com/"
  },
  "dataset": [
    {
      "@type": "Dataset",
      "@id": "https://www.havoptic.com/data/releases.json",
      "name": "AI Coding Tool Releases",
      "description": "Complete release history for Claude Code, OpenAI Codex CLI, Cursor, Gemini CLI, Kiro, GitHub Copilot CLI, Devin Desktop, Antigravity CLI, Grok Build, Cline, OpenCode, Zed, Factory Droid, Devin (cloud agent), Lovable, Amp, GitHub Copilot in VS Code, Replit Agent, Bolt, and v0 — including version numbers, release dates, plain-English summaries, and full changelogs. Updated hourly.",
      "url": "https://www.havoptic.com/data/releases.json",
      "distribution": {
        "@type": "DataDownload",
        "encodingFormat": "application/json",
        "contentUrl": "https://www.havoptic.com/data/releases.json"
      },
      "temporalCoverage": "2025/..",
      "creator": {
        "@id": "https://www.havoptic.com/#organization"
      },
      "maintainer": {
        "@type": "Organization",
        "name": "Havoptic",
        "url": "https://www.havoptic.com/"
      },
      "isAccessibleForFree": true,
      "license": "https://creativecommons.org/licenses/by/4.0/",
      "keywords": [
        "Claude Code",
        "OpenAI Codex CLI",
        "Cursor",
        "Gemini CLI",
        "Kiro",
        "GitHub Copilot CLI",
        "Devin Desktop",
        "Windsurf",
        "Antigravity CLI",
        "Grok Build",
        "Cline",
        "OpenCode",
        "Zed",
        "Factory Droid",
        "Devin (cloud agent)",
        "Lovable",
        "Amp",
        "GitHub Copilot in VS Code",
        "Replit Agent",
        "Bolt",
        "v0",
        "AI coding tools",
        "release history",
        "changelogs"
      ]
    },
    {
      "@type": "Dataset",
      "@id": "https://www.havoptic.com/data/feature-matrix.json",
      "name": "AI Coding Tool Feature Matrix",
      "description": "Side-by-side feature comparison data for 20 AI coding tools across categories: Core Editing, Terminal Integration, MCP Support, IDE Integrations, and Agentic Features.",
      "url": "https://www.havoptic.com/data/feature-matrix.json",
      "distribution": {
        "@type": "DataDownload",
        "encodingFormat": "application/json",
        "contentUrl": "https://www.havoptic.com/data/feature-matrix.json"
      },
      "creator": {
        "@id": "https://www.havoptic.com/#organization"
      },
      "maintainer": {
        "@type": "Organization",
        "name": "Havoptic",
        "url": "https://www.havoptic.com/"
      },
      "isAccessibleForFree": true,
      "license": "https://creativecommons.org/licenses/by/4.0/",
      "keywords": [
        "AI coding tools",
        "feature comparison",
        "Claude Code",
        "Cursor",
        "GitHub Copilot",
        "Gemini CLI",
        "Devin Desktop",
        "Windsurf"
      ]
    }
  ]
}
```

```json
{
  "@context": "https://schema.org",
  "@type": "BreadcrumbList",
  "itemListElement": [
    {
      "@type": "ListItem",
      "position": 1,
      "name": "Home",
      "item": "https://dev.havoptic.com"
    },
    {
      "@type": "ListItem",
      "position": 2,
      "name": "OpenCode",
      "item": "https://dev.havoptic.com/tools/opencode"
    },
    {
      "@type": "ListItem",
      "position": 3,
      "name": "v2.3.1",
      "item": "https://dev.havoptic.com/r/opencode-2.3.1"
    }
  ]
}
```

```json
{
  "@context": "https://schema.org",
  "@type": "TechArticle",
  "headline": "OpenCode v2.3.1",
  "datePublished": "2026-11-18T00:17:57.000Z",
  "dateModified": "2026-11-18T00:17:57.000Z",
  "url": "https://dev.havoptic.com/r/opencode-2.3.1",
  "image": "https://dev.havoptic.com/og-image.jpg",
  "description": "OpenCode 2.3.1 is here, and the biggest change is that long-running shell commands no longer get killed when they time out; they move to the background and report back when finished. Compaction summar...",
  "isBasedOn": "https://github.com/anomalyco/opencode/releases/tag/v2.3.1",
  "about": {
    "@type": "SoftwareApplication",
    "name": "OpenCode",
    "softwareVersion": "2.3.1",
    "applicationCategory": "DeveloperApplication",
    "url": "https://github.com/anomalyco/opencode/releases/tag/v2.3.1",
    "releaseNotes": "Highlights - Timed-Out Shell Commands Keep Running: A shell command still running when its timeout expires now moves to the background instead of being killed, so long builds and test runs finish and report back. A foreground timeout: 0 now means the default 120 seconds. (63699) - Compaction Without the Wait: As a session nears automatic compaction, the summary is now written in the background, so your next prompt doesn't pause for it. Set compaction.background: false to turn it off; a background summary that ends up unused still costs tokens. (64290) - GPT 6.2 with ChatGPT Sign-In: GPT 6.2 Sol and GPT 6.2 Astra, plus their fast variants, now show up in the model picker when you sign in with ChatGPT. (64508) - Update Plugins from Settings: Open Settings › Extensions, click Check for updates, then Update on any plugin with a new version. (64511) - Comment on Selected Code: Selecting code in diff and file viewers now just selects it, so you can copy it, and an Add comment toolbar appears beside the selection. (64410) Core Improvements - Shell commands still running when their timeout expires now move to the background instead of being killed, in every build. The shelltimeoutbackground flag is gone; configs that still set it keep loading. A foreground timeout: 0 now uses the default 120 second timeout instead of waiting until the command exits. (63699) - Background compaction is now on by default: as a session nears automatic compaction, the summary is written in the background so the next prompt doesn't wait for it. Turn it off with compaction.background: false; a background summary that is never used still costs tokens. The experimental.backgroundcompaction setting is removed. (64290) - OpenCode again reads CLAUDE.md in any directory that has no AGENTS.md, and falls back to ~/.claude/CLAUDE.md when the global AGENTS.md is missing. This also applies to instructions found when the agent reads nested files. Set OPENCODEDISABLECLAUDECODE or OPENCODEDISABLECLAUDECODEPROMP"
  },
  "articleBody": "Highlights - Timed-Out Shell Commands Keep Running: A shell command still running when its timeout expires now moves to the background instead of being killed, so long builds and test runs finish and report back. A foreground timeout: 0 now means the default 120 seconds. (63699) - Compaction Without the Wait: As a session nears automatic compaction, the summary is now written in the background, so your next prompt doesn't pause for it. Set compaction.background: false to turn it off; a background summary that ends up unused still costs tokens. (64290) - GPT 6.2 with ChatGPT Sign-In: GPT 6.2 Sol and GPT 6.2 Astra, plus their fast variants, now show up in the model picker when you sign in with ChatGPT. (64508) - Update Plugins from Settings: Open Settings › Extensions, click Check for updates, then Update on any plugin with a new version. (64511) - Comment on Selected Code: Selecting code in diff and file viewers now just selects it, so you can copy it, and an Add comment toolbar appears beside the selection. (64410) Core Improvements - Shell commands still running when their timeout expires now move to the background instead of being killed, in every build. The shelltimeoutbackground flag is gone; configs that still set it keep loading. A foreground timeout: 0 now uses the default 120 second timeout instead of waiting until the command exits. (63699) - Background compaction is now on by default: as a session nears automatic compaction, the summary is written in the background so the next prompt doesn't wait for it. Turn it off with compaction.background: false; a background summary that is never used still costs tokens. The experimental.backgroundcompaction setting is removed. (64290) - OpenCode again reads CLAUDE.md in any directory that has no AGENTS.md, and falls back to ~/.claude/CLAUDE.md when the global AGENTS.md is missing. This also applies to instructions found when the agent reads nested files. Set OPENCODEDISABLECLAUDECODE or OPENCODEDISABLECLAUDECODEPROMPT to skip every CLAUDE.md. (64474, 64533) - Added GPT 6.2 Sol and GPT 6.2 Astra, plus their fast variants, to the ChatGPT model list. (64508) - websearch now returns a flat list of results, each with its url, title, content and published date. (64471) - Code Mode and plugins get a simpler structured result from read: text (with offset, lineCount and next), directory (entry names) or media (a URI instead of base64). What the model sees is unchanged. (64361) - Code Mode programs can use Node's Buffer for encoding and decoding bytes. (64365) - In Code Mode, search(\"issues\") now works as shorthand for search({ query: \"issues\" }). (64347) - Code Mode tool summaries in the catalog can now be up to 500 characters instead of 120, so the model sees more of each tool's description. (64341) - The glob and grep tools now report a malformed filename glob (for example ) as an error that names the parameter to fix, instead of returning no results. ([63960) - Server requests that crash now return a 500 with a readable JSON UnknownError body instead of an empty one. Storage problems name the cause (for example \"Storage is full\" or \"Storage is read-only\"); other crashes include a ref you can find in the server log. (64022) - The shell tool description now tells the model that its session ID is in the OPENCODESESSIONID environment variable. (63718) - Experimental schedules are now automations, behind the automations flag (the old schedules flag still works). An automation runs on a time, an interval, a cron or a pushed MCP event, and either sends a prompt (to the creating session, another session or a new subagent) or runs a Code Mode program that decides whether to send one. Use /automation or the automation tools. Active or paused plain prompt schedules carry over; schedules with a condition or run limit, and finished ones, are dropped. (64160) Bug fixes - Fixed finished shell commands leaving zombie processes under opencode-pty. The process daemon now cleans each command up when it exits. Background processes started by a successful command (cmd &) keep running, and a failed command's leftovers are stopped. (64266, 64251) - Fixed ChatGPT and OpenAI subscription logins losing their sharing-limit safeguards and context caps when a token refresh failed. (64470) - Fixed Claude Agent models falling back to a 200K context window when Claude Code adds or renames a model. Thanks @Tarquinen. (64107) - Fixed requests being rejected after switching models mid-session on OpenAI-compatible providers. Models that declare a different reasoning field (such as reasoningcontent) no longer receive reasoning...",
  "author": {
    "@id": "https://dev.havoptic.com/#organization"
  },
  "publisher": {
    "@id": "https://dev.havoptic.com/#organization"
  },
  "mainEntityOfPage": {
    "@type": "WebPage",
    "@id": "https://dev.havoptic.com/r/opencode-2.3.1"
  },
  "speakable": {
    "@type": "SpeakableSpecification",
    "cssSelector": [
      "h1",
      "#ssr-content p"
    ]
  }
}
```
