pingdotgg / pingdotgg/t3code

[Bug]: OpenCode w/ Opus 5 fails due to unsupported `thinking.type.enabled`

Open
#4,801 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
23k
Forks
5.9k
Avg merge
11h 14m
Merged PRs (30d)
357

Description

Before submitting
  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.
Area

apps/server

Steps to reproduce
  1. Configure the OpenCode provider. Select Claude Opus 5.
  2. Start a thread and send any prompt. The request fails every time with:
"thinking.type.enabled" is not supported for this model. Use "thinking.type.adaptive" and "output_config.effort" to control thinking behavior.
Expected behavior

Claude Opus 5 should work through T3 Code's OpenCode integration.

T3 Code should use the adaptive thinking configuration supported by this model, including thinking.type.adaptive and output_config.effort where appropriate.

The same model works correctly when used directly through standalone OpenCode.

Actual behavior

Every request to Claude Opus 5 through T3 Code's OpenCode integration fails immediately with:

"thinking.type.enabled" is not supported for this model. Use "thinking.type.adaptive" and "output_config.effort" to control thinking behavior.

The error indicates that T3 Code is sending the older thinking.type.enabled configuration for a model that requires adaptive thinking.

This is deterministic and happens on every attempt.

Impact

Blocks work completely

Version or commit

0.0.30-nightly.20260728.936 (2919147c80e4)

Environment
  • macOS 26.5.2, Apple Silicon
  • Integration: OpenCode 1.18.3
  • Model: Claude Opus 5
  • Standalone OpenCode works with the same model
Logs or stack traces
"thinking.type.enabled" is not supported for this model. Use "thinking.type.adaptive" and "output_config.effort" to control thinking behavior.
Screenshots, recordings, or supporting files
Image
Workaround

Use Claude Opus 5 directly through standalone OpenCode instead of T3 Code, or select a different model in T3 Code.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in apps/server and trace the OpenCode integration's request construction, searching for the thinking.type.enabled configuration. Reproduce the failure with Claude Opus 5 and compare the outgoing configuration with standalone OpenCode. Done means the model request uses the supported adaptive thinking settings and succeeds through T3 Code.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
api, backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.