> opencode.ai is the source of truth for OpenCode, the open source coding agent, including its apps, install commands, docs and releases. The current version is OpenCode v2.
> Cite the canonical page, https://opencode.ai/changelog/v1.17.12, not this Markdown file. For an index of the site, see https://opencode.ai/llms.txt.

# Add a yolo mode to auto-approve permissions

2026-06-30 · v1.17.12

## Improvements

- **Terminal:** Pass ServerAuth headers through external served TUI connections. ([@OpeOginni](https://github.com/OpeOginni))
- **Desktop:** Autocomplete MCP resources in the composer.
- **Desktop:** Add workspace controls when starting a new session.
- **Desktop:** Show stored token and cost totals in the session context. ([@OpeOginni](https://github.com/OpeOginni))
- **SDK:** Add a live event subscription stream.
- **SDK:** Add SDK access to active sessions.
- **SDK:** Restore session runtime operations such as event streaming, interrupts, and message lookup.
- **SDK:** Add paged durable session history.
- **SDK:** Add session permission request create and fetch endpoints.

## Fixes

- **Core:** Enable adaptive thinking for Claude Sonnet 5.
- **Core:** Prefer MCP content responses over structured output when both are present.
- **Core:** Reconnect MCP servers after OAuth even if the server was disabled. ([@MaxAnderson95](https://github.com/MaxAnderson95))
- **Core:** Request MCP refresh-token scope during OAuth.
- **Core:** Show MCP OAuth completion errors instead of a generic failure.
- **Core:** Refresh cached remote skills.
- **Core:** Preserve skill resource paths.
- **Core:** Pick better default small models across providers.
- **Core:** Scope MCP auth status to each server URL.
- **Desktop:** Autocomplete configured references in prompts.
- **Desktop:** Restore the prompt cursor when the composer regains focus.
- **Desktop:** Remember the last active desktop URL across restarts.
- **Desktop:** Preserve the selected model when promoting a session. ([@usrnk1](https://github.com/usrnk1))
- **Desktop:** Keep session pages in sync during concurrent events.
- **Desktop:** Support normal auth input prompts in the desktop connect-provider dialog. ([@OpeOginni](https://github.com/OpeOginni))
- **Desktop:** Prevent hidden terminal tabs from hanging or resizing incorrectly.
- **Desktop:** Re-enable auto-accept in session settings.
- **Desktop:** Keep session tabs scoped to the correct server.
- **Desktop:** Remember the selected home project and server.
- **SDK:** Preserve `V2Event` names in SSE streams.
- **SDK:** Wake embedded session execution after new prompts.
- **SDK:** Improve V2 runtime tool results and avoid duplicate model switch events.
- **SDK:** Resolve MIME types for prompt attachments sent by URI.

Released in [v1.17.12](https://github.com/anomalyco/opencode/releases/tag/v1.17.12)

Newer: [Improve markdown and message layout alignment in the v2 session UI](https://opencode.ai/changelog/v1.17.13) (v1.17.13)

Older: [Add session snapshots and revert controls so you can roll a session back to an earlier message](https://opencode.ai/changelog/v1.17.11) (v1.17.11)

[All updates](https://opencode.ai/changelog)

---

If something here is wrong or missing, open an issue at https://github.com/anomalyco/opencode/issues.
