· rangkumin.tech

OpenCode 2.2.6 adds MCP connection pooling and scripted runs in git worktrees

OpenCode released version 2.2.6 on November 6, 2026. The open source coding agent can now share one MCP server connection across projects, start opencode run sessions in a fresh git worktree, and create scripted or CI sessions already archived.

Why it matters

With pool: true, projects that use the same MCP server configuration share a single connection, which means fewer running processes and faster startup. The -w or --worktree flag starts a session in a new git worktree, while --archived keeps CI sessions out of the inbox and session lists.

One behavior change matters for CI teams. According to the release notes, opencode run now waits for background shell commands, subagents, and image jobs started by its prompt before exiting, with no time limit. A job that never exits, such as a dev server or file watcher, keeps the run open until it is stopped, so CI jobs need a timeout.

The release also includes security fixes, such as refusing cross-site navigations to the server API, rejecting webfetch URLs that contain credentials, and checking every redirect against permission rules. Teams that run OpenCode in automation should test their pipelines before upgrading.

Sources

Choose English or Indonesian. Up to two editions a day. Unsubscribe anytime.