changelogAnthropic

OpenCode v1.15.13 Adds Session Metadata API, Fixes Anthropic Opus 4.7 Adaptive Reasoning Bug

TL;DR

OpenCode v1.15.13 introduces custom session metadata storage through its API and SDK. The release fixes a bug where Anthropic's Opus 4.7+ adaptive reasoning returned empty thinking blocks instead of summarized thinking.

1 min read
0

OpenCode v1.15.13 Adds Session Metadata API, Fixes Anthropic Opus 4.7 Adaptive Reasoning Bug

OpenCode released version 1.15.13 with session metadata storage capabilities and a critical fix for Anthropic's Opus 4.7+ models.

Core Updates

The release adds custom metadata storage for sessions through OpenCode's API and SDK, contributed by community member @shantur. This allows developers to attach and retrieve custom data to coding sessions programmatically.

A notable bugfix addresses Anthropic's Claude Opus 4.7 and later versions when using adaptive reasoning mode. Previously, the gateway returned empty thinking blocks; the update now preserves summarized thinking content instead.

Configuration loading behavior changed to scan upward from the opened location. According to OpenCode, this makes directory-specific settings and provider policies apply more predictably across different project structures.

TUI Improvements

The terminal user interface received two bugfixes. Wrapped inline tool rows now maintain proper alignment, and failed inline tools can expand error details directly in place rather than requiring separate views.

What This Means

The session metadata feature gives developers structured storage for context, user preferences, or debugging information tied to specific coding sessions. This could enable more sophisticated workflow tracking and personalization in AI-assisted development tools.

The Anthropic Opus fix is particularly relevant for teams using Claude's latest models with chain-of-thought reasoning. Empty thinking blocks would have prevented visibility into the model's reasoning process, which is a key feature for understanding and debugging AI-generated code suggestions. The fix ensures summarized thinking remains accessible even when full reasoning chains are condensed.

Related Articles

Comments

Loading...