Playbooks · Coding tasks
OpenCode 2.4.2 gives GPT-6.2 its own prompt, Esc recalls
Written November 26, 2026
OpenCode 2.4.2 writes a GPT-6.2 system prompt, lets Esc take back your last message, scopes web-fetch approvals to one site, and keeps automations running.
OpenCode 2.4.2 is a behavior release. GPT-6.2 models get a system prompt written for them, pressing Esc at the right moment hands your last message back for editing, and two approval and automation behaviors change in ways worth knowing before you upgrade: a web-fetch approval that used to cover every site now covers one, and an automation no longer stops after a failed run.
GPT-6.2 models get their own system prompt
GPT-6.2 Sol and Astra, and the gpt-latest aliases, now use a system prompt written for GPT-6.2. The prompt a model starts from shapes how it plans, which tools it reaches for, and how it reports back, so a prompt written for the model in use is the change most likely to be felt in ordinary sessions on those models. Other models keep the prompts they already had.
Esc takes back your last message
If the composer is empty and you stop a response with Esc before the model has written anything or called a tool, OpenCode removes your message and puts it back in the composer, images included, so you can edit it and send it again. That covers the common case of spotting a mistake in a prompt the moment after sending it: instead of stopping the run and retyping, the original text and its images return intact. The recall only applies in that early window, before any output or tool call exists.
“Always allow” for web fetch now covers one site
Approving a web fetch with “Always allow” now allows that site only; it used to allow every URL. Approvals saved by earlier versions stay as they were, so an older blanket approval remains in force until you change it, while every new approval is scoped to the site you approved. If you relied on one approval to cover fetching in general, expect fresh prompts for each new site from this version on.
Automations keep running after a failed run
A failed automation run is now recorded and the next one runs on schedule, instead of the failure stopping the automation. Automations still pause when the session that created them or their directory is gone, or when their setup is no longer valid. A related change affects the runs themselves: a shell command in an automation's code that runs past its timeout is now stopped and fails the call, rather than moving to the background.
Sending to an archived session unarchives it
Sending to an archived session unarchives it. That applies to messages, commands, skills, and shell commands, including ones sent through the API, so reviving a session no longer needs a separate unarchive step first. Moving a session also improves: moving a session now moves its subagents with it.
Plan mode rules move into the system prompt
Plan mode's rules are now in the system prompt; sessions already in Plan mode get the rules once more after upgrading. The same change fixes the failure that made the move necessary: Plan mode no longer re-adds its reminder after every compaction, which could keep a session running in a loop. Plugins gain a matching ability: a plugin can give an agent instructions that apply while that agent is selected, without busting the prompt cache.
Image and video generation move into Code Mode
generate_image and generate_video now run inside Code Mode instead of as top-level tools, so their definitions no longer add about 700 tokens to every request. Every session pays for the tool definitions it carries, whether or not it generates media, so moving two media tools behind Code Mode trims a fixed cost from all requests, not just media ones.
MCP sign-in and permission fixes
Two fixes affect connected tools. Sign-in now works for MCP servers whose configured URL has a query string, such as the AWS MCP Server. And tools no longer stay visible to the model when a blanket deny is followed by narrower denies, so a deny rule now removes what it is meant to remove. Cost estimates also improve: estimates for service tiers that list their own prices use those prices, including their long-context rates.
Desktop and TUI changes
On macOS and Windows, desktop updates now download only the parts of the app that changed instead of the full installer again. In the desktop app, /rename with no title generates a new title, and search sessions also finds archived sessions, shown dimmed. In the TUI, the model picker stays responsive with large catalogs such as OpenRouter's, and a bug where /models showed only free models when the TUI opened a session in another directory is fixed.
What to do
- Upgrade to OpenCode 2.4.2 to pick up the GPT-6.2 prompt, the Esc recall, and the fixes below.
- On GPT-6.2 Sol, Astra, or a
gpt-latestalias, expect sessions to run under the new system prompt written for GPT-6.2. - Stop a just-sent message with Esc, while the composer is empty and before any output, to get it back for editing.
- Expect “Always allow” on a web fetch to cover that site only; review any blanket approvals saved by earlier versions.
- Let automations ride out a failed run: the failure is recorded and the next run stays on schedule.
- Send to an archived session directly when you want it back; the send unarchives it.
- Sign in to MCP servers whose URLs carry a query string, such as the AWS MCP Server.
- Update the desktop app on macOS or Windows to get differential downloads instead of the full installer.
Related playbooks
- OpenCode 2.3.2 stops re-billing the system prompt
- Move OpenCode 1.x to 2.0 without losing config
- OpenCode 1 offers the upgrade to OpenCode 2
- OpenCode 2.2.6: scripted sessions, clean trees
Sources
- OpenCode v2.4.2 release notes — GitHub — The GPT-6.2 system prompt, the Esc message recall, per-site web-fetch approvals, automations continuing after a failed run, archived-session unarchiving, the Plan mode prompt move and loop fix, Code Mode media tools, and the MCP, permission, desktop, and TUI changes and fixes.
Back to: Coding playbooks hub · Also: OpenCode 2.4.0 adds a built-in browser and automations