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

# Add PTY connection tickets so authenticated terminal websockets work more reliably across clients

2026-05-04 · v1.14.34

## Improvements

- **Core:** Add v2 session failure events so clients can detect and show failed runs.
- **Core:** Improve shell command handling for Bash, PowerShell, and cmd sessions.
- **Terminal:** Add `debug info` to print environment and diagnostic details.

## Fixes

- **Core:** Return structured error bodies from the effect HTTP server instead of empty failures.
- **Core:** Reload server auth environment variables correctly for each new HTTP listener.
- **Core:** Stop worktree creation from hanging while bootstrap commands run.
- **Core:** Fix Azure Anthropic model resolution when using the Anthropic SDK.
- **Core:** Fix the web UI proxy so public manifest assets load and proxied responses do not break on `transfer-encoding`. ([@OpeOginni](https://github.com/OpeOginni))
- **Core:** Allow Codex Spark models when signing in with Codex OAuth. ([@Utkub24](https://github.com/Utkub24))
- **Core:** Fix embedded UI serving from the standalone server build.
- **Core:** Fix PTY websocket connections from Desktop when using the HttpApi server.
- **Core:** Respect custom basic auth usernames in opencode clients.
- **Core:** Prompt browsers for basic auth on protected server logins. ([@OpeOginni](https://github.com/OpeOginni))
- **Core:** Show real server error messages in the CLI and SDK instead of bare `{}`.
- **Core:** Prevent large diffs from using unbounded memory.
- **Core:** Fix v2 session API responses to encode optional fields correctly.
- **Core:** Fix pagination `Link` headers to use the real request host.
- **Terminal:** Add a `--username` option for basic-auth server connections. ([@OpeOginni](https://github.com/OpeOginni))
- **Terminal:** Pass server auth through internal ACP connections.
- **Terminal:** Show provider login errors from stderr instead of swallowing them.
- **Desktop:** Prevent terminal reconnect loops after recovery failures.
- **Desktop:** Preserve auth-token credentials when reopening the app.

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

Newer: [Warp a session into another workspace or back to the local project](https://opencode.ai/changelog/v1.14.39) (v1.14.39)

Older: [Fixed HTTP API workspace adapters losing instance context](https://opencode.ai/changelog/v1.14.33) (v1.14.33)

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

---

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