---
title: "OpenCode v2.4.2 | Havoptic"
description: "OpenCode 2.4.2 is out, with a new system prompt for GPT-6.2 models and a fix that lists OpenCode Go first in the model picker after you connect. You can also now press Esc to stop a response before an..."
image: "https://dev.havoptic.com/og-image.jpg"
---

# OpenCode v2.4.2

OpenCode v2.4.2 was released on November 26, 2026.

## Summary

OpenCode 2.4.2 is out, with a new system prompt for GPT-6.2 models and a fix that lists OpenCode Go first in the model picker after you connect. You can also now press Esc to stop a response before anything has been written and get your last message back in the composer to edi...

## Release Context

- This was the 217th OpenCode release of 2026 tracked by Havoptic.
- It shipped 2 days after [OpenCode v2.4.1](https://dev.havoptic.com/r/opencode-2.4.1) (November 23, 2026).

### Shipped around the same time

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

- [GitHub Copilot CLI v1.0.117](https://dev.havoptic.com/r/github-copilot-v1.0.117) (November 27, 2026)
- [Cline v4.1.28](https://dev.havoptic.com/r/cline-4.1.28) (November 26, 2026)
- [Antigravity CLI v1.5.18](https://dev.havoptic.com/r/antigravity-cli-1.5.18) (November 26, 2026)
- [Devin 2026.11.26](https://dev.havoptic.com/r/devin-2026-11-26) (November 26, 2026)
- [Lovable 2026.11.26](https://dev.havoptic.com/r/lovable-2026-11-26) (November 26, 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 - GPT-6.2 System Prompt: GPT-6.2 Sol and Astra, and the gpt-latest aliases, use a system prompt written for GPT-6.2. (66297) - OpenCode Go Onboarding Fix: After you connect OpenCode, the model picker lists OpenCode Go first. (66363) - Esc Takes Back Your Last Message: If the composer is empty, stopping a response with Esc before the model has written anything or called a tool removes your message and puts it back in the composer, images included, so you can edit it and send again. (65505) Upgrade notes - "Always allow" for a web fetch allows that site only. It used to allow every URL. Approvals saved by earlier versions stay as they were. (66000) - Automations keep running after a failed run. A failed run is recorded and the next one runs on schedule. Automations still pause when the session that created them or their directory is gone, or when their setup is no longer valid. A shell command in an automation's code that runs past its timeout is now stopped and fails the call instead of moving to the background. (66422, 65626) - Sending to an archived session unarchives it. This applies to messages, commands, skills and shell commands, including ones sent through the API. (66348) - Plan mode's rules are in the system prompt. Sessions already in Plan mode get the rules once more after upgrading. (63669) Core Improvements - Added a system prompt for GPT-6.2. (66297) - generateimage and generatevideo run inside Code Mode instead of as top-level tools, so their definitions no longer add about 700 tokens to every request. (66465) - Moving a session also moves its subagents. (66215) - The report skill checks the docs, searches for duplicate issues and includes the relevant log lines. (66290) - Cost estimates for service tiers that list their own prices use those prices, including their long-context rates. (65861, 65984) Bug fixes - Fixed sign-in to MCP servers whose configured URL has a query string, such as the AWS MCP Server. (66036) - Fixed Plan mode re-adding its reminder after every compaction, which could keep a session running in a loop. (63669) - Fixed tools staying visible to the model when a blanket deny was followed by narrower denies. (65899) - Fixed PDFs with bytes before the %PDF- header not being read as PDFs. (65967) - Fixed branches whose names end in /HEAD missing from the branch list. (65904) - Fixed files added by a patch losing a trailing blank line. (66378) - Fixed moving a session to a ~\ path on Windows. (66269) - Fixed OpenAI custom tool calls failing as malformed on providers that end them only with the completed response. (65849) TUI Improvements - The model picker stays responsive with large catalogs, such as OpenRouter's. (66370) - The goal dialog scrolls when the goal is long. (65906) - Updated OpenTUI to 0.9.9. (65919) Bug fixes - Fixed /models showing only free models when the TUI opened a session in another directory. (66424) - Fixed type-to-filter in Message Actions. (65903) - Fixed removing theme from config not switching back to the default theme. (65925) - Fixed quick successive settings changes overwriting each other. (65761) - Fixed the session list losing the selected row after a deletion. (65855) Desktop Improvements - On macOS and Windows, desktop updates download only the parts of the app that changed instead of the full installer again. (66042) - Enter in the question dock moves to the next question and submits on the last one. Set Submit question answers with to Cmd/Ctrl+Enter in Settings → Preferences to keep the previous behavior. (66169) - To move the file tree to the right in the Files and Review panels, right-click its header and choose Sidebar position → Right. (66012) - /rename with no title generates a new title, and /rename <title> sets one. (66396) - Search sessions also finds archived sessions and shows them dimmed. (66356) - In the Inbox sidebar, you can pin sessions, open archived sessions in a collapsible section and choose where working sessions appear. Archived sessions waiting o...

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

## Other Recent OpenCode Releases

- [v2.4.0](https://dev.havoptic.com/r/opencode-2.4.0) (November 23, 2026)
- [v2.3.2](https://dev.havoptic.com/r/opencode-2.3.2) (November 18, 2026)
- [v2.3.1](https://dev.havoptic.com/r/opencode-2.3.1) (November 18, 2026)
- [v1.19.6](https://dev.havoptic.com/r/opencode-1.19.6) (November 17, 2026)
- [v2.3.0](https://dev.havoptic.com/r/opencode-2.3.0) (November 13, 2026)

[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.4.2",
      "item": "https://dev.havoptic.com/r/opencode-2.4.2"
    }
  ]
}
```

```json
{
  "@context": "https://schema.org",
  "@type": "TechArticle",
  "headline": "OpenCode v2.4.2",
  "datePublished": "2026-11-26T00:59:05.000Z",
  "dateModified": "2026-11-26T00:59:05.000Z",
  "url": "https://dev.havoptic.com/r/opencode-2.4.2",
  "image": "https://dev.havoptic.com/og-image.jpg",
  "description": "OpenCode 2.4.2 is out, with a new system prompt for GPT-6.2 models and a fix that lists OpenCode Go first in the model picker after you connect. You can also now press Esc to stop a response before an...",
  "isBasedOn": "https://github.com/anomalyco/opencode/releases/tag/v2.4.2",
  "about": {
    "@type": "SoftwareApplication",
    "name": "OpenCode",
    "softwareVersion": "2.4.2",
    "applicationCategory": "DeveloperApplication",
    "url": "https://github.com/anomalyco/opencode/releases/tag/v2.4.2",
    "releaseNotes": "Highlights - GPT-6.2 System Prompt: GPT-6.2 Sol and Astra, and the gpt-latest aliases, use a system prompt written for GPT-6.2. (66297) - OpenCode Go Onboarding Fix: After you connect OpenCode, the model picker lists OpenCode Go first. (66363) - Esc Takes Back Your Last Message: If the composer is empty, stopping a response with Esc before the model has written anything or called a tool removes your message and puts it back in the composer, images included, so you can edit it and send again. (65505) Upgrade notes - \"Always allow\" for a web fetch allows that site only. It used to allow every URL. Approvals saved by earlier versions stay as they were. (66000) - Automations keep running after a failed run. A failed run is recorded and the next one runs on schedule. Automations still pause when the session that created them or their directory is gone, or when their setup is no longer valid. A shell command in an automation's code that runs past its timeout is now stopped and fails the call instead of moving to the background. (66422, 65626) - Sending to an archived session unarchives it. This applies to messages, commands, skills and shell commands, including ones sent through the API. (66348) - Plan mode's rules are in the system prompt. Sessions already in Plan mode get the rules once more after upgrading. (63669) Core Improvements - Added a system prompt for GPT-6.2. (66297) - generateimage and generatevideo run inside Code Mode instead of as top-level tools, so their definitions no longer add about 700 tokens to every request. (66465) - Moving a session also moves its subagents. (66215) - The report skill checks the docs, searches for duplicate issues and includes the relevant log lines. (66290) - Cost estimates for service tiers that list their own prices use those prices, including their long-context rates. (65861, 65984) Bug fixes - Fixed sign-in to MCP servers whose configured URL has a query string, such as the AWS MCP Server. (66036) - Fixed Plan mode re-addin"
  },
  "articleBody": "Highlights - GPT-6.2 System Prompt: GPT-6.2 Sol and Astra, and the gpt-latest aliases, use a system prompt written for GPT-6.2. (66297) - OpenCode Go Onboarding Fix: After you connect OpenCode, the model picker lists OpenCode Go first. (66363) - Esc Takes Back Your Last Message: If the composer is empty, stopping a response with Esc before the model has written anything or called a tool removes your message and puts it back in the composer, images included, so you can edit it and send again. (65505) Upgrade notes - \"Always allow\" for a web fetch allows that site only. It used to allow every URL. Approvals saved by earlier versions stay as they were. (66000) - Automations keep running after a failed run. A failed run is recorded and the next one runs on schedule. Automations still pause when the session that created them or their directory is gone, or when their setup is no longer valid. A shell command in an automation's code that runs past its timeout is now stopped and fails the call instead of moving to the background. (66422, 65626) - Sending to an archived session unarchives it. This applies to messages, commands, skills and shell commands, including ones sent through the API. (66348) - Plan mode's rules are in the system prompt. Sessions already in Plan mode get the rules once more after upgrading. (63669) Core Improvements - Added a system prompt for GPT-6.2. (66297) - generateimage and generatevideo run inside Code Mode instead of as top-level tools, so their definitions no longer add about 700 tokens to every request. (66465) - Moving a session also moves its subagents. (66215) - The report skill checks the docs, searches for duplicate issues and includes the relevant log lines. (66290) - Cost estimates for service tiers that list their own prices use those prices, including their long-context rates. (65861, 65984) Bug fixes - Fixed sign-in to MCP servers whose configured URL has a query string, such as the AWS MCP Server. (66036) - Fixed Plan mode re-adding its reminder after every compaction, which could keep a session running in a loop. (63669) - Fixed tools staying visible to the model when a blanket deny was followed by narrower denies. (65899) - Fixed PDFs with bytes before the %PDF- header not being read as PDFs. (65967) - Fixed branches whose names end in /HEAD missing from the branch list. (65904) - Fixed files added by a patch losing a trailing blank line. (66378) - Fixed moving a session to a ~\\ path on Windows. (66269) - Fixed OpenAI custom tool calls failing as malformed on providers that end them only with the completed response. (65849) TUI Improvements - The model picker stays responsive with large catalogs, such as OpenRouter's. (66370) - The goal dialog scrolls when the goal is long. (65906) - Updated OpenTUI to 0.9.9. (65919) Bug fixes - Fixed /models showing only free models when the TUI opened a session in another directory. (66424) - Fixed type-to-filter in Message Actions. (65903) - Fixed removing theme from config not switching back to the default theme. (65925) - Fixed quick successive settings changes overwriting each other. (65761) - Fixed the session list losing the selected row after a deletion. (65855) Desktop Improvements - On macOS and Windows, desktop updates download only the parts of the app that changed instead of the full installer again. (66042) - Enter in the question dock moves to the next question and submits on the last one. Set Submit question answers with to Cmd/Ctrl+Enter in Settings → Preferences to keep the previous behavior. (66169) - To move the file tree to the right in the Files and Review panels, right-click its header and choose Sidebar position → Right. (66012) - /rename with no title generates a new title, and /rename <title> sets one. (66396) - Search sessions also finds archived sessions and shows them dimmed. (66356) - In the Inbox sidebar, you can pin sessions, open archived sessions in a collapsible section and choose where working sessions appear. Archived sessions waiting o...",
  "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.4.2"
  },
  "speakable": {
    "@type": "SpeakableSpecification",
    "cssSelector": [
      "h1",
      "#ssr-content p"
    ]
  }
}
```
