Skip to content

OpenCode does not persist thinking blocks for Claude Opus 4.7 #22852

@renbou

Description

@renbou

Description

Claude Opus 4.7 omits thinking block contents by default: https://platform.claude.com/docs/en/about-claude/models/whats-new-claude-4-7#thinking-content-omitted-by-default

Setting a display: summary override does nothing - the thinking blocks are still hidden. However, the key problem is that this affects the agent not purely UI-wise: thinking blocks are not persisted in any way, meaning the agent cannot see thinking blocks from past turns. This makes the model pretty much unusable in OpenCode as it severely degrades its performance.

Plugins

No response

OpenCode version

1.4.6

Steps to reproduce

Add Claude Opus 4.7 to your config, try prompting the model to think across several tool calls, then on the next turn ask it to recall whether any thinking blocks are available

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingcoreAnything pertaining to core functionality of the application (opencode server stuff)

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions