> 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.15.7, not this Markdown file. For an index of the site, see https://opencode.ai/llms.txt.

# Added Grok OAuth sign-in

2026-05-21 · v1.15.7

Added Grok OAuth sign-in, including device-code login. ([@Jaaneek](https://github.com/Jaaneek))

## Improvements

- **Desktop:** Added a pinch zoom setting for the desktop app.
- **Desktop:** Added a new desktop home view, session entry flow, and titlebar.
- **Desktop:** Refined the new desktop UI and moved app update actions into the titlebar.
- **Desktop:** Added desktop log export.

## Fixes

- **Core:** V2 session APIs now return safe `UnknownError` responses with log reference IDs when stored messages are corrupt.
- **Core:** Generic API 500s no longer expose config details from server errors.
- **Core:** Unknown API errors now include reference IDs so you can match responses to server logs.
- **Core:** V2 session APIs now return `503 ServiceUnavailableError` for mutations that are not available yet.
- **Core:** V2 session APIs now return `SessionNotFoundError` for missing sessions.
- **Core:** Deduped concurrent Codex OAuth refreshes to avoid repeated refresh failures. ([@cooper-oai](https://github.com/cooper-oai))
- **Core:** Restored native OpenAI OAuth requests.
- **Core:** Tool schema failures now surface as friendly tool errors.
- **Core:** Added PDF attachment support for Grok.
- **Core:** Restored OpenAI reasoning streams.
- **Terminal:** Collapsed thinking labels now use clearer punctuation.
- **Terminal:** New sessions now default to the local project.
- **Terminal:** Single-select question checkmarks no longer run into option labels.
- **SDK:** V2 global event streams now include account add, remove, and switch events.

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

Newer: [Redesigned the diff viewer with a file tree and refreshed layout](https://opencode.ai/changelog/v1.15.9) (v1.15.9)

Older: [Added a diff viewer in the TUI for reviewing changes](https://opencode.ai/changelog/v1.15.6) (v1.15.6)

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

---

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