OpenCodeRelease

OpenCode 2.4.2 narrows web approvals and improves automations and Code Mode

OpenCode 2.4.2 gives GPT-6.2 Sol, Astra and gpt-latest aliases a dedicated system prompt, moves image and video generation into Code Mode, and scopes web-fetch “Always allow” to the current site. Failed automations are recorded and continue on schedule, timed-out shell commands are stopped, and service-tier cost estimates, session moves, SDK behavior and plugin APIs improve.

  • GPT-6.2 Sol, Astra and gpt-latest aliases use a GPT-6.2 system prompt.
  • generate_image and generate_video move into Code Mode, removing about 700 tool-definition tokens from every request.
  • Web-fetch “Always allow” applies only to that site; approvals saved by earlier versions remain unchanged.
  • Failed automations are recorded and continue on schedule, but pause when their session, directory or setup is invalid; timed-out shell commands stop and fail.
  • Service-tier estimates use their own prices and long-context rates; moving a session moves its subagents, and the workerd SDK forwards alarms so idle remote workspaces can suspend.
New featureCritical fixCompatibilityAPI

Original evidence · 2026-11-25 17h

OpenCode Releases ↗Based on original text

Why it matters

Narrower approval scope reduces over-permission risk, while Code Mode and automation changes affect token cost and task continuity.